changeset 15635:89f7ba4ccd22

[_LIBC] (re_comp, re_exec): Use `weak_function' keyword in defn instead of weak_symbol macro after.
author Roland McGrath <roland@gnu.org>
date Tue, 09 Jul 1996 09:10:39 +0000
parents 08bcd5d2c8ab
children 3b584c9b5e4a
files src/regex.c
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/regex.c	Mon Jul 08 04:31:52 1996 +0000
+++ b/src/regex.c	Tue Jul 09 09:10:39 1996 +0000
@@ -5188,6 +5188,12 @@
 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 @@
 
 
 int
+#ifdef _LIBC
+weak_function
+#endif
 re_exec (s)
     const char *s;
 {
@@ -5236,15 +5245,6 @@
   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.  */