From 718c4bf954dd0c224a57cbff5f1b910da2236fa5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 3 Mar 2002 18:17:58 +0000 Subject: Compatibility changes to allow using the code outside glibc. --- posix/regcomp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'posix/regcomp.c') diff --git a/posix/regcomp.c b/posix/regcomp.c index 0b85f7db4b..65b44e4ddb 100644 --- a/posix/regcomp.c +++ b/posix/regcomp.c @@ -335,6 +335,7 @@ re_compile_fastmap_iter (bufp, init_state, fastmap) if (cset->non_match || cset->ncoll_syms || cset->nequiv_classes || cset->nranges || cset->nchar_classes) { +#ifdef _LIBC if (_NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES) != 0) { /* In this case we want to catch the bytes which are @@ -351,6 +352,7 @@ re_compile_fastmap_iter (bufp, init_state, fastmap) if (table[ch] < 0) fastmap[ch] = 1; } +#endif } for (i = 0; i < cset->nmbchars; ++i) { @@ -3024,10 +3026,12 @@ static void free_charset (re_charset_t *cset) { re_free (cset->mbchars); +#ifdef _LIBC re_free (cset->coll_syms); re_free (cset->equiv_classes); re_free (cset->range_starts); re_free (cset->range_ends); +#endif re_free (cset->char_classes); re_free (cset); } -- cgit v1.2.3