2001-03-06 05:29:24 +08:00
|
|
|
/* 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. */
|
|
|
|
|
2000-08-03 04:13:18 +08:00
|
|
|
#include "winsup.h"
|
2000-02-18 03:38:31 +08:00
|
|
|
#include "regexp.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2001-12-20 10:55:11 +08:00
|
|
|
void __declspec(dllexport)
|
2000-02-24 11:53:22 +08:00
|
|
|
regerror(const char *s __attribute__ ((unused)))
|
2000-02-18 03:38:31 +08:00
|
|
|
{
|
|
|
|
#ifdef ERRAVAIL
|
|
|
|
error("regexp: %s", s);
|
|
|
|
#else
|
|
|
|
/*
|
|
|
|
fprintf(stderr, "regexp(3): %s\n", s);
|
|
|
|
exit(1);
|
|
|
|
*/
|
|
|
|
return; /* let std. egrep handle errors */
|
|
|
|
#endif
|
|
|
|
/* NOTREACHED */
|
|
|
|
}
|