summaryrefslogtreecommitdiff
path: root/regex.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-01-26 10:08:18 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-01-26 10:08:18 +0000
commitceb8031b6b795b189012c38057ebf82733f4aeaf (patch)
treeacd2591c3746e2795fe15ef4fa50fa07b6510726 /regex.c
parent84d73314a79384e99f8b3490f97868ee81bf1146 (diff)
990126
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/regex.c b/regex.c
index 924f32b..4789349 100644
--- a/regex.c
+++ b/regex.c
@@ -1022,7 +1022,7 @@ calculate_must_string(start, end)
char *
re_compile_pattern(pattern, size, bufp)
char *pattern;
- size_t size;
+ int size;
struct re_pattern_buffer *bufp;
{
register char *b = bufp->buffer;
@@ -1084,10 +1084,10 @@ re_compile_pattern(pattern, size, bufp)
Fourth, the value of regnum.
Fifth, the type of the paren. */
- size_t *stackb = RE_TALLOC(40, size_t);
- size_t *stackp = stackb;
- size_t *stacke = stackb + 40;
- size_t *stackt;
+ int *stackb = RE_TALLOC(40, int);
+ int *stackp = stackb;
+ int *stacke = stackb + 40;
+ int *stackt;
/* Counts ('s as they are encountered. Remembered for the matching ),
where it becomes the register number to put in the stop_memory
@@ -2754,7 +2754,7 @@ int
re_search(bufp, string, size, startpos, range, regs)
struct re_pattern_buffer *bufp;
char *string;
- size_t size, startpos, range;
+ int size, startpos, range;
struct re_registers *regs;
{
register char *fastmap = bufp->fastmap;
@@ -3145,7 +3145,7 @@ int
re_match(bufp, string_arg, size, pos, regs)
struct re_pattern_buffer *bufp;
char *string_arg;
- size_t size, pos;
+ int size, pos;
struct re_registers *regs;
{
register unsigned char *p = (unsigned char*)bufp->buffer;