diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-14 08:57:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-14 08:57:07 +0000 |
commit | ea9fee5aecea500a77b6fc1c78af829c9d25d7d3 (patch) | |
tree | 36639504d69b3a58522706e956fe7326d0011eb2 /include/ruby/encoding.h | |
parent | 3898f740990f359fafe930dc9c93f19003b936a0 (diff) | |
download | ruby-ea9fee5aecea500a77b6fc1c78af829c9d25d7d3.tar.gz ruby-ea9fee5aecea500a77b6fc1c78af829c9d25d7d3.tar.xz ruby-ea9fee5aecea500a77b6fc1c78af829c9d25d7d3.zip |
* include/ruby/encoding.h (rb_enc_ispunct): added.
* common.mk (COMMONOBJS), inits.c (rb_call_inits): id.c is now
included from parse.c.
* id.c (Init_id), id.h (ruby_method_ids): added IDs used by VM.
* parse.y (global_symbols): added rooms for VM IDs.
* parse.y (rb_intern3, rb_id2str): single puctuation symbol is now
same as char code.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/encoding.h')
-rw-r--r-- | include/ruby/encoding.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index fcd87dc9a..c301b8458 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -143,6 +143,7 @@ int rb_enc_codelen(int code, rb_encoding *enc); #define rb_enc_isalpha(c,enc) ONIGENC_IS_CODE_ALPHA(enc,c) #define rb_enc_islower(c,enc) ONIGENC_IS_CODE_LOWER(enc,c) #define rb_enc_isupper(c,enc) ONIGENC_IS_CODE_UPPER(enc,c) +#define rb_enc_ispunct(c,enc) ONIGENC_IS_CODE_PUNCT(enc,c) #define rb_enc_isalnum(c,enc) ONIGENC_IS_CODE_ALNUM(enc,c) #define rb_enc_isprint(c,enc) ONIGENC_IS_CODE_PRINT(enc,c) #define rb_enc_isspace(c,enc) ONIGENC_IS_CODE_SPACE(enc,c) |