From 48beacf6e4438f457b33fddebaa8a81698dc77f8 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 20 Dec 2001 02:55:11 +0000 Subject: * 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. --- winsup/cygwin/regexp/v8_regerror.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 winsup/cygwin/regexp/v8_regerror.c (limited to 'winsup/cygwin/regexp/v8_regerror.c') 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 + +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 */ +} -- cgit v1.2.3