version 1.47, 2008/12/06 21:10:31 |
version 1.49, 2008/12/07 16:41:04 |
Line 640 roffspecial(struct rofftree *tree, int tok, const char |
|
Line 640 roffspecial(struct rofftree *tree, int tok, const char |
|
break; |
break; |
roff_err(tree, start, "invalid `At' arg"); |
roff_err(tree, start, "invalid `At' arg"); |
return(0); |
return(0); |
|
|
|
case (ROFF_Fn): |
|
if (0 != sz) |
|
break; |
|
roff_err(tree, start, "`%s' expects at least " |
|
"one arg", toknames[tok]); |
|
return(0); |
|
|
case (ROFF_Nm): |
case (ROFF_Nm): |
if (0 == sz) { |
if (0 == sz) { |
Line 653 roffspecial(struct rofftree *tree, int tok, const char |
|
Line 660 roffspecial(struct rofftree *tree, int tok, const char |
|
return(0); |
return(0); |
break; |
break; |
|
|
|
case (ROFF_Rv): |
|
/* FALLTHROUGH*/ |
case (ROFF_Sx): |
case (ROFF_Sx): |
/* FALLTHROUGH*/ |
/* FALLTHROUGH*/ |
case (ROFF_Ex): |
case (ROFF_Ex): |
if (1 != sz) { |
if (1 == sz) |
roff_err(tree, start, "`%s' expects one arg", |
break; |
toknames[tok]); |
roff_err(tree, start, "`%s' expects one arg", |
return(0); |
toknames[tok]); |
} |
return(0); |
break; |
|
|
|
case (ROFF_Sm): |
case (ROFF_Sm): |
if (1 != sz) { |
if (1 != sz) { |
Line 1200 roff_ordered(ROFFCALL_ARGS) |
|
Line 1208 roff_ordered(ROFFCALL_ARGS) |
|
if ( ! roffparseopts(tree, tok, &argv, argcp, argvp)) |
if ( ! roffparseopts(tree, tok, &argv, argcp, argvp)) |
return(0); |
return(0); |
|
|
if (NULL == *argv) |
if (NULL == *argv) { |
|
ordp[0] = NULL; |
return(roffspecial(tree, tok, p, argcp, |
return(roffspecial(tree, tok, p, argcp, |
(const char **)argvp, 0, ordp)); |
(const char **)argvp, 0, ordp)); |
|
} |
|
|
i = 0; |
i = 0; |
while (*argv && i < ROFF_MAXLINEARG) { |
while (*argv && i < ROFF_MAXLINEARG) { |
Line 1280 roff_text(ROFFCALL_ARGS) |
|
Line 1290 roff_text(ROFFCALL_ARGS) |
|
* terminating punctuation. If we encounter it and all |
* terminating punctuation. If we encounter it and all |
* subsequent tokens are punctuation, then stop processing (the |
* subsequent tokens are punctuation, then stop processing (the |
* line-dominant macro will print these tokens after closure). |
* line-dominant macro will print these tokens after closure). |
|
* If the punctuation is followed by non-punctuation, then close |
|
* and re-open our scope, then continue. |
*/ |
*/ |
|
|
i = 0; |
i = 0; |
Line 1311 roff_text(ROFFCALL_ARGS) |
|
Line 1323 roff_text(ROFFCALL_ARGS) |
|
break; |
break; |
|
|
if (argv[j]) { |
if (argv[j]) { |
|
if (ROFF_LSCOPE & tokens[tok].flags) { |
|
if ( ! roffdata(tree, 0, *argv++)) |
|
return(0); |
|
continue; |
|
} |
|
if ( ! (*tree->cb.roffout)(tree->arg, tok)) |
|
return(0); |
if ( ! roffdata(tree, 0, *argv++)) |
if ( ! roffdata(tree, 0, *argv++)) |
return(0); |
return(0); |
|
if ( ! (*tree->cb.roffin)(tree->arg, tok, |
|
argcp, argvp)) |
|
return(0); |
|
|
|
i = 0; |
continue; |
continue; |
} |
} |
|
|