1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Omit the multicompare code output if it is not needed.

This commit is contained in:
Bruno Haible
2003-04-14 10:18:32 +00:00
parent 6bbdde4f5f
commit 5e30c2698e
3 changed files with 6 additions and 14 deletions

View File

@@ -446,8 +446,6 @@ in_word_set (str, len)
if (key <= MAX_HASH_VALUE && key >= MIN_HASH_VALUE)
{
register struct resword *wordptr;
register struct resword *wordendptr;
register struct resword *resword;
switch (key - 4)
@@ -1354,16 +1352,6 @@ in_word_set (str, len)
goto compare;
}
return 0;
multicompare:
while (wordptr < wordendptr)
{
register const char *s = wordptr->name;
if (*str == *s && !strcmp (str + 1, s + 1))
return wordptr;
wordptr++;
}
return 0;
compare:
{
register const char *s = resword->name;