From bdef2a413abcef2f4693bf862447ca1c24612f27 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 10 Dec 2001 09:07:17 +0000 Subject: [PATCH] * src/muscle_tab.c (muscle_init): NULL is a better default than `"0"'. --- ChangeLog | 6 ++++++ src/muscle_tab.c | 52 ++++++++++++++++++++++++------------------------ 2 files changed, 32 insertions(+), 26 deletions(-) diff --git a/ChangeLog b/ChangeLog index 32c7f04b..d4ddec2c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-12-10 Akim Demaille + + * src/muscle_tab.c (muscle_init): NULL is a better default than + `"0"'. + + 2001-12-10 Akim Demaille * src/reader.c (reader): Calling symbols_output once is enough. diff --git a/src/muscle_tab.c b/src/muscle_tab.c index 0182ed27..c2ac3876 100644 --- a/src/muscle_tab.c +++ b/src/muscle_tab.c @@ -59,41 +59,41 @@ muscle_init (void) muscle_insert ("ltype", "yyltype"); /* Tokens. */ - muscle_insert ("tokendef", ""); + muscle_insert ("tokendef", NULL); /* Tables. */ - muscle_insert ("rhs", "0"); - muscle_insert ("pact", "0"); - muscle_insert ("prhs", "0"); - muscle_insert ("stos", "0"); - muscle_insert ("check", "0"); - muscle_insert ("pgoto", "0"); - muscle_insert ("table", "0"); - muscle_insert ("tname", "0"); - muscle_insert ("defact", "0"); - muscle_insert ("toknum", "0"); - muscle_insert ("defgoto", "0"); - muscle_insert ("translate", "0"); + muscle_insert ("rhs", NULL); + muscle_insert ("pact", NULL); + muscle_insert ("prhs", NULL); + muscle_insert ("stos", NULL); + muscle_insert ("check", NULL); + muscle_insert ("pgoto", NULL); + muscle_insert ("table", NULL); + muscle_insert ("tname", NULL); + muscle_insert ("defact", NULL); + muscle_insert ("toknum", NULL); + muscle_insert ("defgoto", NULL); + muscle_insert ("translate", NULL); /* Various macros. */ - muscle_insert ("flag", "0"); - muscle_insert ("last", "0"); - muscle_insert ("pure", "0"); - muscle_insert ("nsym", "0"); - muscle_insert ("debug", "0"); - muscle_insert ("final", "0"); - muscle_insert ("maxtok", "0"); - muscle_insert ("ntbase", "0"); - muscle_insert ("error-verbose", "0"); + muscle_insert ("flag", NULL); + muscle_insert ("last", NULL); + muscle_insert ("pure", NULL); + muscle_insert ("nsym", NULL); + muscle_insert ("debug", NULL); + muscle_insert ("final", NULL); + muscle_insert ("maxtok", NULL); + muscle_insert ("ntbase", NULL); + muscle_insert ("error-verbose", NULL); muscle_insert ("prefix", "yy"); /* Default #line formatting. */ muscle_insert ("linef", "#line %d %s\n"); /* No parser macros. */ - muscle_insert ("nnts", "0"); - muscle_insert ("nrules", "0"); - muscle_insert ("nstates", "0"); - muscle_insert ("ntokens", "0"); + muscle_insert ("nnts", NULL); + muscle_insert ("nrules", NULL); + muscle_insert ("nstates", NULL); + muscle_insert ("ntokens", NULL); /* Stack parameters. */ muscle_insert ("maxdepth", "10000"); -- 2.45.2