summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-06-03 09:06:44 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-06-03 09:06:44 +0000
commitebfbdcf4dffb423363965f6b41e574c69794db5f (patch)
treebb0961573ecafd77eb74d56dbd9b5ccb5fb6732b /re.c
parent46c4975d9c25f7f336a23bde080420c5ed29ab0e (diff)
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/re.c b/re.c
index b7aa11f58a..31dab7c865 100644
--- a/re.c
+++ b/re.c
@@ -169,7 +169,7 @@ kcode_reset_option()
}
}
-extern int rb_in_eval;
+extern int rb_in_compile;
static void
reg_expr_str(str, s, len)
@@ -262,10 +262,10 @@ reg_raise(s, len, err, re)
{
VALUE desc = reg_desc(s, len, re);
- if (rb_in_eval)
- Raise(eRegxpError, "%s: %s", err, RSTRING(desc)->ptr);
- else
+ if (rb_in_compile)
Error("%s: %s", err, RSTRING(desc)->ptr);
+ else
+ Raise(eRegxpError, "%s: %s", err, RSTRING(desc)->ptr);
}
static VALUE