From 0515a24c0039a8e2d5a57672ddfa1b1d7abcc231 Mon Sep 17 00:00:00 2001 From: David Hedbor <david@hedbor.org> Date: Wed, 23 Aug 1995 16:00:21 +0200 Subject: [PATCH] foo Rev: src/debug.c:1.3 Rev: src/modules/regexp/regexp.c:1.4 --- src/debug.c | 2 +- src/modules/regexp/regexp.c | 27 ++++++++++++++------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/debug.c b/src/debug.c index d9a934d842..781efec3ec 100644 --- a/src/debug.c +++ b/src/debug.c @@ -83,7 +83,7 @@ INT32 checked(void *a,INT32 delta) { next=m->next; m->next=new_hash[((long)m->marked)%new_hashsize]; - new_hash[((int)m->marked)%new_hashsize]=m; + new_hash[((long)m->marked)%new_hashsize]=m; } } diff --git a/src/modules/regexp/regexp.c b/src/modules/regexp/regexp.c index 939c63a7bd..da699a58d5 100644 --- a/src/modules/regexp/regexp.c +++ b/src/modules/regexp/regexp.c @@ -1169,25 +1169,26 @@ regexp *r; register char *nxt; s = r->program + 1; - while (op != END) { /* While that wasn't END last time... */ + while (op != END) + { /* While that wasn't END last time... */ op = OP(s); - printf("%2ld%s", (long)(s - r->program), regprop(s)); /* Where, what. */ + printf("%2ld%s", (long)(s - r->program), regprop(s)); /* Where, what. */ nxt = regnext(s); - if (nxt == (char *)NULL) /* nxt ptr. */ - printf("(0)"); + if (nxt == (char *)NULL) /* nxt ptr. */ + printf("(0)"); else - printf("(%ld)", (long)( (s - r->program) + (nxt - s) )); + printf("(%ld)", (long)( (s - r->program) + (nxt - s))); s += 3; if (op == ANYOF || op == ANYBUT || op == EXACTLY) { - /* Literal string, where present. */ - while (*s != '\0') { - putchar(*s); - s++; - } - s++; - } + /* Literal string, where present. */ + while (*s != '\0') { + putchar(*s); + s++; + } + s++; + } putchar('\n'); - } + } /* Header fields of interest. */ if (r->regstart != '\0') -- GitLab