aboutsummaryrefslogtreecommitdiffstats
path: root/regint.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-19 01:19:29 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-19 01:19:29 +0000
commitf55963c939144d39f6bd2a8bf75a7751a922f0ba (patch)
tree1f610638ee7969a07111857c1acc61deb8d035c2 /regint.h
parent91a761b4d0929a5055945ccca4797ff57353cac0 (diff)
downloadruby-f55963c939144d39f6bd2a8bf75a7751a922f0ba.tar.gz
* regint.h (CHECK_INTERRUPT_IN_MATCH_AT): add interrupt check
during match. [ruby-talk:295002] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regint.h')
-rw-r--r--regint.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/regint.h b/regint.h
index c88010381a..3d1ce7b76a 100644
--- a/regint.h
+++ b/regint.h
@@ -110,10 +110,10 @@
#define xfree free
#endif
-#define CHECK_INTERRUPT_IN_MATCH_AT
-
#ifdef RUBY
+#include "vm_core.h"
+#define CHECK_INTERRUPT_IN_MATCH_AT RUBY_VM_CHECK_INTS()
#define onig_st_init_table st_init_table
#define onig_st_init_table_with_size st_init_table_with_size
#define onig_st_init_numtable st_init_numtable
@@ -156,6 +156,8 @@
/* */
#define onig_st_is_member st_is_member
+#define CHECK_INTERRUPT_IN_MATCH_AT
+
#endif
#define STATE_CHECK_STRING_THRESHOLD_LEN 7