Changeset 2596 for vendor/gnumake/current/hash.c
- Timestamp:
- Jun 20, 2012, 12:44:52 AM (13 years ago)
- Location:
- vendor/gnumake/current
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current
- Property svn:ignore deleted
-
vendor/gnumake/current/hash.c
r1989 r2596 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 … … 47 47 if (ht->ht_vec == 0) 48 48 { 49 fprintf (stderr, _("can't allocate %l dbytes for hash table: memory exhausted"),50 ht->ht_size * sizeof(struct token *));49 fprintf (stderr, _("can't allocate %lu bytes for hash table: memory exhausted"), 50 ht->ht_size * (unsigned long) sizeof (struct token *)); 51 51 exit (1); 52 52 } … … 127 127 { 128 128 void **slot = hash_find_slot (ht, item); 129 const void *old_item = slot ? *slot : 0;129 const void *old_item = *slot; 130 130 hash_insert_at (ht, item, slot); 131 131 return (void *)((HASH_VACANT (old_item)) ? 0 : old_item);
Note:
See TracChangeset
for help on using the changeset viewer.