diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-03-31 07:43:52 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-03-31 07:43:52 +0000 |
commit | bb905ef521fbecdaf16a9b43eacad950e63deddb (patch) | |
tree | fd023e5c641ac84a1b4ede05b2b44a12707e3a49 /gcc/c-parse.gperf | |
parent | 36d897f3d51cd053b81da671eeb12f92259f6e59 (diff) | |
download | gcc-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.gperf | 2 |
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 |