Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/lex/initscan.c
Show First 20 Lines • Show All 3,428 Lines • ▼ Show 20 Lines | #line 691 "scan.l" | ||||
} | } | ||||
else | else | ||||
{ | { | ||||
synerr( _("Input line too long\n")); | synerr( _("Input line too long\n")); | ||||
FLEX_EXIT(EXIT_FAILURE); | FLEX_EXIT(EXIT_FAILURE); | ||||
} | } | ||||
nmstr[yyleng - 2 - end_is_ws] = '\0'; /* chop trailing brace */ | nmstr[yyleng - 2 - end_is_ws] = '\0'; /* chop trailing brace */ | ||||
if ( (nmdefptr = ndlookup( nmstr )) == NULL ) | if ( (nmdefptr = ndlookup( nmstr )) == 0 ) | ||||
format_synerr( | format_synerr( | ||||
_( "undefined definition {%s}" ), | _( "undefined definition {%s}" ), | ||||
nmstr ); | nmstr ); | ||||
else | else | ||||
{ /* push back name surrounded by ()'s */ | { /* push back name surrounded by ()'s */ | ||||
size_t len = strlen( nmdefptr ); | size_t len = strlen( nmdefptr ); | ||||
if (end_is_ws) | if (end_is_ws) | ||||
▲ Show 20 Lines • Show All 1,799 Lines • Show Last 20 Lines |