Changeset 2591 for trunk/src/kmk/hash.c
- Timestamp:
- Jun 17, 2012, 10:45:31 PM (13 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk
- Property svn:ignore
-
old new 13 13 stamp-* 14 14 makebook* 15 15 16 .*gdbinit 17 .gdb_history 18 16 19 *.dep 17 20 *.dvi … … 31 34 *.pg 32 35 *.pgs 36 33 37 README 34 38 README.DOS 35 39 README.W32 40 README.OS2 36 41 aclocal.m4 37 42 autom4te.cache … … 52 57 config.h.W32 53 58 config.h-vms 59 54 60 loadavg 55 61 loadavg.c 56 62 make 63 57 64 .deps 58 65 .dep_segment 66 ID 67 TAGS 68 59 69 _* 60 70 sun4 … … 72 82 sol2 73 83 i486-linux 84 74 85 customs 86 75 87 install-sh 76 88 mkinstalldirs 89 90 .directive.asc
-
- Property svn:ignore
-
trunk/src/kmk/hash.c
r1993 r2591 1 1 /* hash.c -- hash table maintenance 2 Copyright (C) 1995, 1999, 2002 Free Software Foundation, Inc.2 Copyright (C) 1995, 1999, 2002, 2010 Free Software Foundation, Inc. 3 3 Written by Greg McGary <gkm@gnu.org> <greg@mcgary.org> 4 4 … … 51 51 if (ht->ht_vec == 0) 52 52 { 53 fprintf (stderr, _("can't allocate %l dbytes for hash table: memory exhausted"),54 ht->ht_size * sizeof(struct token *));53 fprintf (stderr, _("can't allocate %lu bytes for hash table: memory exhausted"), 54 ht->ht_size * (unsigned long) sizeof (struct token *)); 55 55 exit (1); 56 56 } … … 252 252 { 253 253 void **slot = hash_find_slot (ht, item); 254 const void *old_item = slot ? *slot : 0;254 const void *old_item = *slot; 255 255 hash_insert_at (ht, item, slot); 256 256 return (void *)((HASH_VACANT (old_item)) ? 0 : old_item);
Note:
See TracChangeset
for help on using the changeset viewer.