Scanned over all manuals with valgrind.
Version up.
INSTALL_LIB = install -m 0644
INSTALL_MAN = $(INSTALL_DATA)
-VERSION = 1.7.4
+VERSION = 1.7.5
VDATE = 26 March 2009
VFLAGS = -DVERSION=\"$(VERSION)\"
-/* $Id: man.c,v 1.11 2009/03/26 14:38:11 kristaps Exp $ */
+/* $Id: man.c,v 1.12 2009/03/26 14:44:41 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
if ( ! man_vwarn(m, ln, ppos,
"ill-formed macro: %s", mac))
goto err;
- goto out;
+ return(1);
}
if (MAN_MAX == (c = man_hash_find(m->htab, mac))) {
if ( ! man_vwarn(m, ln, ppos,
"unknown macro: %s", mac))
goto err;
- goto out;
+ return(1);
}
/* The macro is sane. Jump to the next word. */
-/* $Id: man_term.c,v 1.1 2009/03/26 14:38:11 kristaps Exp $ */
+/* $Id: man_term.c,v 1.2 2009/03/26 14:44:41 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
#include "term.h"
#include "man.h"
+#ifdef __linux__
+extern size_t strlcpy(char *, const char *, size_t);
+extern size_t strlcat(char *, const char *, size_t);
+#endif
+
#define DECL_ARGS struct termp *p, \
const struct man_node *n, \
const struct man_meta *m
-/* $Id: mdoc_term.c,v 1.1 2009/03/26 14:38:11 kristaps Exp $ */
+/* $Id: mdoc_term.c,v 1.2 2009/03/26 14:44:41 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
{ NULL, NULL }, /* %Q */
};
+#ifdef __linux__
+extern size_t strlcpy(char *, const char *, size_t);
+extern size_t strlcat(char *, const char *, size_t);
+#endif
+
static int arg_hasattr(int, const struct mdoc_node *);
static int arg_getattrs(const int *, int *, size_t,
const struct mdoc_node *);
-/* $Id: terminal.c,v 1.9 2009/03/26 14:38:11 kristaps Exp $ */
+/* $Id: terminal.c,v 1.10 2009/03/26 14:44:41 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
#include "man.h"
#include "mdoc.h"
-#ifdef __linux__
-extern size_t strlcpy(char *, const char *, size_t);
-extern size_t strlcat(char *, const char *, size_t);
-#endif
-
extern int man_run(struct termp *,
const struct man *);
extern int mdoc_run(struct termp *,