1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* include/ruby/encoding.h (rb_enc_is_newline): parenthesized arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-01-24 09:19:44 +00:00
parent b1257d4d20
commit 5e7d638a4c
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Thu Jan 24 18:19:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/encoding.h (rb_enc_is_newline): parenthesized arguments.
Thu Jan 24 18:14:14 2008 NAKAMURA Usaku <usa@ruby-lang.org>
* re.c (rb_reg_fixed_encoding_p): no need to treat ASCII-8BIT specially.

View file

@ -134,7 +134,7 @@ int rb_enc_codelen(int code, rb_encoding *enc);
#define rb_enc_right_char_head(s,p,enc) (char *)onigenc_get_right_adjust_char_head(enc,(UChar*)(s),(UChar*)(p))
/* ptr, ptr, encoding -> newline_or_not */
#define rb_enc_is_newline(p,end,enc) ONIGENC_IS_MBC_NEWLINE(enc,(UChar*)p,(UChar*)end)
#define rb_enc_is_newline(p,end,enc) ONIGENC_IS_MBC_NEWLINE(enc,(UChar*)(p),(UChar*)(end))
#define rb_enc_isctype(c,t,enc) ONIGENC_IS_CODE_CTYPE(enc,c,t)
#define rb_enc_isascii(c,enc) ONIGENC_IS_CODE_ASCII(c)