b93ed4ec45870228e6ad9a7ae017d8afeb07ceeb kent Tue Aug 6 17:39:36 2013 -0700 Improving comment. diff --git src/lib/hash.c src/lib/hash.c index 320b360..90fbf53 100644 --- src/lib/hash.c +++ src/lib/hash.c @@ -229,31 +229,32 @@ } char *hashStoreName(struct hash *hash, char *name) /* If element in hash already return it, otherwise add it * and return it. */ { struct hashEl *hel; if (name == NULL) return NULL; if ((hel = hashLookup(hash, name)) != NULL) return hel->name; return hashAdd(hash, name, NULL)->name; } int hashIntVal(struct hash *hash, char *name) -/* Find size of name in hash or die trying. */ +/* Return integer value associated with name in a simple + * hash of ints. */ { void *val = hashMustFindVal(hash, name); return ptToInt(val); } int hashIntValDefault(struct hash *hash, char *name, int defaultInt) /* Return integer value associated with name in a simple * hash of ints or defaultInt if not found. */ { struct hashEl *hel = hashLookup(hash, name); if(hel == NULL) return defaultInt; return ptToInt(hel->val); }