From ea9fee5aecea500a77b6fc1c78af829c9d25d7d3 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 14 Aug 2008 08:57:07 +0000 Subject: * 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 --- include/ruby/encoding.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/ruby') 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) -- cgit