diff options
author | Christopher Faylor <me@cgf.cx> | 2000-10-28 05:41:44 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-10-28 05:41:44 +0000 |
commit | 75a57bf04a04e7cacbfc1279aa6c35f3f16775d1 (patch) | |
tree | 550c48ebd0fbf7ff9990077c95c882242dd88b78 /winsup/cygwin/regexp/regexp.c | |
parent | ce475802f8aa48518553eabd5887bcc439b61a0d (diff) | |
download | cygnal-75a57bf04a04e7cacbfc1279aa6c35f3f16775d1.tar.gz cygnal-75a57bf04a04e7cacbfc1279aa6c35f3f16775d1.tar.bz2 cygnal-75a57bf04a04e7cacbfc1279aa6c35f3f16775d1.zip |
Whitespace cleanup.
* configure.in: Eliminate subdir stuff.
* configure: Regenerate.
* include/getopt.h (option): Make name field 'const'.
Diffstat (limited to 'winsup/cygwin/regexp/regexp.c')
-rw-r--r-- | winsup/cygwin/regexp/regexp.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/winsup/cygwin/regexp/regexp.c b/winsup/cygwin/regexp/regexp.c index 26f4b8d5d..7bcd954e4 100644 --- a/winsup/cygwin/regexp/regexp.c +++ b/winsup/cygwin/regexp/regexp.c @@ -340,7 +340,7 @@ int *flagp; } /* Make a closing node, and hook it on the end. */ - ender = regnode((paren) ? CLOSE+parno : END); + ender = regnode((paren) ? CLOSE+parno : END); regtail(ret, ender); /* Hook the tails of the branches to the closing node. */ @@ -572,7 +572,7 @@ int *flagp; * On entry, the char at regparse[-1] is going to go * into the string, no matter what it is. (It could be * following a \ if we are entered from the '\' case.) - * + * * Basic idea is to pick up a good char in ch and * examine the next char. If it's *+? then we twiddle. * If it's \ then we frozzle. If it's other magic char @@ -610,7 +610,7 @@ int *flagp; goto done; /* and we are done */ case '?': case '+': case '*': - if (!regprev) /* If just ch in str, */ + if (!regprev) /* If just ch in str, */ goto magic; /* use it */ /* End mult-char string one early */ regparse = regprev; /* Back up parse */ @@ -627,7 +627,7 @@ int *flagp; default: /* Backup point is \, scan * point is after it. */ regprev = regparse; - regparse++; + regparse++; continue; /* NOT break; */ } } @@ -949,12 +949,12 @@ char *prog; } break; case ANYOF: - if (*reginput == '\0' || strchr(OPERAND(scan), *reginput) == NULL) + if (*reginput == '\0' || strchr(OPERAND(scan), *reginput) == NULL) return(0); reginput++; break; case ANYBUT: - if (*reginput == '\0' || strchr(OPERAND(scan), *reginput) != NULL) + if (*reginput == '\0' || strchr(OPERAND(scan), *reginput) != NULL) return(0); reginput++; break; @@ -1175,7 +1175,7 @@ regexp *r; next = regnext(s); if (next == NULL) /* Next ptr. */ printf("(0)"); - else + else printf("(%d)", (s-r->program)+(next-s)); s += 3; if (op == ANYOF || op == ANYBUT || op == EXACTLY) { |