summaryrefslogtreecommitdiff
path: root/defs
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-16 00:30:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-16 00:30:16 +0000
commit78e376a3eeab15deb1d1a240bb9b575691178a46 (patch)
treebe8a1daff7f8f2cab4a0129a66bbf30e40099305 /defs
parentd2c07ecb88425b9f9571b1637499f8f977b06714 (diff)
* defs/keywords (reserved_word): made inline function static.
[ruby-core:23210] * parse.y (rb_reserved_word): ordinary function for ripper. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'defs')
-rw-r--r--defs/keywords2
-rw-r--r--defs/lex.c.src2
2 files changed, 4 insertions, 0 deletions
diff --git a/defs/keywords b/defs/keywords
index f0d82a7667..1b5719aa85 100644
--- a/defs/keywords
+++ b/defs/keywords
@@ -2,6 +2,8 @@
struct kwtable {const char *name; int id[2]; enum lex_state_e state;};
const struct kwtable *rb_reserved_word(const char *, unsigned int);
#ifndef RIPPER
+static const struct kwtable *reserved_word(const char *, unsigned int);
+#define rb_reserved_word(str, len) reserved_word(str, len)
%}
struct kwtable;
diff --git a/defs/lex.c.src b/defs/lex.c.src
index f0d82a7667..1b5719aa85 100644
--- a/defs/lex.c.src
+++ b/defs/lex.c.src
@@ -2,6 +2,8 @@
struct kwtable {const char *name; int id[2]; enum lex_state_e state;};
const struct kwtable *rb_reserved_word(const char *, unsigned int);
#ifndef RIPPER
+static const struct kwtable *reserved_word(const char *, unsigned int);
+#define rb_reserved_word(str, len) reserved_word(str, len)
%}
struct kwtable;