X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/0a046d18c4826bf5ad3f6c63da7f9469c43d26e1..c6cc6d2cdc21391e0fed1b0e6fd715071bee1879:/main.c?ds=sidebyside diff --git a/main.c b/main.c index 2122eda0..4c7db9c8 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.112 2010/12/01 16:28:23 kristaps Exp $ */ +/* $Id: main.c,v 1.114 2010/12/01 17:00:05 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * Copyright (c) 2010 Ingo Schwarze @@ -122,6 +122,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "generic warning", + ".so is fragile, better use ln(1)", "text should be uppercase", "sections out of conventional order", "section name repeats", @@ -190,6 +191,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "argument count wrong, violates syntax", "child violates parent syntax", "argument count wrong, violates syntax", + "NOT IMPLEMENTED: .so with absolute path or \"..\"", "no document body", "no document prologue", "utsname system call failed", @@ -627,6 +629,7 @@ static void parsebuf(struct curparse *curp, struct buf blk, int start) { struct buf ln; + enum rofferr rr; int i, of, rc; int pos; /* byte number in the ln buffer */ int lnn; /* line number in the real file */ @@ -741,11 +744,11 @@ parsebuf(struct curparse *curp, struct buf blk, int start) of = 0; rerun: - rc = roff_parseln + rr = roff_parseln (curp->roff, curp->line, &ln.buf, &ln.sz, of, &of); - switch (rc) { + switch (rr) { case (ROFF_REPARSE): parsebuf(curp, ln, 0); pos = 0;