summaryrefslogtreecommitdiff
path: root/ext/strscan/strscan.c
diff options
context:
space:
mode:
authorkosako <kosako@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-26 08:05:06 +0000
committerkosako <kosako@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-26 08:05:06 +0000
commit41d96dbd357ac485b3e79d29328170fa069f55d7 (patch)
tree7037a3ee95a7952591106328597e8d078c5edcf3 /ext/strscan/strscan.c
parent2499da40f9a899969532998d0df1d4fe4ea5ab26 (diff)
remove oniggnu.h (GNU regex API).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/strscan/strscan.c')
-rw-r--r--ext/strscan/strscan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c
index 158fab3..ab1428b 100644
--- a/ext/strscan/strscan.c
+++ b/ext/strscan/strscan.c
@@ -245,7 +245,7 @@ strscan_init_copy(vself, vorig)
self->str = orig->str;
self->prev = orig->prev;
self->curr = orig->curr;
- re_copy_registers(&self->regs, &orig->regs);
+ onig_region_copy(&self->regs, &orig->regs);
}
return vself;
@@ -684,9 +684,9 @@ adjust_registers_to_matched(p)
struct strscanner *p;
{
if (p->regs.allocated == 0) {
- p->regs.beg = ALLOC_N(int, RE_NREGS);
- p->regs.end = ALLOC_N(int, RE_NREGS);
- p->regs.allocated = RE_NREGS;
+ p->regs.beg = ALLOC_N(int, ONIG_NREGION);
+ p->regs.end = ALLOC_N(int, ONIG_NREGION);
+ p->regs.allocated = ONIG_NREGION;
}
p->regs.num_regs = 1;
p->regs.beg[0] = 0;