summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:57:07 +0300
committerArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:57:07 +0300
commit3ca7f0b16d0a5c105380b284a81c6a1b2c210908 (patch)
treec2153d226b9cba3ebca0c3556b19bf3e52cd20dd /re.c
parentf20ab7c3039a4023f41372bfe4bde3b16d481df7 (diff)
downloadgawk-3ca7f0b16d0a5c105380b284a81c6a1b2c210908.tar.gz
Move to gawk-3.0.5.gawk-3.0.5
Diffstat (limited to 're.c')
-rw-r--r--re.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/re.c b/re.c
index 995fbb99..4c21af78 100644
--- a/re.c
+++ b/re.c
@@ -3,7 +3,7 @@
*/
/*
- * Copyright (C) 1991-1996 the Free Software Foundation, Inc.
+ * Copyright (C) 1991-2000 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
@@ -216,7 +216,6 @@ NODE *t;
{
NODE *t1;
-/* # define CASE 1 */
if ((t->re_flags & CASE) == IGNORECASE) {
if ((t->re_flags & CONST) != 0)
return t->re_reg;
@@ -237,7 +236,7 @@ NODE *t;
t->re_cnt++;
if (t->re_cnt > 10)
t->re_cnt = 0;
- if (t->re_text == NULL) {
+ if (t->re_text == NULL || (t->re_flags & CASE) != IGNORECASE) {
t1 = force_string(tree_eval(t->re_exp));
t->re_text = dupnode(t1);
free_temp(t1);