summaryrefslogtreecommitdiff
path: root/gcc/c-parse.gperf
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-03-31 07:43:52 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-03-31 07:43:52 +0000
commitbb905ef521fbecdaf16a9b43eacad950e63deddb (patch)
treefd023e5c641ac84a1b4ede05b2b44a12707e3a49 /gcc/c-parse.gperf
parent36d897f3d51cd053b81da671eeb12f92259f6e59 (diff)
downloadgcc-bb905ef521fbecdaf16a9b43eacad950e63deddb.tar.gz
* Makefile.in (c-gperf.h): Generate using gperf language 'C', not
'KR-C', so gperf uses the `const' keyword on strings. * c-parse.gperf (resword): Const-ify a char*. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26079 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parse.gperf')
-rw-r--r--gcc/c-parse.gperf2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-parse.gperf b/gcc/c-parse.gperf
index 324bd249554..888eee9ebe1 100644
--- a/gcc/c-parse.gperf
+++ b/gcc/c-parse.gperf
@@ -1,7 +1,7 @@
%{
/* Command-line: gperf -L KR-C -F ', 0, 0' -p -j1 -i 1 -g -o -t -N is_reserved_word -k1,3,$ c-parse.gperf */
%}
-struct resword { char *name; short token; enum rid rid; };
+struct resword { const char *name; short token; enum rid rid; };
%%
@class, CLASS, NORID
@compatibility_alias, ALIAS, NORID