mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
5f63d9e741
commit
c49c63e02d
1 changed files with 3 additions and 3 deletions
6
regenc.h
6
regenc.h
|
@ -102,13 +102,13 @@ typedef struct {
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
const UChar *name;
|
|
||||||
int ctype;
|
|
||||||
short int len;
|
short int len;
|
||||||
|
const UChar name[6];
|
||||||
|
int ctype;
|
||||||
} PosixBracketEntryType;
|
} PosixBracketEntryType;
|
||||||
|
|
||||||
#define POSIX_BRACKET_ENTRY_INIT(name, ctype) \
|
#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
|
#ifndef numberof
|
||||||
#define numberof(array) (int )(sizeof(array) / sizeof((array)[0]))
|
#define numberof(array) (int )(sizeof(array) / sizeof((array)[0]))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue