From b64f677da6a8f3cbce3b1c8a085c7992e947b487 Mon Sep 17 00:00:00 2001 From: kris Date: Sun, 26 Nov 2000 11:07:45 +0000 Subject: Constify --- usr.bin/yacc/defs.h | 1 - usr.bin/yacc/output.c | 1 + usr.bin/yacc/reader.c | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/yacc') diff --git a/usr.bin/yacc/defs.h b/usr.bin/yacc/defs.h index a8d8113..43af00b 100644 --- a/usr.bin/yacc/defs.h +++ b/usr.bin/yacc/defs.h @@ -265,7 +265,6 @@ extern int nvars; extern int ntags; extern char unionized; -extern char line_format[]; extern int start_symbol; extern char **symbol_name; diff --git a/usr.bin/yacc/output.c b/usr.bin/yacc/output.c index 2130969..31bb4be 100644 --- a/usr.bin/yacc/output.c +++ b/usr.bin/yacc/output.c @@ -70,6 +70,7 @@ static void save_column __P((int, int)); static void sort_actions __P((void)); static void token_actions __P((void)); +static const char line_format[] = "#line %d \"%s\"\n"; static int nvectors; static int nentries; static short **froms; diff --git a/usr.bin/yacc/reader.c b/usr.bin/yacc/reader.c index 4e2e588..8fb38fa 100644 --- a/usr.bin/yacc/reader.c +++ b/usr.bin/yacc/reader.c @@ -75,7 +75,7 @@ bucket **plhs; int name_pool_size; char *name_pool; -char line_format[] = "#line %d \"%s\"\n"; +static const char line_format[] = "#line %d \"%s\"\n"; static void add_symbol __P((void)); static void advance_to_start __P((void)); -- cgit v1.1