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;
{
int
+#ifdef _LIBC
+weak_function
+#endif
re_exec (s)
const char *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 */
\f
/* POSIX.2 functions. Don't define these for Emacs. */