libc/winsup/cygwin/regexp/v8_regerror.c

29 lines
547 B
C

/* 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 */
}