blob: 92bb899664388f63110073c09440eebb43832ed2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* $OpenBSD: regerror.c,v 1.6 2003/07/18 23:05:13 david Exp $ */
#ifndef lint
static char *rcsid = "$OpenBSD: regerror.c,v 1.6 2003/07/18 23:05:13 david Exp $";
#endif /* not lint */
#include <err.h>
#include <regexp.h>
#include <stdio.h>
static void (*_new_regerror)(const char *) = NULL;
void
v8_regerror(const char *s)
{
if (_new_regerror != NULL)
_new_regerror(s);
else
warnx("%s", s);
return;
}
void
v8_setregerror(void (*f)(const char *))
{
_new_regerror = f;
}
|