diff options
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | main.c | 3 | ||||
-rw-r--r-- | terminal.c | 8 |
3 files changed, 7 insertions, 5 deletions
@@ -20,6 +20,7 @@ CFLAGS += $(VFLAGS) # If you want to strip `Xo/Xc' macro pairs, enable this. Really, only # OpenBSD should be doing this while it kicks its cruft. CFLAGS += -DSTRIP_XO +LINTFLAGS += -DSTRIP_XO LIBLNS = macro.ln mdoc.ln hash.ln strings.ln xstd.ln argv.ln \ validate.ln action.ln lib.ln att.ln arch.ln vol.ln \ @@ -401,13 +401,14 @@ fdesc(struct buf *blk, struct buf *ln, lnn++; continue; } + macro = 0; #endif /* STRIP_XO */ ln->buf[pos] = 0; if ( ! mdoc_parseln(mdoc, lnn, ln->buf)) return(0); lnn++; - macro = pos = 0; + pos = 0; } } @@ -46,8 +46,8 @@ static void term_nescape(struct termp *, static void term_chara(struct termp *, char); static void term_stringa(struct termp *, const char *, size_t); -static int term_isopendelim(const char *, size_t); -static int term_isclosedelim(const char *, size_t); +static int term_isopendelim(const char *, int); +static int term_isclosedelim(const char *, int); static void sanity(const struct mdoc_node *); /* XXX */ @@ -129,7 +129,7 @@ term_alloc(enum termenc enc) static int -term_isclosedelim(const char *p, size_t len) +term_isclosedelim(const char *p, int len) { if (1 != len) @@ -163,7 +163,7 @@ term_isclosedelim(const char *p, size_t len) static int -term_isopendelim(const char *p, size_t len) +term_isopendelim(const char *p, int len) { if (1 != len) |