aboutsummaryrefslogtreecommitdiffstats
path: root/regenc.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-22 07:28:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-22 07:28:43 +0000
commit46970b2d1d716c21784987f3a6daae181cb10b6a (patch)
tree5c5a7bfe9880392fc63d80f4ee303ee5902113a8 /regenc.h
parent01f3f86472c02fcf1ac456549de440361553e9c0 (diff)
downloadruby-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/regenc.h b/regenc.h
index c1d705b01a..9705621436 100644
--- a/regenc.h
+++ b/regenc.h
@@ -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