e$B1sF#$G$9!#e(B
sizeof(int) e$B$He(B sizeof(long) e$B$,0[[email protected],I=8=$Ne(B
property name e$B$re(B
e$B;H$&$HMn$A$k$3$H$,$"$k$h$&$G$9!#e(B
$ ./ruby -ve ‘/\p{Hiragana}/s’
ruby 1.9.0 (2008-06-16 revision 17363) [sparc-solaris2.9]
e$B%P%9%(%i!<e(B (core dumped)
enc/shift_jis.c e$B$Ne(B property_name_to_ctype e$B$Ge(B
297 int ctype;
298
299 PROPERTY_LIST_INIT_CHECK;
300
301 if (onig_st_lookup_strend(PropertyNameTable, p, end,
(void*)&ctype) == 0) {
e$B$H$7$F$$$F!"e(Bctype e$B$Oe(B int (4 bit) e$B$J$N$Ke(B st_data_t (8
bit) e$B$H$7$Fe(B
e$B=q$-9~$^$l$k$?$a$N$h$&$G$9!#e(B
e$B0J2<$N%Q%C%A$N$h$&$K!“e(Bonig_st_lookup_strend [email protected]$1e(B
ctype e$B$Ne(B
e$B7?$re(B long
e$B$K$9$l$P$3$NLdBj$OD>$j$^$7$?$,!”$3$l$G$$$$$N$G$7$g$&$+!#e(B
Index: enc/euc_jp.c
— enc/euc_jp.c (revision 17164)
+++ enc/euc_jp.c (working copy)
@@ -285,7 +285,7 @@
static int
property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end)
{
- int ctype;
-
long ctype;
PROPERTY_LIST_INIT_CHECK;
Index: enc/shift_jis.c
— enc/shift_jis.c (revision 17164)
+++ enc/shift_jis.c (working copy)
@@ -294,7 +294,7 @@
static int
property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end)
{
- int ctype;
-
long ctype;
PROPERTY_LIST_INIT_CHECK;
Index: enc/unicode.c
— enc/unicode.c (revision 17164)
+++ enc/unicode.c (working copy)
@@ -10817,7 +10817,8 @@
extern int
onigenc_unicode_property_name_to_ctype(OnigEncoding enc, UChar* name,
UChar* end)
{
- int len, ctype;
- int len;
- long ctype;
UChar buf[PROPERTY_NAME_MAX_SIZE];
UChar *p;
OnigCodePoint code;