From: Ulrich Drepper Date: Sun, 3 Mar 2002 18:17:58 +0000 (+0000) Subject: Compatibility changes to allow using the code outside glibc. X-Git-Tag: upstream/2.30~21987 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=718c4bf954dd0c224a57cbff5f1b910da2236fa5;p=external%2Fglibc.git Compatibility changes to allow using the code outside glibc. --- diff --git a/posix/regcomp.c b/posix/regcomp.c index 0b85f7d..65b44e4 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); }