This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] Speed-up character range regexes by up to 2x
- From: Paolo Bonzini <paolo dot bonzini at polimi dot it>
- To: Aharon Robbins <arnold at skeeve dot com>, libc-alpha at sources dot redhat dot com
- Date: Mon, 12 Jan 2004 15:15:18 +0100
- Subject: Re: [PATCH] Speed-up character range regexes by up to 2x
- References: <200401121354.i0CDsMvs013045@skeeve.com>
- Reply-to: bonzini at gnu dot org
+#ifdef RE_ENABLE_I18N
int icase = (dfa->mb_cur_max == 1 && (bufp->syntax & RE_ICASE));
+#else
+ int icase = (bufp->syntax & RE_ICASE);
+#endif
It may be that the correct patch is simply to use:
int icase = (dfa->mb_cur_max == 1 && (bufp->syntax & RE_ICASE));
with no surrounding #ifdef. If so, fine.
I might be missing something overly obvious, but I see 4 lines added by
your patch exactly around the line you suggest, not just the #else branch.
Paolo