diff options
Diffstat (limited to 'winsup/cygwin/regexp')
-rw-r--r-- | winsup/cygwin/regexp/v8_regerror.c (renamed from winsup/cygwin/regexp/regerror.c) | 2 | ||||
-rw-r--r-- | winsup/cygwin/regexp/v8_regexp.c (renamed from winsup/cygwin/regexp/regexp.c) | 4 | ||||
-rw-r--r-- | winsup/cygwin/regexp/v8_regsub.c (renamed from winsup/cygwin/regexp/regsub.c) | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/winsup/cygwin/regexp/regerror.c b/winsup/cygwin/regexp/v8_regerror.c index 0f6159bb7..56d63ff2f 100644 --- a/winsup/cygwin/regexp/regerror.c +++ b/winsup/cygwin/regexp/v8_regerror.c @@ -12,7 +12,7 @@ details. */ #include "regexp.h" #include <stdio.h> -void +void __declspec(dllexport) regerror(const char *s __attribute__ ((unused))) { #ifdef ERRAVAIL diff --git a/winsup/cygwin/regexp/regexp.c b/winsup/cygwin/regexp/v8_regexp.c index 2f60d6463..fef1267a0 100644 --- a/winsup/cygwin/regexp/regexp.c +++ b/winsup/cygwin/regexp/v8_regexp.c @@ -204,7 +204,7 @@ STATIC int strcspn (char *, char *); * Beware that the optimization-preparation code in here knows about some * of the structure of the compiled regexp. */ -regexp * +regexp * __declspec(dllexport) regcomp(exp) const char *exp; { @@ -788,7 +788,7 @@ STATIC char *regprop __P((char *)); /* - regexec - match a regexp against a string */ -int +int __declspec(dllexport) regexec(prog, string) register const regexp *prog; register const char *string; diff --git a/winsup/cygwin/regexp/regsub.c b/winsup/cygwin/regexp/v8_regsub.c index e544072c1..aa95b876a 100644 --- a/winsup/cygwin/regexp/regsub.c +++ b/winsup/cygwin/regexp/v8_regsub.c @@ -25,6 +25,7 @@ static char *rcsid = "$Id$"; #endif /* not lint */ #endif +#include "winsup.h" #include "regexp.h" #include <stdio.h> #include <string.h> @@ -39,7 +40,7 @@ static char *rcsid = "$Id$"; /* - regsub - perform substitutions after a regexp match */ -void +void __declspec(dllexport) regsub(prog, source, dest) const regexp *prog; const char *source; |