diff options
author | midipix <writeonce@midipix.org> | 2015-03-15 21:42:12 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-03-15 21:42:12 -0400 |
commit | 5351b7aa52a76c8a03525a75a888a0168ebebe7f (patch) | |
tree | d5530f153c2ce3ac409df905c264b0609348c0be /include/xregex.h | |
parent | 85dfca6c714af903bb4d0175402c0be4a9061309 (diff) | |
download | cbb-gcc-4.6.4-5351b7aa52a76c8a03525a75a888a0168ebebe7f.tar.bz2 cbb-gcc-4.6.4-5351b7aa52a76c8a03525a75a888a0168ebebe7f.tar.xz |
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.
Diffstat (limited to 'include/xregex.h')
-rw-r--r-- | include/xregex.h | 59 |
1 files changed, 31 insertions, 28 deletions
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 <regex.h> + +#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 */ |