@@ -243,7 +243,7 @@ struct HTAB
243243 */
244244#define MOD (x ,y ) ((x) & ((y)-1))
245245
246- #if HASH_STATISTICS
246+ #ifdef HASH_STATISTICS
247247static long hash_accesses ,
248248 hash_collisions ,
249249 hash_expansions ;
@@ -706,7 +706,7 @@ init_htab(HTAB *hashp, long nelem)
706706 /* Choose number of entries to allocate at a time */
707707 hctl -> nelem_alloc = choose_nelem_alloc (hctl -> entrysize );
708708
709- #if HASH_DEBUG
709+ #ifdef HASH_DEBUG
710710 fprintf (stderr , "init_htab:\n%s%p\n%s%ld\n%s%ld\n%s%d\n%s%ld\n%s%u\n%s%x\n%s%x\n%s%ld\n" ,
711711 "TABLE POINTER " , hashp ,
712712 "DIRECTORY SIZE " , hctl -> dsize ,
@@ -832,7 +832,7 @@ hash_destroy(HTAB *hashp)
832832void
833833hash_stats (const char * where , HTAB * hashp )
834834{
835- #if HASH_STATISTICS
835+ #ifdef HASH_STATISTICS
836836 fprintf (stderr , "%s: this HTAB -- accesses %ld collisions %ld\n" ,
837837 where , hashp -> hctl -> accesses , hashp -> hctl -> collisions );
838838
@@ -933,7 +933,7 @@ hash_search_with_hash_value(HTAB *hashp,
933933 HASHBUCKET * prevBucketPtr ;
934934 HashCompareFunc match ;
935935
936- #if HASH_STATISTICS
936+ #ifdef HASH_STATISTICS
937937 hash_accesses ++ ;
938938 hctl -> accesses ++ ;
939939#endif
@@ -988,7 +988,7 @@ hash_search_with_hash_value(HTAB *hashp,
988988 break ;
989989 prevBucketPtr = & (currBucket -> link );
990990 currBucket = * prevBucketPtr ;
991- #if HASH_STATISTICS
991+ #ifdef HASH_STATISTICS
992992 hash_collisions ++ ;
993993 hctl -> collisions ++ ;
994994#endif
@@ -1130,7 +1130,7 @@ hash_update_hash_key(HTAB *hashp,
11301130 HASHBUCKET * oldPrevPtr ;
11311131 HashCompareFunc match ;
11321132
1133- #if HASH_STATISTICS
1133+ #ifdef HASH_STATISTICS
11341134 hash_accesses ++ ;
11351135 hctl -> accesses ++ ;
11361136#endif
@@ -1204,7 +1204,7 @@ hash_update_hash_key(HTAB *hashp,
12041204 break ;
12051205 prevBucketPtr = & (currBucket -> link );
12061206 currBucket = * prevBucketPtr ;
1207- #if HASH_STATISTICS
1207+ #ifdef HASH_STATISTICS
12081208 hash_collisions ++ ;
12091209 hctl -> collisions ++ ;
12101210#endif
0 commit comments