diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-11-15 18:35:45 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-11-15 18:35:45 +0200 |
commit | 8b863f8852067b0638e09dc7c82355b96381dc12 (patch) | |
tree | eeedacfa918ae53bd52a69fb2c7a47ce1bfbc3e5 /re.c | |
parent | 05de499531bc8fece2625b27a728bd24412ab41a (diff) | |
download | egawk-8b863f8852067b0638e09dc7c82355b96381dc12.tar.gz egawk-8b863f8852067b0638e09dc7c82355b96381dc12.tar.bz2 egawk-8b863f8852067b0638e09dc7c82355b96381dc12.zip |
Remove MBS_SUPPORT ifdefs.
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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. */ |