aboutsummaryrefslogtreecommitdiffstats
path: root/re.c
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2014-12-14 12:53:35 -0500
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2014-12-14 12:53:35 -0500
commit1fc7a1fe6aba3c1ba98c44f8df1926c10ff79c87 (patch)
treee6eff5ba1ffaa2250c59ce02464d783b08508f4c /re.c
parentf9c7ec30542ef2550761f49cd25503e0775ef271 (diff)
parent0d52289482d468c8566976d77c0c6a6a4e602add (diff)
downloadegawk-1fc7a1fe6aba3c1ba98c44f8df1926c10ff79c87.tar.gz
egawk-1fc7a1fe6aba3c1ba98c44f8df1926c10ff79c87.tar.bz2
egawk-1fc7a1fe6aba3c1ba98c44f8df1926c10ff79c87.zip
Merge branch 'master' into select
Diffstat (limited to 're.c')
-rw-r--r--re.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/re.c b/re.c
index 12c212a6..edb5bc48 100644
--- a/re.c
+++ b/re.c
@@ -54,12 +54,9 @@ make_regexp(const char *s, size_t len, bool ignorecase, bool dfa, bool canfatal)
* It is 0, when the current character is a singlebyte character.
*/
size_t is_multibyte = 0;
-#if MBS_SUPPORT
mbstate_t mbs;
- if (gawk_mb_cur_max > 1)
- memset(&mbs, 0, sizeof(mbstate_t)); /* Initialize. */
-#endif
+ memset(&mbs, 0, sizeof(mbstate_t)); /* Initialize. */
if (first) {
first = false;
@@ -87,7 +84,6 @@ make_regexp(const char *s, size_t len, bool ignorecase, bool dfa, bool canfatal)
dest = buf;
while (src < end) {
-#if MBS_SUPPORT
if (gawk_mb_cur_max > 1 && ! is_multibyte) {
/* The previous byte is a singlebyte character, or last byte
of a multibyte character. We check the next character. */
@@ -100,7 +96,6 @@ make_regexp(const char *s, size_t len, bool ignorecase, bool dfa, bool canfatal)
is_multibyte = 0;
}
}
-#endif
/* We skip multibyte character, since it must not be a special
character. */