mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
keywords: shrink struct kwtable
* defs/keywords (struct kwtable): shrink since members do not exceed 16bit. lex_state needs to be int (or enum lex_state_e) when EXPR_MAX_STATE reaches it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
543ed3652f
commit
415c334092
3 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
%{
|
%{
|
||||||
struct kwtable {int name, id[2], state;};
|
struct kwtable {short name, id[2], state;};
|
||||||
const struct kwtable *rb_reserved_word(const char *, unsigned int);
|
const struct kwtable *rb_reserved_word(const char *, unsigned int);
|
||||||
#ifndef RIPPER
|
#ifndef RIPPER
|
||||||
static const struct kwtable *reserved_word(/*!ANSI{*/const char *, unsigned int/*}!ANSI*/);
|
static const struct kwtable *reserved_word(/*!ANSI{*/const char *, unsigned int/*}!ANSI*/);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
%{
|
%{
|
||||||
struct kwtable {int name, id[2], state;};
|
struct kwtable {short name, id[2], state;};
|
||||||
const struct kwtable *rb_reserved_word(const char *, unsigned int);
|
const struct kwtable *rb_reserved_word(const char *, unsigned int);
|
||||||
#ifndef RIPPER
|
#ifndef RIPPER
|
||||||
static const struct kwtable *reserved_word(/*!ANSI{*/const char *, unsigned int/*}!ANSI*/);
|
static const struct kwtable *reserved_word(/*!ANSI{*/const char *, unsigned int/*}!ANSI*/);
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#define gperf_offsetof(s, n) (short)offsetof(struct s##_t, s##_str##n)
|
#define gperf_offsetof(s, n) (short)offsetof(struct s##_t, s##_str##n)
|
||||||
#line 1 "defs/keywords"
|
#line 1 "defs/keywords"
|
||||||
|
|
||||||
struct kwtable {int name, id[2], state;};
|
struct kwtable {short name, id[2], state;};
|
||||||
const struct kwtable *rb_reserved_word(const char *, unsigned int);
|
const struct kwtable *rb_reserved_word(const char *, unsigned int);
|
||||||
#ifndef RIPPER
|
#ifndef RIPPER
|
||||||
static const struct kwtable *reserved_word(/*const char *, unsigned int*/);
|
static const struct kwtable *reserved_word(/*const char *, unsigned int*/);
|
||||||
|
|
Loading…
Reference in a new issue