summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-07-09 09:10:39 +0000
committerRoland McGrath <roland@gnu.org>1996-07-09 09:10:39 +0000
commit351dd6fd71971b2108945e9325010f0fe6b62fdb (patch)
treeb3da248e3f6023beaae211ec8e4e87b841c90570 /src
parent04b7e230667c92d62db5c7f5bad38fc29981ada7 (diff)
downloademacs-351dd6fd71971b2108945e9325010f0fe6b62fdb.tar.gz
[_LIBC] (re_comp, re_exec): Use `weak_function' keyword in defn instead of
weak_symbol macro after.
Diffstat (limited to 'src')
-rw-r--r--src/regex.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/regex.c b/src/regex.c
index c41aa1f2b48..5fe307f0983 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -5188,6 +5188,12 @@ re_compile_pattern (pattern, length, bufp)
static struct re_pattern_buffer re_comp_buf;
char *
+#ifdef _LIBC
+/* Make these definitions weak in libc, so POSIX programs can redefine
+ these names if they don't use our functions, and still use
+ regcomp/regexec below without link errors. */
+weak_function
+#endif
re_comp (s)
const char *s;
{
@@ -5229,6 +5235,9 @@ re_comp (s)
int
+#ifdef _LIBC
+weak_function
+#endif
re_exec (s)
const char *s;
{
@@ -5236,15 +5245,6 @@ re_exec (s)
return
0 <= re_search (&re_comp_buf, s, len, 0, len, (struct re_registers *) 0);
}
-
-#ifdef _LIBC
-/* Make these definitions weak in libc, so POSIX programs can redefine
- these names if they don't use our functions, and still use
- regcomp/regexec below without link errors. */
-weak_symbol (re_comp)
-weak_symbol (re_exec)
-#endif
-
#endif /* _REGEX_RE_COMP */
/* POSIX.2 functions. Don't define these for Emacs. */