aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-11-15 18:35:45 +0200
committerArnold D. Robbins <arnold@skeeve.com>2014-11-15 18:35:45 +0200
commit8b863f8852067b0638e09dc7c82355b96381dc12 (patch)
treeeeedacfa918ae53bd52a69fb2c7a47ce1bfbc3e5 /main.c
parent05de499531bc8fece2625b27a728bd24412ab41a (diff)
downloadegawk-8b863f8852067b0638e09dc7c82355b96381dc12.tar.gz
egawk-8b863f8852067b0638e09dc7c82355b96381dc12.tar.bz2
egawk-8b863f8852067b0638e09dc7c82355b96381dc12.zip
Remove MBS_SUPPORT ifdefs.
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/main.c b/main.c
index b9b76618..ddda1d66 100644
--- a/main.c
+++ b/main.c
@@ -155,9 +155,7 @@ static const char *locale = ""; /* default value to setlocale */
int use_lc_numeric = false; /* obey locale for decimal point */
-#if MBS_SUPPORT
int gawk_mb_cur_max; /* MB_CUR_MAX value, see comment in main() */
-#endif
FILE *output_fp; /* default gawk output, can be redirected in the debugger */
bool output_is_tty = false; /* control flushing of output */
@@ -290,14 +288,12 @@ main(int argc, char **argv)
set_locale_stuff();
-#if MBS_SUPPORT
/*
* In glibc, MB_CUR_MAX is actually a function. This value is
* tested *a lot* in many speed-critical places in gawk. Caching
* this value once makes a speed difference.
*/
gawk_mb_cur_max = MB_CUR_MAX;
- /* Without MBS_SUPPORT, gawk_mb_cur_max is 1. */
#ifdef LIBC_IS_BORKED
{
const char *env_lc;
@@ -312,7 +308,6 @@ main(int argc, char **argv)
/* init the cache for checking bytes if they're characters */
init_btowc_cache();
-#endif
if (do_nostalgia)
@@ -346,7 +341,6 @@ main(int argc, char **argv)
if (do_lint && os_is_setuid())
warning(_("running %s setuid root may be a security problem"), myname);
-#if MBS_SUPPORT
if (do_binary) {
if (do_posix)
warning(_("`--posix' overrides `--characters-as-bytes'"));
@@ -356,7 +350,6 @@ main(int argc, char **argv)
setlocale(LC_ALL, "C");
#endif
}
-#endif
if (do_debug) /* Need to register the debugger pre-exec hook before any other */
init_debug();