=================================================================== RCS file: /cvs/mandoc/roff.c,v retrieving revision 1.21 retrieving revision 1.24 diff -u -p -r1.21 -r1.24 --- mandoc/roff.c 2008/11/30 18:50:44 1.21 +++ mandoc/roff.c 2008/11/30 21:41:35 1.24 @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.21 2008/11/30 18:50:44 kristaps Exp $ */ +/* $Id: roff.c,v 1.24 2008/11/30 21:41:35 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -307,8 +307,11 @@ const char *const toknamesp[ROFF_MAX] = { "Ic", "In", "Li", "Nd", "Nm", "Op", "Ot", "Pa", "Rv", "St", "Va", "Vt", + /* LINTED */ "Xr", "\%A", "\%B", "\%D", + /* LINTED */ "\%I", "\%J", "\%N", "\%O", + /* LINTED */ "\%P", "\%R", "\%T", "\%V", "Ac", "Ao", "Aq", "At", "Bc", "Bf", "Bo", "Bq", @@ -671,7 +674,7 @@ static int rofffindtok(const char *buf) { char token[4]; - size_t i; + int i; for (i = 0; *buf && ! isspace(*buf) && i < 3; i++, buf++) token[i] = *buf; @@ -1022,7 +1025,7 @@ roff_layout(ROFFCALL_ARGS) assert(i > 0); if ( ! roffispunct(argv[--i])) - return(1); + return((*tree->cb.roffout)(tree->arg, tok)); while (i >= 0 && roffispunct(argv[i])) i--; @@ -1030,6 +1033,7 @@ roff_layout(ROFFCALL_ARGS) assert(0 != i); i++; + /* LINTED */ while (argv[i]) if ( ! (*tree->cb.roffdata)(tree->arg, 0, argv[i++])) return(0); @@ -1148,6 +1152,7 @@ roff_text(ROFFCALL_ARGS) assert(0 != i); i++; + /* LINTED */ while (argv[i]) if ( ! (*tree->cb.roffdata)(tree->arg, 0, argv[i++])) return(0);