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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user