diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-03-03 18:17:58 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-03-03 18:17:58 +0000 |
commit | 718c4bf954dd0c224a57cbff5f1b910da2236fa5 (patch) | |
tree | 9c51f954b82e3f3fdfa2c0c23ccf972402488469 /posix | |
parent | 263756c038ef879adc9ba703b44eda614ddb3a77 (diff) | |
download | glibc-718c4bf954dd0c224a57cbff5f1b910da2236fa5.zip glibc-718c4bf954dd0c224a57cbff5f1b910da2236fa5.tar.gz glibc-718c4bf954dd0c224a57cbff5f1b910da2236fa5.tar.bz2 |
Compatibility changes to allow using the code outside glibc.
Diffstat (limited to 'posix')
-rw-r--r-- | posix/regcomp.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |