diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-22 07:28:43 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-22 07:28:43 +0000 |
commit | 46970b2d1d716c21784987f3a6daae181cb10b6a (patch) | |
tree | 5c5a7bfe9880392fc63d80f4ee303ee5902113a8 /regenc.h | |
parent | 01f3f86472c02fcf1ac456549de440361553e9c0 (diff) | |
download | ruby-46970b2d1d716c21784987f3a6daae181cb10b6a.tar.gz |
* regenc.h (PosixBracketEntryType): constified.
* regenc.h (PosixBracketEntryInit): suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regenc.h')
-rw-r--r-- | regenc.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -96,11 +96,12 @@ typedef struct { typedef struct { - UChar *name; + const UChar *name; int ctype; short int len; } PosixBracketEntryType; +#define PosixBracketEntryInit(name, ctype) {(const UChar *)name, ctype, (short int)(sizeof(name) - 1)} /* #define USE_CRNL_AS_LINE_TERMINATOR */ #define USE_UNICODE_PROPERTIES |