aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2021-02-11 23:41:28 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2021-02-11 23:41:28 +0000
commitbf80e08ed5ed32bbfd50674c01f8a0e519133e17 (patch)
tree1f111f2d4e9ec8e31472a030a2f227effddbf4cc /contrib
parent80f31432743446a1e8e4f8cb8268b74ac4e4f2da (diff)
downloadsrc-bf80e08ed5ed32bbfd50674c01f8a0e519133e17.tar.gz
src-bf80e08ed5ed32bbfd50674c01f8a0e519133e17.zip
yacc: Regen test cases for the previous commit
Diffstat (limited to 'contrib')
-rw-r--r--contrib/byacc/test/btyacc/btyacc_calc1.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/btyacc_demo.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/btyacc_destroy1.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/btyacc_destroy2.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/btyacc_destroy3.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/calc.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/calc1.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/calc2.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/calc3.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/calc_code_all.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/calc_code_default.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/calc_code_imports.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/calc_code_provides.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/calc_code_requires.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/calc_code_top.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/code_calc.code.c8
-rw-r--r--contrib/byacc/test/btyacc/code_error.code.c8
-rw-r--r--contrib/byacc/test/btyacc/defines1.calc.c8
-rw-r--r--contrib/byacc/test/btyacc/defines2.calc.c8
-rw-r--r--contrib/byacc/test/btyacc/defines3.calc.c8
-rw-r--r--contrib/byacc/test/btyacc/empty.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/err_inherit3.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/err_inherit4.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/err_syntax10.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/err_syntax11.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/err_syntax12.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/err_syntax18.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/err_syntax20.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/error.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/expr.oxout.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/grammar.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/inherit0.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/inherit1.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/inherit2.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/ok_syntax1.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/pure_calc.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/pure_error.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/quote_calc-s.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/quote_calc.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/quote_calc2-s.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/quote_calc2.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/quote_calc3-s.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/quote_calc3.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/quote_calc4-s.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/quote_calc4.tab.c8
-rw-r--r--contrib/byacc/test/btyacc/rename_debug.c8
-rw-r--r--contrib/byacc/test/btyacc/stdin1.calc.c8
-rw-r--r--contrib/byacc/test/btyacc/stdin2.calc.c8
-rw-r--r--contrib/byacc/test/btyacc/varsyntax_calc1.tab.c8
-rw-r--r--contrib/byacc/test/yacc/calc.tab.c6
-rw-r--r--contrib/byacc/test/yacc/calc1.tab.c6
-rw-r--r--contrib/byacc/test/yacc/calc2.tab.c6
-rw-r--r--contrib/byacc/test/yacc/calc3.tab.c6
-rw-r--r--contrib/byacc/test/yacc/calc_code_all.tab.c6
-rw-r--r--contrib/byacc/test/yacc/calc_code_default.tab.c6
-rw-r--r--contrib/byacc/test/yacc/calc_code_imports.tab.c6
-rw-r--r--contrib/byacc/test/yacc/calc_code_provides.tab.c6
-rw-r--r--contrib/byacc/test/yacc/calc_code_requires.tab.c6
-rw-r--r--contrib/byacc/test/yacc/calc_code_top.tab.c6
-rw-r--r--contrib/byacc/test/yacc/code_calc.code.c6
-rw-r--r--contrib/byacc/test/yacc/code_error.code.c6
-rw-r--r--contrib/byacc/test/yacc/defines1.calc.c6
-rw-r--r--contrib/byacc/test/yacc/defines2.calc.c6
-rw-r--r--contrib/byacc/test/yacc/defines3.calc.c6
-rw-r--r--contrib/byacc/test/yacc/empty.tab.c6
-rw-r--r--contrib/byacc/test/yacc/err_syntax10.tab.c6
-rw-r--r--contrib/byacc/test/yacc/err_syntax11.tab.c6
-rw-r--r--contrib/byacc/test/yacc/err_syntax12.tab.c6
-rw-r--r--contrib/byacc/test/yacc/err_syntax18.tab.c6
-rw-r--r--contrib/byacc/test/yacc/err_syntax20.tab.c6
-rw-r--r--contrib/byacc/test/yacc/error.tab.c6
-rw-r--r--contrib/byacc/test/yacc/expr.oxout.tab.c6
-rw-r--r--contrib/byacc/test/yacc/grammar.tab.c6
-rw-r--r--contrib/byacc/test/yacc/ok_syntax1.tab.c6
-rw-r--r--contrib/byacc/test/yacc/pure_calc.tab.c6
-rw-r--r--contrib/byacc/test/yacc/pure_error.tab.c6
-rw-r--r--contrib/byacc/test/yacc/quote_calc-s.tab.c6
-rw-r--r--contrib/byacc/test/yacc/quote_calc.tab.c6
-rw-r--r--contrib/byacc/test/yacc/quote_calc2-s.tab.c6
-rw-r--r--contrib/byacc/test/yacc/quote_calc2.tab.c6
-rw-r--r--contrib/byacc/test/yacc/quote_calc3-s.tab.c6
-rw-r--r--contrib/byacc/test/yacc/quote_calc3.tab.c6
-rw-r--r--contrib/byacc/test/yacc/quote_calc4-s.tab.c6
-rw-r--r--contrib/byacc/test/yacc/quote_calc4.tab.c6
-rw-r--r--contrib/byacc/test/yacc/rename_debug.c6
-rw-r--r--contrib/byacc/test/yacc/stdin1.calc.c6
-rw-r--r--contrib/byacc/test/yacc/stdin2.calc.c6
-rw-r--r--contrib/byacc/test/yacc/varsyntax_calc1.tab.c6
88 files changed, 313 insertions, 313 deletions
diff --git a/contrib/byacc/test/btyacc/btyacc_calc1.tab.c b/contrib/byacc/test/btyacc/btyacc_calc1.tab.c
index a1368f2c72f5..aa02292ef69f 100644
--- a/contrib/byacc/test/btyacc/btyacc_calc1.tab.c
+++ b/contrib/byacc/test/btyacc/btyacc_calc1.tab.c
@@ -651,14 +651,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -666,7 +666,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -812,7 +812,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/btyacc_demo.tab.c b/contrib/byacc/test/btyacc/btyacc_demo.tab.c
index 3493ee7555db..d5875fae1838 100644
--- a/contrib/byacc/test/btyacc/btyacc_demo.tab.c
+++ b/contrib/byacc/test/btyacc/btyacc_demo.tab.c
@@ -1215,14 +1215,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -1230,7 +1230,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -1324,7 +1324,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/btyacc_destroy1.tab.c b/contrib/byacc/test/btyacc/btyacc_destroy1.tab.c
index 2ddb0cdba988..5375d069d1f5 100644
--- a/contrib/byacc/test/btyacc/btyacc_destroy1.tab.c
+++ b/contrib/byacc/test/btyacc/btyacc_destroy1.tab.c
@@ -547,14 +547,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -562,7 +562,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -656,7 +656,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/btyacc_destroy2.tab.c b/contrib/byacc/test/btyacc/btyacc_destroy2.tab.c
index 7833f8532907..9f5c68891723 100644
--- a/contrib/byacc/test/btyacc/btyacc_destroy2.tab.c
+++ b/contrib/byacc/test/btyacc/btyacc_destroy2.tab.c
@@ -547,14 +547,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -562,7 +562,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -656,7 +656,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/btyacc_destroy3.tab.c b/contrib/byacc/test/btyacc/btyacc_destroy3.tab.c
index 28a6c94a9c8b..f4d1fdc2b136 100644
--- a/contrib/byacc/test/btyacc/btyacc_destroy3.tab.c
+++ b/contrib/byacc/test/btyacc/btyacc_destroy3.tab.c
@@ -547,14 +547,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -562,7 +562,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -656,7 +656,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/calc.tab.c b/contrib/byacc/test/btyacc/calc.tab.c
index e171ee9eb7ed..906a4b4e04d8 100644
--- a/contrib/byacc/test/btyacc/calc.tab.c
+++ b/contrib/byacc/test/btyacc/calc.tab.c
@@ -542,14 +542,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -557,7 +557,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -651,7 +651,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/calc1.tab.c b/contrib/byacc/test/btyacc/calc1.tab.c
index 298a0600121b..c246d4f01e42 100644
--- a/contrib/byacc/test/btyacc/calc1.tab.c
+++ b/contrib/byacc/test/btyacc/calc1.tab.c
@@ -686,14 +686,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -701,7 +701,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -795,7 +795,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/calc2.tab.c b/contrib/byacc/test/btyacc/calc2.tab.c
index cb2a4d92196d..474dbdbcc477 100644
--- a/contrib/byacc/test/btyacc/calc2.tab.c
+++ b/contrib/byacc/test/btyacc/calc2.tab.c
@@ -555,14 +555,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -570,7 +570,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -664,7 +664,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/calc3.tab.c b/contrib/byacc/test/btyacc/calc3.tab.c
index 5dc48f1c4fb5..503725978768 100644
--- a/contrib/byacc/test/btyacc/calc3.tab.c
+++ b/contrib/byacc/test/btyacc/calc3.tab.c
@@ -508,14 +508,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -523,7 +523,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -669,7 +669,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/calc_code_all.tab.c b/contrib/byacc/test/btyacc/calc_code_all.tab.c
index 92d4d63886e3..c321adee1590 100644
--- a/contrib/byacc/test/btyacc/calc_code_all.tab.c
+++ b/contrib/byacc/test/btyacc/calc_code_all.tab.c
@@ -570,14 +570,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -585,7 +585,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -679,7 +679,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/calc_code_default.tab.c b/contrib/byacc/test/btyacc/calc_code_default.tab.c
index 3ba5e5b4d274..9995d89a3f2f 100644
--- a/contrib/byacc/test/btyacc/calc_code_default.tab.c
+++ b/contrib/byacc/test/btyacc/calc_code_default.tab.c
@@ -550,14 +550,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -565,7 +565,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -659,7 +659,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/calc_code_imports.tab.c b/contrib/byacc/test/btyacc/calc_code_imports.tab.c
index 6bc36a29b683..4f3b28111511 100644
--- a/contrib/byacc/test/btyacc/calc_code_imports.tab.c
+++ b/contrib/byacc/test/btyacc/calc_code_imports.tab.c
@@ -542,14 +542,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -557,7 +557,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -651,7 +651,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/calc_code_provides.tab.c b/contrib/byacc/test/btyacc/calc_code_provides.tab.c
index 6ee06f34d2ae..5e3398504fac 100644
--- a/contrib/byacc/test/btyacc/calc_code_provides.tab.c
+++ b/contrib/byacc/test/btyacc/calc_code_provides.tab.c
@@ -550,14 +550,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -565,7 +565,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -659,7 +659,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/calc_code_requires.tab.c b/contrib/byacc/test/btyacc/calc_code_requires.tab.c
index 086e6b7bd1af..1b630f9dadea 100644
--- a/contrib/byacc/test/btyacc/calc_code_requires.tab.c
+++ b/contrib/byacc/test/btyacc/calc_code_requires.tab.c
@@ -550,14 +550,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -565,7 +565,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -659,7 +659,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/calc_code_top.tab.c b/contrib/byacc/test/btyacc/calc_code_top.tab.c
index 6e6ce04adfc7..e1ef6ec0ff2b 100644
--- a/contrib/byacc/test/btyacc/calc_code_top.tab.c
+++ b/contrib/byacc/test/btyacc/calc_code_top.tab.c
@@ -550,14 +550,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -565,7 +565,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -659,7 +659,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/code_calc.code.c b/contrib/byacc/test/btyacc/code_calc.code.c
index 4434a187ead9..49fe8c4b0ff9 100644
--- a/contrib/byacc/test/btyacc/code_calc.code.c
+++ b/contrib/byacc/test/btyacc/code_calc.code.c
@@ -415,14 +415,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -430,7 +430,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -524,7 +524,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/code_error.code.c b/contrib/byacc/test/btyacc/code_error.code.c
index 5b4130f4cd85..3cffb9e85318 100644
--- a/contrib/byacc/test/btyacc/code_error.code.c
+++ b/contrib/byacc/test/btyacc/code_error.code.c
@@ -385,14 +385,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -400,7 +400,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -494,7 +494,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/defines1.calc.c b/contrib/byacc/test/btyacc/defines1.calc.c
index 606ad414f571..8c1206a89683 100644
--- a/contrib/byacc/test/btyacc/defines1.calc.c
+++ b/contrib/byacc/test/btyacc/defines1.calc.c
@@ -449,14 +449,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -464,7 +464,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -558,7 +558,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/defines2.calc.c b/contrib/byacc/test/btyacc/defines2.calc.c
index 606ad414f571..8c1206a89683 100644
--- a/contrib/byacc/test/btyacc/defines2.calc.c
+++ b/contrib/byacc/test/btyacc/defines2.calc.c
@@ -449,14 +449,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -464,7 +464,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -558,7 +558,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/defines3.calc.c b/contrib/byacc/test/btyacc/defines3.calc.c
index 34473f73b66a..9a1655555d0c 100644
--- a/contrib/byacc/test/btyacc/defines3.calc.c
+++ b/contrib/byacc/test/btyacc/defines3.calc.c
@@ -449,14 +449,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -464,7 +464,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -558,7 +558,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/empty.tab.c b/contrib/byacc/test/btyacc/empty.tab.c
index 8ec7d2d9d386..ae26439aeeed 100644
--- a/contrib/byacc/test/btyacc/empty.tab.c
+++ b/contrib/byacc/test/btyacc/empty.tab.c
@@ -404,14 +404,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -419,7 +419,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -513,7 +513,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/err_inherit3.tab.c b/contrib/byacc/test/btyacc/err_inherit3.tab.c
index 790d9c5eaf66..3b1da35ee3eb 100644
--- a/contrib/byacc/test/btyacc/err_inherit3.tab.c
+++ b/contrib/byacc/test/btyacc/err_inherit3.tab.c
@@ -504,14 +504,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -519,7 +519,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -613,7 +613,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/err_inherit4.tab.c b/contrib/byacc/test/btyacc/err_inherit4.tab.c
index 9e101f8370b1..087ee9cd1d92 100644
--- a/contrib/byacc/test/btyacc/err_inherit4.tab.c
+++ b/contrib/byacc/test/btyacc/err_inherit4.tab.c
@@ -502,14 +502,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -517,7 +517,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -611,7 +611,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/err_syntax10.tab.c b/contrib/byacc/test/btyacc/err_syntax10.tab.c
index c004a0790438..69f17a178cdc 100644
--- a/contrib/byacc/test/btyacc/err_syntax10.tab.c
+++ b/contrib/byacc/test/btyacc/err_syntax10.tab.c
@@ -403,14 +403,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -418,7 +418,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -512,7 +512,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/err_syntax11.tab.c b/contrib/byacc/test/btyacc/err_syntax11.tab.c
index e4b3af6144a1..681b8242bd91 100644
--- a/contrib/byacc/test/btyacc/err_syntax11.tab.c
+++ b/contrib/byacc/test/btyacc/err_syntax11.tab.c
@@ -409,14 +409,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -424,7 +424,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -518,7 +518,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/err_syntax12.tab.c b/contrib/byacc/test/btyacc/err_syntax12.tab.c
index f27d1413e94f..f11e404bb750 100644
--- a/contrib/byacc/test/btyacc/err_syntax12.tab.c
+++ b/contrib/byacc/test/btyacc/err_syntax12.tab.c
@@ -415,14 +415,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -430,7 +430,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -524,7 +524,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/err_syntax18.tab.c b/contrib/byacc/test/btyacc/err_syntax18.tab.c
index f79b911c4b58..fdd985079bca 100644
--- a/contrib/byacc/test/btyacc/err_syntax18.tab.c
+++ b/contrib/byacc/test/btyacc/err_syntax18.tab.c
@@ -412,14 +412,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -427,7 +427,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -521,7 +521,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/err_syntax20.tab.c b/contrib/byacc/test/btyacc/err_syntax20.tab.c
index 1a81604d809c..87a0ba10978b 100644
--- a/contrib/byacc/test/btyacc/err_syntax20.tab.c
+++ b/contrib/byacc/test/btyacc/err_syntax20.tab.c
@@ -407,14 +407,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -422,7 +422,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -516,7 +516,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/error.tab.c b/contrib/byacc/test/btyacc/error.tab.c
index 03770d0c5b4e..17f38a70292d 100644
--- a/contrib/byacc/test/btyacc/error.tab.c
+++ b/contrib/byacc/test/btyacc/error.tab.c
@@ -408,14 +408,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -423,7 +423,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -517,7 +517,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/expr.oxout.tab.c b/contrib/byacc/test/btyacc/expr.oxout.tab.c
index 8f2ca41e2f2a..56ba7cca1e59 100644
--- a/contrib/byacc/test/btyacc/expr.oxout.tab.c
+++ b/contrib/byacc/test/btyacc/expr.oxout.tab.c
@@ -1828,14 +1828,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -1843,7 +1843,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -1937,7 +1937,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/grammar.tab.c b/contrib/byacc/test/btyacc/grammar.tab.c
index 951d8bbcb6b4..9f4d9e4c5436 100644
--- a/contrib/byacc/test/btyacc/grammar.tab.c
+++ b/contrib/byacc/test/btyacc/grammar.tab.c
@@ -1382,14 +1382,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -1397,7 +1397,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -1491,7 +1491,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/inherit0.tab.c b/contrib/byacc/test/btyacc/inherit0.tab.c
index 4ab2829be0bc..51d4b764da2b 100644
--- a/contrib/byacc/test/btyacc/inherit0.tab.c
+++ b/contrib/byacc/test/btyacc/inherit0.tab.c
@@ -427,14 +427,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -442,7 +442,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -536,7 +536,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/inherit1.tab.c b/contrib/byacc/test/btyacc/inherit1.tab.c
index eec47f618ad1..aee480b9c145 100644
--- a/contrib/byacc/test/btyacc/inherit1.tab.c
+++ b/contrib/byacc/test/btyacc/inherit1.tab.c
@@ -448,14 +448,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -463,7 +463,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -557,7 +557,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/inherit2.tab.c b/contrib/byacc/test/btyacc/inherit2.tab.c
index 1c1573bfedeb..44b65b03f6d8 100644
--- a/contrib/byacc/test/btyacc/inherit2.tab.c
+++ b/contrib/byacc/test/btyacc/inherit2.tab.c
@@ -503,14 +503,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -518,7 +518,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -612,7 +612,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/ok_syntax1.tab.c b/contrib/byacc/test/btyacc/ok_syntax1.tab.c
index cf6cc111ca6e..ba1ef3125c7d 100644
--- a/contrib/byacc/test/btyacc/ok_syntax1.tab.c
+++ b/contrib/byacc/test/btyacc/ok_syntax1.tab.c
@@ -531,14 +531,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -546,7 +546,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -692,7 +692,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/pure_calc.tab.c b/contrib/byacc/test/btyacc/pure_calc.tab.c
index 491f881de44c..d22e2c68feb4 100644
--- a/contrib/byacc/test/btyacc/pure_calc.tab.c
+++ b/contrib/byacc/test/btyacc/pure_calc.tab.c
@@ -504,14 +504,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -519,7 +519,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -665,7 +665,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/pure_error.tab.c b/contrib/byacc/test/btyacc/pure_error.tab.c
index 5dba3d0fe408..cfbbf278b9ec 100644
--- a/contrib/byacc/test/btyacc/pure_error.tab.c
+++ b/contrib/byacc/test/btyacc/pure_error.tab.c
@@ -372,14 +372,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -387,7 +387,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -533,7 +533,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/quote_calc-s.tab.c b/contrib/byacc/test/btyacc/quote_calc-s.tab.c
index 29888135c28a..236c4764774b 100644
--- a/contrib/byacc/test/btyacc/quote_calc-s.tab.c
+++ b/contrib/byacc/test/btyacc/quote_calc-s.tab.c
@@ -560,14 +560,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -575,7 +575,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -669,7 +669,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/quote_calc.tab.c b/contrib/byacc/test/btyacc/quote_calc.tab.c
index 384877b5556c..c2b1143ea552 100644
--- a/contrib/byacc/test/btyacc/quote_calc.tab.c
+++ b/contrib/byacc/test/btyacc/quote_calc.tab.c
@@ -566,14 +566,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -581,7 +581,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -675,7 +675,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/quote_calc2-s.tab.c b/contrib/byacc/test/btyacc/quote_calc2-s.tab.c
index 7ccd0127e135..13ed330f35c2 100644
--- a/contrib/byacc/test/btyacc/quote_calc2-s.tab.c
+++ b/contrib/byacc/test/btyacc/quote_calc2-s.tab.c
@@ -560,14 +560,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -575,7 +575,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -669,7 +669,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/quote_calc2.tab.c b/contrib/byacc/test/btyacc/quote_calc2.tab.c
index 3378494d51e4..6020a3e9e8c1 100644
--- a/contrib/byacc/test/btyacc/quote_calc2.tab.c
+++ b/contrib/byacc/test/btyacc/quote_calc2.tab.c
@@ -566,14 +566,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -581,7 +581,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -675,7 +675,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/quote_calc3-s.tab.c b/contrib/byacc/test/btyacc/quote_calc3-s.tab.c
index 7db30e57057e..ff5d5fb74deb 100644
--- a/contrib/byacc/test/btyacc/quote_calc3-s.tab.c
+++ b/contrib/byacc/test/btyacc/quote_calc3-s.tab.c
@@ -561,14 +561,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -576,7 +576,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -670,7 +670,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/quote_calc3.tab.c b/contrib/byacc/test/btyacc/quote_calc3.tab.c
index 4eae158efdee..560ffd72d4a8 100644
--- a/contrib/byacc/test/btyacc/quote_calc3.tab.c
+++ b/contrib/byacc/test/btyacc/quote_calc3.tab.c
@@ -561,14 +561,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -576,7 +576,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -670,7 +670,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/quote_calc4-s.tab.c b/contrib/byacc/test/btyacc/quote_calc4-s.tab.c
index 14ae21643c9d..800d50ccefd1 100644
--- a/contrib/byacc/test/btyacc/quote_calc4-s.tab.c
+++ b/contrib/byacc/test/btyacc/quote_calc4-s.tab.c
@@ -561,14 +561,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -576,7 +576,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -670,7 +670,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/quote_calc4.tab.c b/contrib/byacc/test/btyacc/quote_calc4.tab.c
index 1ae947c176b0..6191b2c9a7ae 100644
--- a/contrib/byacc/test/btyacc/quote_calc4.tab.c
+++ b/contrib/byacc/test/btyacc/quote_calc4.tab.c
@@ -561,14 +561,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -576,7 +576,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -670,7 +670,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/rename_debug.c b/contrib/byacc/test/btyacc/rename_debug.c
index 5e5ec3cc43d8..5ee69b2a1f05 100644
--- a/contrib/byacc/test/btyacc/rename_debug.c
+++ b/contrib/byacc/test/btyacc/rename_debug.c
@@ -271,14 +271,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -286,7 +286,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -380,7 +380,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/stdin1.calc.c b/contrib/byacc/test/btyacc/stdin1.calc.c
index 62cc97ad5ab6..d1eb20fd7db6 100644
--- a/contrib/byacc/test/btyacc/stdin1.calc.c
+++ b/contrib/byacc/test/btyacc/stdin1.calc.c
@@ -449,14 +449,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -464,7 +464,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -558,7 +558,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/stdin2.calc.c b/contrib/byacc/test/btyacc/stdin2.calc.c
index 50b9d5b86b89..d4e0513d8112 100644
--- a/contrib/byacc/test/btyacc/stdin2.calc.c
+++ b/contrib/byacc/test/btyacc/stdin2.calc.c
@@ -449,14 +449,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -464,7 +464,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -558,7 +558,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/btyacc/varsyntax_calc1.tab.c b/contrib/byacc/test/btyacc/varsyntax_calc1.tab.c
index da6b1d9c397a..bea464489ae0 100644
--- a/contrib/byacc/test/btyacc/varsyntax_calc1.tab.c
+++ b/contrib/byacc/test/btyacc/varsyntax_calc1.tab.c
@@ -687,14 +687,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -702,7 +702,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -796,7 +796,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/calc.tab.c b/contrib/byacc/test/yacc/calc.tab.c
index db205fd46282..8b595a7ad33b 100644
--- a/contrib/byacc/test/yacc/calc.tab.c
+++ b/contrib/byacc/test/yacc/calc.tab.c
@@ -378,14 +378,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -419,7 +419,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/calc1.tab.c b/contrib/byacc/test/yacc/calc1.tab.c
index 6506240019ac..889f96b8e412 100644
--- a/contrib/byacc/test/yacc/calc1.tab.c
+++ b/contrib/byacc/test/yacc/calc1.tab.c
@@ -515,14 +515,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -556,7 +556,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/calc2.tab.c b/contrib/byacc/test/yacc/calc2.tab.c
index 465575eeceb4..76184724f92b 100644
--- a/contrib/byacc/test/yacc/calc2.tab.c
+++ b/contrib/byacc/test/yacc/calc2.tab.c
@@ -391,14 +391,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -432,7 +432,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/calc3.tab.c b/contrib/byacc/test/yacc/calc3.tab.c
index 3843e6f50bdf..3d44e99a4c1f 100644
--- a/contrib/byacc/test/yacc/calc3.tab.c
+++ b/contrib/byacc/test/yacc/calc3.tab.c
@@ -388,14 +388,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -437,7 +437,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/calc_code_all.tab.c b/contrib/byacc/test/yacc/calc_code_all.tab.c
index f6b624afb986..c99faee411a4 100644
--- a/contrib/byacc/test/yacc/calc_code_all.tab.c
+++ b/contrib/byacc/test/yacc/calc_code_all.tab.c
@@ -406,14 +406,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -447,7 +447,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/calc_code_default.tab.c b/contrib/byacc/test/yacc/calc_code_default.tab.c
index 5cdc0cedab08..2b99f4f37809 100644
--- a/contrib/byacc/test/yacc/calc_code_default.tab.c
+++ b/contrib/byacc/test/yacc/calc_code_default.tab.c
@@ -386,14 +386,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -427,7 +427,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/calc_code_imports.tab.c b/contrib/byacc/test/yacc/calc_code_imports.tab.c
index c72f987627b6..2679b04768a0 100644
--- a/contrib/byacc/test/yacc/calc_code_imports.tab.c
+++ b/contrib/byacc/test/yacc/calc_code_imports.tab.c
@@ -378,14 +378,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -419,7 +419,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/calc_code_provides.tab.c b/contrib/byacc/test/yacc/calc_code_provides.tab.c
index 2f8f45d1a345..c352fd4ef80e 100644
--- a/contrib/byacc/test/yacc/calc_code_provides.tab.c
+++ b/contrib/byacc/test/yacc/calc_code_provides.tab.c
@@ -386,14 +386,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -427,7 +427,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/calc_code_requires.tab.c b/contrib/byacc/test/yacc/calc_code_requires.tab.c
index ad8aea1707fd..d2e44b79eba4 100644
--- a/contrib/byacc/test/yacc/calc_code_requires.tab.c
+++ b/contrib/byacc/test/yacc/calc_code_requires.tab.c
@@ -386,14 +386,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -427,7 +427,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/calc_code_top.tab.c b/contrib/byacc/test/yacc/calc_code_top.tab.c
index 5370f8a98bcf..39339b753ab4 100644
--- a/contrib/byacc/test/yacc/calc_code_top.tab.c
+++ b/contrib/byacc/test/yacc/calc_code_top.tab.c
@@ -386,14 +386,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -427,7 +427,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/code_calc.code.c b/contrib/byacc/test/yacc/code_calc.code.c
index 94ad71977a9f..9064ea06836a 100644
--- a/contrib/byacc/test/yacc/code_calc.code.c
+++ b/contrib/byacc/test/yacc/code_calc.code.c
@@ -287,14 +287,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -328,7 +328,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/code_error.code.c b/contrib/byacc/test/yacc/code_error.code.c
index f8b0ac27bd11..5b82da63b060 100644
--- a/contrib/byacc/test/yacc/code_error.code.c
+++ b/contrib/byacc/test/yacc/code_error.code.c
@@ -257,14 +257,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -298,7 +298,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/defines1.calc.c b/contrib/byacc/test/yacc/defines1.calc.c
index 8245480d345a..01bae0b73e23 100644
--- a/contrib/byacc/test/yacc/defines1.calc.c
+++ b/contrib/byacc/test/yacc/defines1.calc.c
@@ -302,14 +302,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -343,7 +343,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/defines2.calc.c b/contrib/byacc/test/yacc/defines2.calc.c
index 8245480d345a..01bae0b73e23 100644
--- a/contrib/byacc/test/yacc/defines2.calc.c
+++ b/contrib/byacc/test/yacc/defines2.calc.c
@@ -302,14 +302,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -343,7 +343,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/defines3.calc.c b/contrib/byacc/test/yacc/defines3.calc.c
index 2a3f1cafdf1d..78e1001f6c46 100644
--- a/contrib/byacc/test/yacc/defines3.calc.c
+++ b/contrib/byacc/test/yacc/defines3.calc.c
@@ -302,14 +302,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -343,7 +343,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/empty.tab.c b/contrib/byacc/test/yacc/empty.tab.c
index 67608d600913..065f39827b1c 100644
--- a/contrib/byacc/test/yacc/empty.tab.c
+++ b/contrib/byacc/test/yacc/empty.tab.c
@@ -268,14 +268,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -309,7 +309,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/err_syntax10.tab.c b/contrib/byacc/test/yacc/err_syntax10.tab.c
index 9d309b9b25e3..e5c19876c746 100644
--- a/contrib/byacc/test/yacc/err_syntax10.tab.c
+++ b/contrib/byacc/test/yacc/err_syntax10.tab.c
@@ -267,14 +267,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -308,7 +308,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/err_syntax11.tab.c b/contrib/byacc/test/yacc/err_syntax11.tab.c
index b040573f892c..6f7ae21925ca 100644
--- a/contrib/byacc/test/yacc/err_syntax11.tab.c
+++ b/contrib/byacc/test/yacc/err_syntax11.tab.c
@@ -273,14 +273,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -314,7 +314,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/err_syntax12.tab.c b/contrib/byacc/test/yacc/err_syntax12.tab.c
index 7dd742e7f374..563bf6e6efe8 100644
--- a/contrib/byacc/test/yacc/err_syntax12.tab.c
+++ b/contrib/byacc/test/yacc/err_syntax12.tab.c
@@ -279,14 +279,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -320,7 +320,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/err_syntax18.tab.c b/contrib/byacc/test/yacc/err_syntax18.tab.c
index 92309c1cd433..38f3abac1402 100644
--- a/contrib/byacc/test/yacc/err_syntax18.tab.c
+++ b/contrib/byacc/test/yacc/err_syntax18.tab.c
@@ -275,14 +275,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -316,7 +316,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/err_syntax20.tab.c b/contrib/byacc/test/yacc/err_syntax20.tab.c
index 562e254a66e8..8ed17da27e7f 100644
--- a/contrib/byacc/test/yacc/err_syntax20.tab.c
+++ b/contrib/byacc/test/yacc/err_syntax20.tab.c
@@ -271,14 +271,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -312,7 +312,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/error.tab.c b/contrib/byacc/test/yacc/error.tab.c
index c9e9406e7dc6..86b5dc8f0cdf 100644
--- a/contrib/byacc/test/yacc/error.tab.c
+++ b/contrib/byacc/test/yacc/error.tab.c
@@ -273,14 +273,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -314,7 +314,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/expr.oxout.tab.c b/contrib/byacc/test/yacc/expr.oxout.tab.c
index 52cf17d008b4..ca1a8345aeed 100644
--- a/contrib/byacc/test/yacc/expr.oxout.tab.c
+++ b/contrib/byacc/test/yacc/expr.oxout.tab.c
@@ -1669,14 +1669,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -1710,7 +1710,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/grammar.tab.c b/contrib/byacc/test/yacc/grammar.tab.c
index e7587cb74522..14892e39837d 100644
--- a/contrib/byacc/test/yacc/grammar.tab.c
+++ b/contrib/byacc/test/yacc/grammar.tab.c
@@ -1117,14 +1117,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -1158,7 +1158,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/ok_syntax1.tab.c b/contrib/byacc/test/yacc/ok_syntax1.tab.c
index 294d3096458a..8a58766d96ac 100644
--- a/contrib/byacc/test/yacc/ok_syntax1.tab.c
+++ b/contrib/byacc/test/yacc/ok_syntax1.tab.c
@@ -412,14 +412,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -461,7 +461,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/pure_calc.tab.c b/contrib/byacc/test/yacc/pure_calc.tab.c
index 45ced9b94347..c72f28d4f271 100644
--- a/contrib/byacc/test/yacc/pure_calc.tab.c
+++ b/contrib/byacc/test/yacc/pure_calc.tab.c
@@ -384,14 +384,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -433,7 +433,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/pure_error.tab.c b/contrib/byacc/test/yacc/pure_error.tab.c
index 361ba542ec0d..969a8b471fd9 100644
--- a/contrib/byacc/test/yacc/pure_error.tab.c
+++ b/contrib/byacc/test/yacc/pure_error.tab.c
@@ -281,14 +281,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -330,7 +330,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/quote_calc-s.tab.c b/contrib/byacc/test/yacc/quote_calc-s.tab.c
index 0cfdfef9cfdd..ae51179088e2 100644
--- a/contrib/byacc/test/yacc/quote_calc-s.tab.c
+++ b/contrib/byacc/test/yacc/quote_calc-s.tab.c
@@ -393,14 +393,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -434,7 +434,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/quote_calc.tab.c b/contrib/byacc/test/yacc/quote_calc.tab.c
index 6e9fd4df23f5..071b6380c46c 100644
--- a/contrib/byacc/test/yacc/quote_calc.tab.c
+++ b/contrib/byacc/test/yacc/quote_calc.tab.c
@@ -399,14 +399,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -440,7 +440,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/quote_calc2-s.tab.c b/contrib/byacc/test/yacc/quote_calc2-s.tab.c
index d8d17fa3b978..cdcb92282ec5 100644
--- a/contrib/byacc/test/yacc/quote_calc2-s.tab.c
+++ b/contrib/byacc/test/yacc/quote_calc2-s.tab.c
@@ -393,14 +393,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -434,7 +434,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/quote_calc2.tab.c b/contrib/byacc/test/yacc/quote_calc2.tab.c
index b601d7b7fea7..ea47da14c8e9 100644
--- a/contrib/byacc/test/yacc/quote_calc2.tab.c
+++ b/contrib/byacc/test/yacc/quote_calc2.tab.c
@@ -399,14 +399,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -440,7 +440,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/quote_calc3-s.tab.c b/contrib/byacc/test/yacc/quote_calc3-s.tab.c
index 6a4d70259ba7..26dc65ad4907 100644
--- a/contrib/byacc/test/yacc/quote_calc3-s.tab.c
+++ b/contrib/byacc/test/yacc/quote_calc3-s.tab.c
@@ -394,14 +394,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -435,7 +435,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/quote_calc3.tab.c b/contrib/byacc/test/yacc/quote_calc3.tab.c
index bcad8e89b0fd..7c4b851b2cca 100644
--- a/contrib/byacc/test/yacc/quote_calc3.tab.c
+++ b/contrib/byacc/test/yacc/quote_calc3.tab.c
@@ -394,14 +394,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -435,7 +435,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/quote_calc4-s.tab.c b/contrib/byacc/test/yacc/quote_calc4-s.tab.c
index bb747dd66f46..2634c536fc86 100644
--- a/contrib/byacc/test/yacc/quote_calc4-s.tab.c
+++ b/contrib/byacc/test/yacc/quote_calc4-s.tab.c
@@ -394,14 +394,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -435,7 +435,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/quote_calc4.tab.c b/contrib/byacc/test/yacc/quote_calc4.tab.c
index 43a55664a9c3..41be2fca4862 100644
--- a/contrib/byacc/test/yacc/quote_calc4.tab.c
+++ b/contrib/byacc/test/yacc/quote_calc4.tab.c
@@ -394,14 +394,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -435,7 +435,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/rename_debug.c b/contrib/byacc/test/yacc/rename_debug.c
index c0890dde9356..71c48e903e97 100644
--- a/contrib/byacc/test/yacc/rename_debug.c
+++ b/contrib/byacc/test/yacc/rename_debug.c
@@ -153,14 +153,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -194,7 +194,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/stdin1.calc.c b/contrib/byacc/test/yacc/stdin1.calc.c
index a30852500354..d09a1fd257d4 100644
--- a/contrib/byacc/test/yacc/stdin1.calc.c
+++ b/contrib/byacc/test/yacc/stdin1.calc.c
@@ -302,14 +302,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -343,7 +343,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/stdin2.calc.c b/contrib/byacc/test/yacc/stdin2.calc.c
index f86bdc005aab..d3a749e100a1 100644
--- a/contrib/byacc/test/yacc/stdin2.calc.c
+++ b/contrib/byacc/test/yacc/stdin2.calc.c
@@ -302,14 +302,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -343,7 +343,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
diff --git a/contrib/byacc/test/yacc/varsyntax_calc1.tab.c b/contrib/byacc/test/yacc/varsyntax_calc1.tab.c
index 8d56d450d834..1132961f19e6 100644
--- a/contrib/byacc/test/yacc/varsyntax_calc1.tab.c
+++ b/contrib/byacc/test/yacc/varsyntax_calc1.tab.c
@@ -516,14 +516,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -557,7 +557,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')