-/* $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 <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
"generic warning",
+ ".so is fragile, better use ln(1)",
"text should be uppercase",
"sections out of conventional order",
"section name repeats",
"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",
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 */
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;