mark functions with const and pure attributes
[gnulib/ericb.git] / lib / hash-triple.h
blob0658d8170f3d5ff7526e52ebdef52e0bbbe06c37
1 #ifndef HASH_TRIPLE_H
2 #define HASH_TRIPLE_H
4 #include <sys/types.h>
5 #include <sys/stat.h>
6 #include <stdbool.h>
8 /* Describe a just-created or just-renamed destination file. */
9 struct F_triple
11 char *name;
12 ino_t st_ino;
13 dev_t st_dev;
16 extern size_t triple_hash (void const *x, size_t table_size) _GL_ATTRIBUTE_PURE;
17 extern size_t triple_hash_no_name (void const *x, size_t table_size)
18 _GL_ATTRIBUTE_PURE;
19 extern bool triple_compare (void const *x, void const *y);
20 extern bool triple_compare_ino_str (void const *x, void const *y)
21 _GL_ATTRIBUTE_PURE;
22 extern void triple_free (void *x);
24 #endif