aboutsummaryrefslogtreecommitdiff
path: root/contrib/binutils/include/xregex.h
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2002-01-27 12:00:11 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2002-01-27 12:00:11 +0000
commitdbbf32dd39b128be2abe8393933bc942be4c0925 (patch)
tree5c493199a70976c54e1b9c6a7804a3de85b43e84 /contrib/binutils/include/xregex.h
parent855ee8c509184df8c31758b8f2ca9e9d31440489 (diff)
downloadsrc-dbbf32dd39b128be2abe8393933bc942be4c0925.tar.gz
src-dbbf32dd39b128be2abe8393933bc942be4c0925.zip
Enlist the FreeBSD-CURRENT users as testers of what is to become Binutils
version 2.12.0. These bits are taken from the FSF anoncvs repo on 27-January-2002 03:41 PST.
Notes
Notes: svn path=/vendor/binutils/dist/; revision=89857
Diffstat (limited to 'contrib/binutils/include/xregex.h')
-rw-r--r--contrib/binutils/include/xregex.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/contrib/binutils/include/xregex.h b/contrib/binutils/include/xregex.h
new file mode 100644
index 000000000000..645195bbceb5
--- /dev/null
+++ b/contrib/binutils/include/xregex.h
@@ -0,0 +1,28 @@
+/* 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 */