summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-16 09:05:54 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-16 09:05:54 +0000
commitf84f4aa6b375290386c0456ac02fe8f6cc2cdd2d (patch)
treefba985cc67803c80f7761462f79cf988cbf6507b /re.c
parent59d82a928a617889c18f4da6152f11c0eb6fde06 (diff)
* array.c (rb_ary_and): should not push frozen key string.
* array.c (rb_ary_or): ditto. * eval.c (rb_thread_schedule): should save context before raising deadlock, saved context for current thread might be obsolete. * time.c (make_time_t): non DST timezone shift supported (hopefully). * time.c (make_time_t): strict range detection for negative time_t. * signal.c: SIGINFO added. * eval.c (rb_ensure): should not SEGV when prot_tag is NULL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/re.c b/re.c
index aa9f1b4..92e0420 100644
--- a/re.c
+++ b/re.c
@@ -11,6 +11,7 @@
#include "ruby.h"
#include "re.h"
+#include <ctype.h>
static VALUE rb_eRegexpError;
@@ -776,9 +777,6 @@ match_aref(argc, argv, match)
VALUE match;
{
VALUE idx, rest;
- struct re_registers *regs;
- char *ptr;
- int i;
rb_scan_args(argc, argv, "11", &idx, &rest);
@@ -1103,8 +1101,6 @@ static int
rb_reg_get_kcode(re)
VALUE re;
{
- int kcode;
-
switch (RBASIC(re)->flags & KCODE_MASK) {
case KCODE_NONE:
return 16;