aboutsummaryrefslogtreecommitdiffstats
path: root/lex.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-13 13:44:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-13 13:44:21 +0000
commit032248d337bd683d2b77d972097a2f31688874cb (patch)
tree6e899062b79f5fdf054f48c9ffc1caca1e8d221e /lex.c
parent1ee65ab7bb4d6cb78bfd28d63858afb02a7a6434 (diff)
downloadruby-032248d337bd683d2b77d972097a2f31688874cb.tar.gz
* parse.y: remove static variables. [ruby-dev:26530]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lex.c')
-rw-r--r--lex.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lex.c b/lex.c
index 3d9c3018b2..b6331c1a95 100644
--- a/lex.c
+++ b/lex.c
@@ -1,7 +1,7 @@
/* C code produced by gperf version 2.7.2 */
-/* Command-line: gperf -p -j1 -i 1 -g -o -t -N rb_reserved_word -k'1,3,$' keywords */
+/* Command-line: gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k'1,3,$' keywords */
struct kwtable {char *name; int id[2]; enum lex_state_e state;};
-struct kwtable *rb_reserved_word _((const char *, unsigned int));
+const struct kwtable *rb_reserved_word _((const char *, unsigned int));
#ifndef RIPPER
;
@@ -24,7 +24,7 @@ hash (str, len)
register const char *str;
register unsigned int len;
{
- static unsigned char asso_values[] =
+ static const unsigned char asso_values[] =
{
56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
@@ -71,12 +71,12 @@ hash (str, len)
#ifdef __GNUC__
__inline
#endif
-struct kwtable *
+const struct kwtable *
rb_reserved_word (str, len)
register const char *str;
register unsigned int len;
{
- static struct kwtable wordlist[] =
+ static const struct kwtable wordlist[] =
{
{""}, {""}, {""}, {""}, {""}, {""},
{"end", {kEND, kEND}, EXPR_END},