/* Extended regular expression matching and search library. Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Isamu Hasegawa . The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ #include #ifdef __UCLIBC__ # define _REGEX_RE_COMP # define HAVE_LANGINFO # define HAVE_LANGINFO_CODESET # include # include # include # include # ifdef __UCLIBC_HAS_WCHAR__ # define RE_ENABLE_I18N # define HAVE_WCHAR_H 1 # define HAVE_WCRTOMB 1 # define HAVE_MBRTOWC 1 # define HAVE_WCSCOLL 1 # include # define HAVE_WCTYPE_H 1 # include # define __iswctype iswctype # define __wcrtomb wcrtomb # define __btowc btowc # define __wctype wctype # endif # include # ifdef __UCLIBC_HAS_LOCALE__ # define HAVE_LOCALE_H 1 # endif #endif /* Make sure noone compiles this code with a C++ compiler. */ #ifdef __cplusplus # error "This is C code, use a C compiler" #endif /* On some systems, limits.h sets RE_DUP_MAX to a lower value than GNU regex allows. Include it before , which correctly #undefs RE_DUP_MAX and sets it to the right value. */ #include #include #include "regex_internal.h" #include "regex_internal.c" #include "regcomp.c" #include "regexec.c"