ruby-changes:35520
From: nobu <ko1@a...>
Date: Tue, 16 Sep 2014 11:44:43 +0900 (JST)
Subject: [ruby-changes:35520] nobu:r47602 (trunk): regenc.h: shrink PosixBracketEntryType
nobu 2014-09-16 11:44:19 +0900 (Tue, 16 Sep 2014) New Revision: 47602 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47602 Log: regenc.h: shrink PosixBracketEntryType * regenc.h (PosixBracketEntryType): shrink by embedding `name` and reordering. Modified files: trunk/regenc.h Index: regenc.h =================================================================== --- regenc.h (revision 47601) +++ regenc.h (revision 47602) @@ -102,13 +102,13 @@ typedef struct { https://github.com/ruby/ruby/blob/trunk/regenc.h#L102 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])) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/