Fixed mispellings of '\0' as NULL.

This commit is contained in:
Bruce Evans 2004-03-11 11:41:54 +00:00
parent c044589554
commit 8153ab0e6f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126843
2 changed files with 4 additions and 4 deletions

View File

@ -110,7 +110,7 @@ tagged { return(TAGGED); }
/* count up for nl */
{
char *p;
for (p = yytext; *p != NULL; p++)
for (p = yytext; *p != '\0'; p++)
if (*p == '\n')
lineno++;
}
@ -221,7 +221,7 @@ any { return(ANY); }
{quotedstring} {
char *p = yytext;
while (*++p != '"') ;
*p = NULL;
*p = '\0';
yytext++;
yylval.val.len = yyleng - 2;
yylval.val.buf = strdup(yytext);

View File

@ -110,7 +110,7 @@ tagged { return(TAGGED); }
/* count up for nl */
{
char *p;
for (p = yytext; *p != NULL; p++)
for (p = yytext; *p != '\0'; p++)
if (*p == '\n')
lineno++;
}
@ -221,7 +221,7 @@ any { return(ANY); }
{quotedstring} {
char *p = yytext;
while (*++p != '"') ;
*p = NULL;
*p = '\0';
yytext++;
yylval.val.len = yyleng - 2;
yylval.val.buf = strdup(yytext);