]> rtime.felk.cvut.cz Git - ulut.git/blobdiff - ulut/ul_hashtabchk.c
Updates to support SDCC 3.1.4+ new build-in defines.
[ulut.git] / ulut / ul_hashtabchk.c
index 7d5ab08c9d7240b27796b81a42d1c28ace11044f..3312fd0bc850cf20445788ac01782c620e2b2a22 100644 (file)
@@ -2,7 +2,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <limits.h>
-#ifndef SDCC
+#if !defined(SDCC) && !defined(__SDCC)
 #include <sys/time.h>
 #endif
 
@@ -70,7 +70,7 @@ cust_hash_prep_fnc(cust3_item_t *item)
 
 UL_HASTAB_CUST_NODE_INT_IMP(cust3, cust3_table_t, cust3_item_t, cust3_key_t,
        my_table, my_node, my_val, cust3_cmp_fnc, cust3_hash_fnc,
-       cust3_hash_get_fnc, cust_hash_prep_fnc, 0, 0)
+       cust3_hash_get_fnc, cust_hash_prep_fnc, ul_hashtab_sizestep_global)
 
 
 cust3_table_t cust3_table;
@@ -137,6 +137,7 @@ int main(int argc, char *argv[])
   }
   if(argc>=3) {
     tablepow=atol(argv[2]);
+    ul_hashtab_sizestep_global=ul_hashtab_sizestep_null;
   }
 
   cust3_resize_table(table, 1<<tablepow);
@@ -237,4 +238,4 @@ int main(int argc, char *argv[])
   free(item_arr);
 
   return 0;
-}
\ No newline at end of file
+}