xref: /dflybsd-src/contrib/gdb-7/include/xregex.h (revision ec70266467411565ead9166ad4c1dbb79ff7cd77)
15796c8dcSSimon Schubert /* This file redefines all regex external names before including
25796c8dcSSimon Schubert    a renamed copy of glibc's regex.h.  */
35796c8dcSSimon Schubert 
45796c8dcSSimon Schubert #ifndef _XREGEX_H
55796c8dcSSimon Schubert #define _XREGEX_H 1
65796c8dcSSimon Schubert 
75796c8dcSSimon Schubert #  define regfree xregfree
85796c8dcSSimon Schubert #  define regexec xregexec
95796c8dcSSimon Schubert #  define regcomp xregcomp
105796c8dcSSimon Schubert #  define regerror xregerror
11*a45ae5f8SJohn Marino #  define regoff_t xregoff_t
125796c8dcSSimon Schubert #  define re_set_registers xre_set_registers
135796c8dcSSimon Schubert #  define re_match_2 xre_match_2
145796c8dcSSimon Schubert #  define re_match xre_match
155796c8dcSSimon Schubert #  define re_search xre_search
165796c8dcSSimon Schubert #  define re_compile_pattern xre_compile_pattern
175796c8dcSSimon Schubert #  define re_set_syntax xre_set_syntax
185796c8dcSSimon Schubert #  define re_search_2 xre_search_2
195796c8dcSSimon Schubert #  define re_compile_fastmap xre_compile_fastmap
205796c8dcSSimon Schubert #  define re_syntax_options xre_syntax_options
215796c8dcSSimon Schubert #  define re_max_failures xre_max_failures
225796c8dcSSimon Schubert 
235796c8dcSSimon Schubert #  define _REGEX_RE_COMP
245796c8dcSSimon Schubert #  define re_comp xre_comp
255796c8dcSSimon Schubert #  define re_exec xre_exec
265796c8dcSSimon Schubert 
275796c8dcSSimon Schubert #include "xregex2.h"
285796c8dcSSimon Schubert 
295796c8dcSSimon Schubert #endif /* xregex.h */
30