summaryrefslogtreecommitdiffstats
path: root/usr.bin/yacc/skeleton.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-01-07 22:30:13 +0000
committerphk <phk@FreeBSD.org>1996-01-07 22:30:13 +0000
commitbdd1ce3cabfbef5966cf0d529b2bfc1a55ffb01f (patch)
tree2c9f4dc20c5b4f413cc5b1b05f92ddc7e6ca2782 /usr.bin/yacc/skeleton.c
parent2563a6a6ba3264475a0e6b5153dcc6804c871e98 (diff)
downloadFreeBSD-src-bdd1ce3cabfbef5966cf0d529b2bfc1a55ffb01f.zip
FreeBSD-src-bdd1ce3cabfbef5966cf0d529b2bfc1a55ffb01f.tar.gz
Make all the tables "const" so that they don't clutter our data-segment.
Diffstat (limited to 'usr.bin/yacc/skeleton.c')
-rw-r--r--usr.bin/yacc/skeleton.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.bin/yacc/skeleton.c b/usr.bin/yacc/skeleton.c
index 1e51b2e..fba6508 100644
--- a/usr.bin/yacc/skeleton.c
+++ b/usr.bin/yacc/skeleton.c
@@ -69,15 +69,15 @@ char *banner[] =
char *tables[] =
{
- "extern short yylhs[];",
- "extern short yylen[];",
- "extern short yydefred[];",
- "extern short yydgoto[];",
- "extern short yysindex[];",
- "extern short yyrindex[];",
- "extern short yygindex[];",
- "extern short yytable[];",
- "extern short yycheck[];",
+ "extern const short yylhs[];",
+ "extern const short yylen[];",
+ "extern const short yydefred[];",
+ "extern const short yydgoto[];",
+ "extern const short yysindex[];",
+ "extern const short yyrindex[];",
+ "extern const short yygindex[];",
+ "extern const short yytable[];",
+ "extern const short yycheck[];",
"#if YYDEBUG",
"extern char *yyname[];",
"extern char *yyrule[];",
OpenPOWER on IntegriCloud