dead code in wparser_def state machine?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема dead code in wparser_def state machine?
Дата
Msg-id 24632.1193161239@sss.pgh.pa.us
обсуждение исходный текст
Список pgsql-hackers
I find a number of places coded like this:

static TParserStateActionItem actionTPS_InHyphenLatWordFirst[] = {{p_isEOF, 0, A_POP, TPS_Null, 0, NULL},{p_islatin, 0,
A_NEXT,TPS_InHyphenLatWord, 0, NULL},{p_isnonlatin, 0, A_NEXT, TPS_InHyphenUWord, 0, NULL},{p_isdigit, 0, A_NEXT,
TPS_InHyphenValue,0, NULL},{p_isdigit, 0, A_NEXT, TPS_InHyphenUWord, 0, NULL},{NULL, 0, A_POP, TPS_Null, 0, NULL}
 
};

If I'm not completely misunderstanding this code, the second p_isdigit
line is dead code because it can never be reached.  Correct?
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: PostgreSQL performance issues
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: Feature Freeze date for 8.4