aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-12-04 21:50:25 +0200
committerArnold D. Robbins <arnold@skeeve.com>2010-12-04 21:50:25 +0200
commit16458663c3bdf640e3352653ea94a89fb2949ad4 (patch)
treea5f4d91a8264affc34a2b9f91028419fb70535c2 /main.c
parent3c4a8232caabe74517277ec31adaca838251a256 (diff)
downloadegawk-16458663c3bdf640e3352653ea94a89fb2949ad4.tar.gz
egawk-16458663c3bdf640e3352653ea94a89fb2949ad4.tar.bz2
egawk-16458663c3bdf640e3352653ea94a89fb2949ad4.zip
Speed up single byte cases. See ChangeLog.
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index b09027cf..01561b47 100644
--- a/main.c
+++ b/main.c
@@ -293,6 +293,9 @@ main(int argc, char **argv)
*/
gawk_mb_cur_max = MB_CUR_MAX;
/* Without MBS_SUPPORT, gawk_mb_cur_max is 1. */
+
+ /* init the cache for checking bytes if they're characters */
+ init_btowc_cache();
#endif
(void) bindtextdomain(PACKAGE, LOCALEDIR);