From 8b863f8852067b0638e09dc7c82355b96381dc12 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sat, 15 Nov 2014 18:35:45 +0200 Subject: Remove MBS_SUPPORT ifdefs. --- main.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'main.c') 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(); -- cgit v1.2.3