X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=hashlib.c;h=e370fbe02d937f8aab8f1880ad766b4eb9eb8efc;hb=cce855bc5b117cb7ae70064131120687bc69fac0;hp=703fcfa9c636e309316910e61c22617be3a0647b;hpb=e8ce775db824de329b81293b4e5d8fbd65624528;p=platform%2Fupstream%2Fbash.git diff --git a/hashlib.c b/hashlib.c index 703fcfa..e370fbe 100644 --- a/hashlib.c +++ b/hashlib.c @@ -23,6 +23,9 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "bashansi.h" #if defined (HAVE_UNISTD_H) +# ifdef _MINIX +# include +# endif # include #endif @@ -225,6 +228,8 @@ dispose_hash_table (table) free (table); } +/* No longer necessary; everything uses the macro */ +#if 0 /* Return the bucket_contents list of bucket BUCKET in TABLE. If TABLE doesn't have BUCKET buckets, return NULL. */ #undef get_hash_bucket @@ -238,8 +243,10 @@ get_hash_bucket (bucket, table) else return (BUCKET_CONTENTS *)NULL; } +#endif -/* #ifdef DEBUG */ +#ifdef DEBUG +void print_table_stats (table, name) HASH_TABLE *table; char *name; @@ -265,7 +272,7 @@ print_table_stats (table, name) fprintf (stderr, "%d\n", bcount); } } -/* #endif */ +#endif #ifdef TEST_HASHING