diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-07 22:40:18 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-07 22:40:18 +0000 |
commit | d89b4351886e0c796e213dd54eff3b53d868c4b0 (patch) | |
tree | 903b3e85715e5ef981930b917f6c644a5a376ac5 /roff.c | |
parent | cbf4b23303e5c63578526fbe6fa0a5d8eb493fba (diff) | |
download | mandoc-d89b4351886e0c796e213dd54eff3b53d868c4b0.tar.gz |
*** empty log message ***
Diffstat (limited to 'roff.c')
-rw-r--r-- | roff.c | 32 |
1 files changed, 21 insertions, 11 deletions
@@ -641,6 +641,8 @@ roffspecial(struct rofftree *tree, int tok, const char *start, roff_err(tree, start, "invalid `At' arg"); return(0); + case (ROFF_Xr): + /* FALLTHROUGH */ case (ROFF_Fn): if (0 != sz) break; @@ -699,8 +701,8 @@ roffspecial(struct rofftree *tree, int tok, const char *start, break; } - return((*tree->cb.roffspecial)(tree->arg, tok, - tree->cur, argc, argv, ordp)); + return((*tree->cb.roffspecial)(tree->arg, tok, tree->cur, + argc, argv, (const char **)ordp)); } @@ -1116,13 +1118,16 @@ roff_layout(ROFFCALL_ARGS) * the layout body is everything following until termination. */ - if ( ! (*tree->cb.roffblkin)(tree->arg, tok, argcp, argvp)) + if ( ! (*tree->cb.roffblkin)(tree->arg, tok, argcp, + (const char **)argvp)) return(0); if (NULL == *argv) return((*tree->cb.roffblkbodyin) - (tree->arg, tok, argcp, argvp)); + (tree->arg, tok, argcp, + (const char **)argvp)); - if ( ! (*tree->cb.roffblkheadin)(tree->arg, tok, argcp, argvp)) + if ( ! (*tree->cb.roffblkheadin)(tree->arg, tok, argcp, + (const char **)argvp)) return(0); /* @@ -1139,7 +1144,8 @@ roff_layout(ROFFCALL_ARGS) if ( ! (*tree->cb.roffblkheadout)(tree->arg, tok)) return(0); return((*tree->cb.roffblkbodyin) - (tree->arg, tok, argcp, argvp)); + (tree->arg, tok, argcp, + (const char **)argvp)); } /* @@ -1170,7 +1176,8 @@ roff_layout(ROFFCALL_ARGS) if ( ! (*tree->cb.roffblkheadout)(tree->arg, tok)) return(0); return((*tree->cb.roffblkbodyin) - (tree->arg, tok, argcp, argvp)); + (tree->arg, tok, argcp, + (const char **)argvp)); } /* @@ -1184,7 +1191,8 @@ roff_layout(ROFFCALL_ARGS) if ( ! (*tree->cb.roffblkheadout)(tree->arg, tok)) return(0); return((*tree->cb.roffblkbodyin) - (tree->arg, tok, argcp, argvp)); + (tree->arg, tok, argcp, + (const char **)argvp)); } @@ -1271,7 +1279,8 @@ roff_text(ROFFCALL_ARGS) if ( ! roffparseopts(tree, tok, &argv, argcp, argvp)) return(0); - if ( ! (*tree->cb.roffin)(tree->arg, tok, argcp, argvp)) + if ( ! (*tree->cb.roffin)(tree->arg, tok, argcp, + (const char **)argvp)) return(0); if (NULL == *argv) return((*tree->cb.roffout)(tree->arg, tok)); @@ -1332,8 +1341,9 @@ roff_text(ROFFCALL_ARGS) return(0); if ( ! roffdata(tree, 0, *argv++)) return(0); - if ( ! (*tree->cb.roffin)(tree->arg, tok, - argcp, argvp)) + if ( ! (*tree->cb.roffin)(tree->arg, tok, + argcp, + (const char **)argvp)) return(0); i = 0; |