diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-11-30 20:53:34 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-11-30 20:53:34 +0000 |
commit | ffefeb2100c9c3849c0cbb7d2b2fe3004d7db057 (patch) | |
tree | 31ed3a2e7248506a8bd7cfa6e276282cec666048 /roff.c | |
parent | b3c089b88bce8ac8de5b81fc7621241c5ae47e72 (diff) | |
download | mandoc-ffefeb2100c9c3849c0cbb7d2b2fe3004d7db057.tar.gz |
Cleaned up presentation with mbuf_putstring & al.
Diffstat (limited to 'roff.c')
-rw-r--r-- | roff.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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; @@ -976,7 +979,7 @@ roff_layout(ROFFCALL_ARGS) if (NULL == *argv) return(1); - if ( ! (*tree->cb.roffin)(tree->arg, tok, argcp, argvp)) + if ( ! (*tree->cb.roffin)(tree->arg, tok, 0, argcp, argvp)) return(0); if ( ! (ROFF_PARSED & tokens[tok].flags)) { @@ -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); @@ -1071,7 +1075,7 @@ roff_text(ROFFCALL_ARGS) argcp[i] = ROFF_ARGMAX; argvp[i] = NULL; - if ( ! (*tree->cb.roffin)(tree->arg, tok, argcp, argvp)) + if ( ! (*tree->cb.roffin)(tree->arg, tok, 1, argcp, argvp)) return(0); if ( ! (ROFF_PARSED & tokens[tok].flags)) { @@ -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); |