From 5351b7aa52a76c8a03525a75a888a0168ebebe7f Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 15 Mar 2015 21:42:12 -0400 Subject: internal interfaces: regex: revise xregex.h to use the regex implementation provided by libc; remove xregex2.h, as it is no longer needed; adjust libiberty's make recipe accordingly. signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information. --- include/xregex.h | 59 +++++++++++++++++++++++++++++--------------------------- 1 file changed, 31 insertions(+), 28 deletions(-) (limited to 'include/xregex.h') diff --git a/include/xregex.h b/include/xregex.h index 645195bbc..ad215426b 100644 --- a/include/xregex.h +++ b/include/xregex.h @@ -1,28 +1,31 @@ -/* This file redefines all regex external names before including - a renamed copy of glibc's regex.h. */ - -#ifndef _XREGEX_H -#define _XREGEX_H 1 - -# define regfree xregfree -# define regexec xregexec -# define regcomp xregcomp -# define regerror xregerror -# define re_set_registers xre_set_registers -# define re_match_2 xre_match_2 -# define re_match xre_match -# define re_search xre_search -# define re_compile_pattern xre_compile_pattern -# define re_set_syntax xre_set_syntax -# define re_search_2 xre_search_2 -# define re_compile_fastmap xre_compile_fastmap -# define re_syntax_options xre_syntax_options -# define re_max_failures xre_max_failures - -# define _REGEX_RE_COMP -# define re_comp xre_comp -# define re_exec xre_exec - -#include "xregex2.h" - -#endif /* xregex.h */ +#ifndef XREGEX_H +#define XREGEX_H + +#include + +#define _REGEX_RE_COMP + +#define re_set_registers xre_set_registers +#define re_set_syntax xre_set_syntax + +#define re_syntax_options xre_syntax_options +#define re_max_failures xre_max_failures + +#define re_compile_pattern xre_compile_pattern +#define re_compile_fastmap xre_compile_fastmap + +#define re_match xre_match +#define re_match_2 xre_match_2 + +#define re_search xre_search +#define re_search_2 xre_search_2 + +#define re_comp xre_comp +#define re_exec xre_exec + +#define xregcomp regcomp +#define xregexec regexec +#define xregfree regfree +#define xregerror regerror + +#endif /* XREGEX_H */ -- cgit v1.2.3