aboutsummaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-30 10:10:24 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-30 10:10:24 +0000
commit0281c83ceeb91c54dd2f4bd00755cde0fbf463c0 (patch)
tree12ae6dc648708dac18416bf4975575064dbe3c5b /regex.c
parentrun make indent (diff)
downloadw3m-0281c83ceeb91c54dd2f4bd00755cde0fbf463c0.tar.gz
w3m-0281c83ceeb91c54dd2f4bd00755cde0fbf463c0.zip
[w3m-dev 02593]
From: Tsutomu Okada <okada@furuno.co.jp>
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/regex.c b/regex.c
index 4138b3f..035483a 100644
--- a/regex.c
+++ b/regex.c
@@ -1,4 +1,4 @@
-/* $Id: regex.c,v 1.5 2001/11/24 02:01:26 ukai Exp $ */
+/* $Id: regex.c,v 1.6 2001/11/30 10:10:24 ukai Exp $ */
/*
* regex: Regular expression pattern match library
*
@@ -328,24 +328,7 @@ matchWhich(longchar * pattern, longchar c)
printf("RE pattern = %s char=%c", pattern, c);
#endif /* REGEX_DEBUG */
while (*p != '\0') {
- if (*(p + 1) == RE_WHICH_RANGE && *(p + 2) != '\0') { /* Char *
- *
- * * * *
- * * * * *
- * * * *
- * * * *
- * * * *
- * * * *
- * * * *
- * * * *
- * * * * *
- * * * * *
- * * *
- * class.
- * * * * *
- * * * * *
- * * * * *
- */
+ if (*(p + 1) == RE_WHICH_RANGE && *(p + 2) != '\0') { /* Char class. */
if (*p <= c && c <= *(p + 2)) {
ans = 1;
break;