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:
Diffstat (limited to 'winsup/cygwin/regexp/v8_regerror.c')
-rw-r--r--winsup/cygwin/regexp/v8_regerror.c28
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 */
+}