mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 09:13:04 +00:00
c++: more YY_NULL
Caught by maintainer-check-g++.
* data/glr.c, data/lalr1.cc, data/yacc.c, tests/cxx-type.at,
* tests/glr-regression.at, tests/push.at:
When simple to do, avoid expliciting the null ptr.
Otherwise use YY_NULL.
(cherry picked from commit eeaf1dc646)
Conflicts:
data/glr.c
data/lalr1.cc
tests/cxx-type.at
This commit is contained in:
@@ -298,7 +298,7 @@ static void yyerror(char const * s) {
|
||||
fprintf(stderr,"error: %s\n",s);
|
||||
}
|
||||
|
||||
FILE *input = NULL;
|
||||
FILE *input = YY_NULL;
|
||||
|
||||
int P[] = { P1, P2 };
|
||||
int O[] = { O1, O2 };
|
||||
|
||||
Reference in New Issue
Block a user