mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
d2c07ecb88
commit
78e376a3ee
5 changed files with 68 additions and 47 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue