summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/regerror.c
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2004-11-30 17:04:23 +0000
committerotto <otto@openbsd.org>2004-11-30 17:04:23 +0000
commita1a765374b785807f7f250e74238e14e6f25a199 (patch)
tree42be6b51cd70b81c92a2bb63d37e68e89b377baf /lib/libc/regex/regerror.c
parentneed to pass MAKEOBJDIR to prereq and includes (diff)
downloadwireguard-openbsd-a1a765374b785807f7f250e74238e14e6f25a199.tar.xz
wireguard-openbsd-a1a765374b785807f7f250e74238e14e6f25a199.zip
remove useless comments, once used for header file generation and delete
parameter names from prototypes. ok millert@
Diffstat (limited to 'lib/libc/regex/regerror.c')
-rw-r--r--lib/libc/regex/regerror.c35
1 files changed, 2 insertions, 33 deletions
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)