diff options
author | Christopher Faylor <me@cgf.cx> | 2001-12-20 02:55:11 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-12-20 02:55:11 +0000 |
commit | 48beacf6e4438f457b33fddebaa8a81698dc77f8 (patch) | |
tree | 3098581dcc296aff3ca58cdb6c556f2dc961dd2d /winsup/cygwin/regexp/v8_regerror.c | |
parent | 1f93c55ff7f7613d779ed770a60be13c14b0858f (diff) | |
download | cygnal-48beacf6e4438f457b33fddebaa8a81698dc77f8.tar.gz cygnal-48beacf6e4438f457b33fddebaa8a81698dc77f8.tar.bz2 cygnal-48beacf6e4438f457b33fddebaa8a81698dc77f8.zip |
* 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/v8_regerror.c')
-rw-r--r-- | winsup/cygwin/regexp/v8_regerror.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/winsup/cygwin/regexp/v8_regerror.c b/winsup/cygwin/regexp/v8_regerror.c new file mode 100644 index 000000000..56d63ff2f --- /dev/null +++ b/winsup/cygwin/regexp/v8_regerror.c @@ -0,0 +1,28 @@ +/* regerror.c + + Copyright 1996, 1998, 2001 Red Hat, Inc. + +This file is part of Cygwin. + +This software is a copyrighted work licensed under the terms of the +Cygwin license. Please consult the file "CYGWIN_LICENSE" for +details. */ + +#include "winsup.h" +#include "regexp.h" +#include <stdio.h> + +void __declspec(dllexport) +regerror(const char *s __attribute__ ((unused))) +{ +#ifdef ERRAVAIL + error("regexp: %s", s); +#else +/* + fprintf(stderr, "regexp(3): %s\n", s); + exit(1); +*/ + return; /* let std. egrep handle errors */ +#endif + /* NOTREACHED */ +} |