summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-21 01:11:15 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-21 01:11:15 +0000
commitbb753d9bd6e33d87ae05d40ce93454b8af1933d7 (patch)
tree2b80bc41169e886d8ca50c156220836663d4196a
parentc0c304b1e89908785ee94cd20579ced5a3bd9f32 (diff)
downloadruby-bb753d9bd6e33d87ae05d40ce93454b8af1933d7.tar.gz
ruby-bb753d9bd6e33d87ae05d40ce93454b8af1933d7.tar.xz
ruby-bb753d9bd6e33d87ae05d40ce93454b8af1933d7.zip
* regcomp.c (print_enc_string): follow enclen's change.
* regcomp.c (onig_print_compiled_byte_code): ditto. * regcomp.c (onig_print_compiled_byte_code): change prototype. * regint.c (onig_print_compiled_byte_code): comment out. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog10
-rw-r--r--regcomp.c8
-rw-r--r--regint.h2
3 files changed, 15 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 7553af816..115628255 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+Mon Dec 21 10:03:33 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regcomp.c (print_enc_string): follow enclen's change.
+
+ * regcomp.c (onig_print_compiled_byte_code): ditto.
+
+ * regcomp.c (onig_print_compiled_byte_code): change prototype.
+
+ * regint.c (onig_print_compiled_byte_code): comment out.
+
Mon Dec 21 08:04:34 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* object.c: BasicObject#initialize accepts any number of arguments
diff --git a/regcomp.c b/regcomp.c
index caf7d69a1..4a4f1a7f4 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -5046,7 +5046,7 @@ static void print_enc_string(FILE* fp, OnigEncoding enc,
fputc((int )code, fp);
}
- p += enclen(enc, p);
+ p += enclen(enc, p, end);
}
}
else {
@@ -5885,7 +5885,7 @@ p_len_string(FILE* f, LengthType len, int mb_len, UChar* s)
}
extern void
-onig_print_compiled_byte_code(FILE* f, UChar* bp, UChar** nextp,
+onig_print_compiled_byte_code(FILE* f, UChar* bp, UChar* bpend, UChar** nextp,
OnigEncoding enc)
{
int i, n, arg_type;
@@ -5984,7 +5984,7 @@ onig_print_compiled_byte_code(FILE* f, UChar* bp, UChar** nextp,
break;
case OP_EXACT1_IC:
- len = enclen(enc, bp);
+ len = enclen(enc, bp, bpend);
p_string(f, len, bp);
bp += len;
break;
@@ -6146,7 +6146,7 @@ print_compiled_byte_code_list(FILE* f, regex_t* reg)
else
fputs(" ", f);
}
- onig_print_compiled_byte_code(f, bp, &bp, reg->enc);
+ onig_print_compiled_byte_code(f, bp, end, &bp, reg->enc);
}
fprintf(f, "\n");
diff --git a/regint.h b/regint.h
index 164828f43..05cd0892e 100644
--- a/regint.h
+++ b/regint.h
@@ -788,7 +788,7 @@ typedef struct {
extern OnigOpInfoType OnigOpInfo[];
-extern void onig_print_compiled_byte_code P_((FILE* f, UChar* bp, UChar** nextp, OnigEncoding enc));
+/* extern void onig_print_compiled_byte_code P_((FILE* f, UChar* bp, UChar* bpend, UChar** nextp, OnigEncoding enc)); */
#ifdef ONIG_DEBUG_STATISTICS
extern void onig_statistics_init P_((void));