Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-12-20 05:55:11 +0300
committerChristopher Faylor <me@cgf.cx>2001-12-20 05:55:11 +0300
commit48beacf6e4438f457b33fddebaa8a81698dc77f8 (patch)
tree3098581dcc296aff3ca58cdb6c556f2dc961dd2d /winsup/cygwin/regexp
parent1f93c55ff7f7613d779ed770a60be13c14b0858f (diff)
* Makefile.in (VPATH): Add regex directory.
(NM): new variable. (OBSOLETE_FUNCTIONS): Ditto. (NEW_FUNCTIONS): Ditto. (install-headers): Install regex.h. (install-man): New target. (install): Use new target. (DLL_OFILES): Add v8_reg* stuff. (new-cygwin1.dll): Eliminate stamp-cygwin-lib creation. (libcygwin.a): Remove obsolete functions from import lib. Add new functions. * configure.in: Detect 'nm' tool. * configure: Regenerate. * cygwin.din: Export posix_reg* functions. Eliminate export of v8 reg* functions. This is now handled in object files themselves. * regex/*: New files. * regexp/v8_*.c: New files, renamed from non v8_ equivalents.
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;