Fixed mispellings of '\0' as NULL.
This commit is contained in:
parent
c044589554
commit
8153ab0e6f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126843
@ -110,7 +110,7 @@ tagged { return(TAGGED); }
|
|||||||
/* count up for nl */
|
/* count up for nl */
|
||||||
{
|
{
|
||||||
char *p;
|
char *p;
|
||||||
for (p = yytext; *p != NULL; p++)
|
for (p = yytext; *p != '\0'; p++)
|
||||||
if (*p == '\n')
|
if (*p == '\n')
|
||||||
lineno++;
|
lineno++;
|
||||||
}
|
}
|
||||||
@ -221,7 +221,7 @@ any { return(ANY); }
|
|||||||
{quotedstring} {
|
{quotedstring} {
|
||||||
char *p = yytext;
|
char *p = yytext;
|
||||||
while (*++p != '"') ;
|
while (*++p != '"') ;
|
||||||
*p = NULL;
|
*p = '\0';
|
||||||
yytext++;
|
yytext++;
|
||||||
yylval.val.len = yyleng - 2;
|
yylval.val.len = yyleng - 2;
|
||||||
yylval.val.buf = strdup(yytext);
|
yylval.val.buf = strdup(yytext);
|
||||||
|
@ -110,7 +110,7 @@ tagged { return(TAGGED); }
|
|||||||
/* count up for nl */
|
/* count up for nl */
|
||||||
{
|
{
|
||||||
char *p;
|
char *p;
|
||||||
for (p = yytext; *p != NULL; p++)
|
for (p = yytext; *p != '\0'; p++)
|
||||||
if (*p == '\n')
|
if (*p == '\n')
|
||||||
lineno++;
|
lineno++;
|
||||||
}
|
}
|
||||||
@ -221,7 +221,7 @@ any { return(ANY); }
|
|||||||
{quotedstring} {
|
{quotedstring} {
|
||||||
char *p = yytext;
|
char *p = yytext;
|
||||||
while (*++p != '"') ;
|
while (*++p != '"') ;
|
||||||
*p = NULL;
|
*p = '\0';
|
||||||
yytext++;
|
yytext++;
|
||||||
yylval.val.len = yyleng - 2;
|
yylval.val.len = yyleng - 2;
|
||||||
yylval.val.buf = strdup(yytext);
|
yylval.val.buf = strdup(yytext);
|
||||||
|
Loading…
Reference in New Issue
Block a user