From 09f49f85d46fe8685347ee71877211bb3b5a0ec0 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 30 Nov 2004 17:04:24 +0000 Subject: remove useless comments, once used for header file generation and delete parameter names from prototypes. ok millert@ --- lib/libc/regex/regerror.c | 35 ++--------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) (limited to 'lib/libc/regex/regerror.c') diff --git a/lib/libc/regex/regerror.c b/lib/libc/regex/regerror.c index e2c41bdc353..5f7e2b67446 100644 --- a/lib/libc/regex/regerror.c +++ b/lib/libc/regex/regerror.c @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)regerror.c 8.4 (Berkeley) 3/20/94"; #else -static char rcsid[] = "$OpenBSD: regerror.c,v 1.11 2004/10/17 17:58:54 otto Exp $"; +static char rcsid[] = "$OpenBSD: regerror.c,v 1.12 2004/11/30 17:04:23 otto Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -51,38 +51,8 @@ static char rcsid[] = "$OpenBSD: regerror.c,v 1.11 2004/10/17 17:58:54 otto Exp #include "utils.h" -/* ========= begin header generated by ./mkh ========= */ -#ifdef __cplusplus -extern "C" { -#endif - -/* === regerror.c === */ -static char *regatoi(const regex_t *preg, char *localbuf, int localbufsize); +static char *regatoi(const regex_t *, char *, int); -#ifdef __cplusplus -} -#endif -/* ========= end header generated by ./mkh ========= */ -/* - = #define REG_NOMATCH 1 - = #define REG_BADPAT 2 - = #define REG_ECOLLATE 3 - = #define REG_ECTYPE 4 - = #define REG_EESCAPE 5 - = #define REG_ESUBREG 6 - = #define REG_EBRACK 7 - = #define REG_EPAREN 8 - = #define REG_EBRACE 9 - = #define REG_BADBR 10 - = #define REG_ERANGE 11 - = #define REG_ESPACE 12 - = #define REG_BADRPT 13 - = #define REG_EMPTY 14 - = #define REG_ASSERT 15 - = #define REG_INVARG 16 - = #define REG_ATOI 255 // convert name to number (!) - = #define REG_ITOA 0400 // convert number to name (!) - */ static struct rerr { int code; char *name; @@ -150,7 +120,6 @@ regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size) /* - regatoi - internal routine to implement REG_ATOI - == static char *regatoi(const regex_t *preg, char *localbuf); */ static char * regatoi(const regex_t *preg, char *localbuf, int localbufsize) -- cgit v1.2.3