Magic-number elimination.

This commit is contained in:
Eric S. Raymond 2017-07-01 01:59:06 -04:00
parent 062840db69
commit 9714bf8c82
3 changed files with 14 additions and 11 deletions

1
misc.c
View file

@ -526,6 +526,7 @@ long get_vocab_id(const char* word)
{
long ref_num;
/* FIXME: Magic numbers related to vocabulary */
ref_num = get_motion_vocab_id(word);
if (ref_num != WORD_NOT_FOUND)
return (ref_num + 0); // FIXME: replace with a proper hash