=================================================================== RCS file: /cvs/mandoc/main.c,v retrieving revision 1.112 retrieving revision 1.114 diff -u -p -r1.112 -r1.114 --- mandoc/main.c 2010/12/01 16:28:23 1.112 +++ mandoc/main.c 2010/12/01 17:00:05 1.114 @@ -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 st 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;