diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-26 14:44:41 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-26 14:44:41 +0000 |
commit | f82ca09664d8b4073d7c379ea5f4867714423c93 (patch) | |
tree | 73e774afc63c966ed977b8a6a6c3121a7f83399a | |
parent | 2b3f9168554bb673c8ddd5e40dc88253f5e8d999 (diff) | |
download | mandoc-f82ca09664d8b4073d7c379ea5f4867714423c93.tar.gz |
Fixed after-NLINE-error assertion.
Scanned over all manuals with valgrind.
Version up.
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | man.c | 4 | ||||
-rw-r--r-- | man_term.c | 5 | ||||
-rw-r--r-- | mdoc_term.c | 5 | ||||
-rw-r--r-- | terminal.c | 5 |
5 files changed, 13 insertions, 8 deletions
@@ -9,7 +9,7 @@ INSTALL_DATA = install -m 0444 INSTALL_LIB = install -m 0644 INSTALL_MAN = $(INSTALL_DATA) -VERSION = 1.7.4 +VERSION = 1.7.5 VDATE = 26 March 2009 VFLAGS = -DVERSION=\"$(VERSION)\" @@ -343,7 +343,7 @@ man_pmacro(struct man *m, int ln, char *buf) 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))) { @@ -355,7 +355,7 @@ man_pmacro(struct man *m, int ln, char *buf) 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. */ @@ -25,6 +25,11 @@ #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 diff --git a/mdoc_term.c b/mdoc_term.c index 71124804..8551608e 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -306,6 +306,11 @@ static const struct termact termacts[MDOC_MAX] = { { 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 *); @@ -26,11 +26,6 @@ #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 *, |