CVSROOT: /sources/m4
Module name: m4
Branch: branch
Changes by: Eric Blake <ericb> 06/06/05 12:41:30
Modified files:
. : ChangeLog NEWS
src : m4.c m4.h symtab.c
Log message:
* src/m4.h (hash_table_size): Now size_t instead of int.
* src/m4.c (hash_table_size): Likewise.
(main): Adjust to this; use atol rather than atoi.
* src/symtab.c: Include <limits.h>, for CHAR_BIT.
(symtab_init, lookup_symbol, hack_all_symbols):
Use size_t for sizes and indexes, not int.
(symtab_print_list) [DEBUG_SYM]: Likewise.
(hash): Likewise. Don't case-fold in the hash function.
Shift by 7, not 3, for consistency with gnulib/lib/hash.c.
Don't assume hash word is 32 bits.
NEWS: Document this change.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&only_with_tag=branch&r1=1.1.1.1.2.51&r2=1.1.1.1.2.52
http://cvs.savannah.gnu.org/viewcvs/m4/NEWS?cvsroot=m4&only_with_tag=branch&r1=1.1.1.1.2.13&r2=1.1.1.1.2.14
http://cvs.savannah.gnu.org/viewcvs/m4/src/m4.c?cvsroot=m4&only_with_tag=branch&r1=1.1.1.1.2.8&r2=1.1.1.1.2.9
http://cvs.savannah.gnu.org/viewcvs/m4/src/m4.h?cvsroot=m4&only_with_tag=branch&r1=1.1.1.1.2.5&r2=1.1.1.1.2.6
http://cvs.savannah.gnu.org/viewcvs/m4/src/symtab.c?cvsroot=m4&only_with_tag=branch&r1=1.1.1.1.2.3&r2=1.1.1.1.2.4