aboutsummaryrefslogtreecommitdiffstats
path: root/regcomp.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-08-26 21:18:03 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-08-26 21:18:03 +0300
commit12e05615041147de61658bda8f5e7d5a4acd87c3 (patch)
tree07e44cfe7e54511be6b26dc0779f3ae751256a24 /regcomp.c
parent73780a2b7c4a873c6844a489856b5ae2fe1a9c64 (diff)
downloadegawk-12e05615041147de61658bda8f5e7d5a4acd87c3.tar.gz
egawk-12e05615041147de61658bda8f5e7d5a4acd87c3.tar.bz2
egawk-12e05615041147de61658bda8f5e7d5a4acd87c3.zip
Remove support for MirBSD. Yay!
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/regcomp.c b/regcomp.c
index a62364c9..beb74bbf 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -856,10 +856,6 @@ init_dfa (re_dfa_t *dfa, size_t pat_len)
#ifndef _LIBC
char *codeset_name;
#endif
-#if defined(GAWK) && defined(LIBC_IS_BORKED)
- /* Needed for brain damaged systems */
- extern int gawk_mb_cur_max;
-#endif
memset (dfa, '\0', sizeof (re_dfa_t));
@@ -881,11 +877,7 @@ init_dfa (re_dfa_t *dfa, size_t pat_len)
dfa->state_table = calloc (sizeof (struct re_state_table_entry), table_size);
dfa->state_hash_mask = table_size - 1;
-#if defined(GAWK) && defined(LIBC_IS_BORKED)
- dfa->mb_cur_max = gawk_mb_cur_max;
-#else
dfa->mb_cur_max = MB_CUR_MAX;
-#endif
#ifdef _LIBC
if (dfa->mb_cur_max == 6
&& strcmp (_NL_CURRENT (LC_CTYPE, _NL_CTYPE_CODESET_NAME), "UTF-8") == 0)
@@ -920,10 +912,6 @@ init_dfa (re_dfa_t *dfa, size_t pat_len)
? codeset_name[4] == '8' && codeset_name[5] == '\0'
: codeset_name[3] == '8' && codeset_name[4] == '\0'))
dfa->is_utf8 = 1;
-#if defined(GAWK) && defined(LIBC_IS_BORKED)
- if (gawk_mb_cur_max == 1)
- dfa->is_utf8 = 0;
-#endif /* defined(GAWK) && defined(LIBC_IS_BORKED) */
#endif
/* We check exhaustively in the loop below if this charset is a