summaryrefslogtreecommitdiff
path: root/regenc.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-16 02:44:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-16 02:44:19 +0000
commitc49c63e02d14f7a236a9e931d255a7efa629c65f (patch)
treefbe50f025e29765211ccf68327ee2c98e04d54f9 /regenc.h
parent5f63d9e7417cd4113eec7401ef32864c3efe5121 (diff)
regenc.h: shrink PosixBracketEntryType
* regenc.h (PosixBracketEntryType): shrink by embedding `name` and reordering. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regenc.h')
-rw-r--r--regenc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/regenc.h b/regenc.h
index e220aab..5e46796 100644
--- a/regenc.h
+++ b/regenc.h
@@ -102,13 +102,13 @@ typedef struct {
typedef struct {
- const UChar *name;
- int ctype;
short int len;
+ const UChar name[6];
+ int ctype;
} PosixBracketEntryType;
#define POSIX_BRACKET_ENTRY_INIT(name, ctype) \
- {(const UChar* )(name), (ctype), (short int )(sizeof(name) - 1)}
+ {(short int )(sizeof(name) - 1), (name), (ctype)}
#ifndef numberof
#define numberof(array) (int )(sizeof(array) / sizeof((array)[0]))