return hash;
}
+unsigned int get_hash_from_integer(void *key)
+{
+ unsigned int hash = PTR_TO_UINT(key);
+
+ return hash;
+}
+
int hash_key_strings_are_equal(void *key1, void *key2)
{
return (strEqual((char *)key1, (char *)key2));
}
+int hash_key_integers_are_equal(void *key1, void *key2)
+{
+ return (key1 == key2);
+}
+
SetupFileHash *newSetupFileHash(void)
{
SetupFileHash *new_hash =
char *getSetupLine(struct TokenInfo *, char *, int);
unsigned int get_hash_from_string(void *);
+unsigned int get_hash_from_integer(void *);
int hash_key_strings_are_equal(void *, void *);
+int hash_key_integers_are_equal(void *, void *);
int GetZipFileTreeType(char *);
char *ExtractZipFileIntoDirectory(char *, char *, int);
#define ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0]))
+#define PTR_TO_INT(p) ((int) (long) (p))
+#define PTR_TO_UINT(p) ((unsigned int) (unsigned long) (p))
+
+#define INT_TO_PTR(i) ((void *) (long) (i))
+#define UINT_TO_PTR(u) ((void *) (unsigned long) (u))
+
struct ListNode
{