2N/A/* Extended regular expression matching and search library.
2N/A Copyright (C) 2002, 2003, 2005, 2006, 2009, 2010 Free Software Foundation,
2N/A Inc.
2N/A This file is part of the GNU C Library.
2N/A Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
2N/A
2N/A This program is free software; you can redistribute it and/or modify
2N/A it under the terms of the GNU General Public License as published by
2N/A the Free Software Foundation; either version 3, or (at your option)
2N/A any later version.
2N/A
2N/A This program is distributed in the hope that it will be useful,
2N/A but WITHOUT ANY WARRANTY; without even the implied warranty of
2N/A MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2N/A GNU General Public License for more details.
2N/A
2N/A You should have received a copy of the GNU General Public License along
2N/A with this program; if not, write to the Free Software Foundation,
2N/A Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
2N/A
2N/A#include <config.h>
2N/A
2N/A/* Make sure noone compiles this code with a C++ compiler. */
2N/A#if defined __cplusplus && defined _LIBC
2N/A# error "This is C code, use a C compiler"
2N/A#endif
2N/A
2N/A#ifdef _LIBC
2N/A/* We have to keep the namespace clean. */
2N/A# define regfree(preg) __regfree (preg)
2N/A# define regexec(pr, st, nm, pm, ef) __regexec (pr, st, nm, pm, ef)
2N/A# define regcomp(preg, pattern, cflags) __regcomp (preg, pattern, cflags)
2N/A# define regerror(errcode, preg, errbuf, errbuf_size) \
2N/A __regerror(errcode, preg, errbuf, errbuf_size)
2N/A# define re_set_registers(bu, re, nu, st, en) \
2N/A __re_set_registers (bu, re, nu, st, en)
2N/A# define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \
2N/A __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop)
2N/A# define re_match(bufp, string, size, pos, regs) \
2N/A __re_match (bufp, string, size, pos, regs)
2N/A# define re_search(bufp, string, size, startpos, range, regs) \
2N/A __re_search (bufp, string, size, startpos, range, regs)
2N/A# define re_compile_pattern(pattern, length, bufp) \
2N/A __re_compile_pattern (pattern, length, bufp)
2N/A# define re_set_syntax(syntax) __re_set_syntax (syntax)
2N/A# define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \
2N/A __re_search_2 (bufp, st1, s1, st2, s2, startpos, range, regs, stop)
2N/A# define re_compile_fastmap(bufp) __re_compile_fastmap (bufp)
2N/A
2N/A# include "../locale/localeinfo.h"
2N/A#endif
2N/A
2N/A/* On some systems, limits.h sets RE_DUP_MAX to a lower value than
2N/A GNU regex allows. Include it before <regex.h>, which correctly
2N/A #undefs RE_DUP_MAX and sets it to the right value. */
2N/A#include <limits.h>
2N/A
2N/A#include <regex.h>
2N/A#include "regex_internal.h"
2N/A
2N/A#include "regex_internal.c"
2N/A#include "regcomp.c"
2N/A#include "regexec.c"
2N/A
2N/A/* Binary backward compatibility. */
2N/A#if _LIBC
2N/A# include <shlib-compat.h>
2N/A# if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3)
2N/Alink_warning (re_max_failures, "the 're_max_failures' variable is obsolete and will go away.")
2N/Aint re_max_failures = 2000;
2N/A# endif
2N/A#endif