version 1.38, 2008/12/04 16:34:59 |
version 1.39, 2008/12/04 19:31:57 |
Line 969 roffparseopts(struct rofftree *tree, int tok, |
|
Line 969 roffparseopts(struct rofftree *tree, int tok, |
|
static int |
static int |
roffdata(struct rofftree *tree, int space, char *buf) |
roffdata(struct rofftree *tree, int space, char *buf) |
{ |
{ |
int tok; |
|
|
|
if (0 == *buf) |
if (0 == *buf) |
return(1); |
return(1); |
|
|
if (-1 == (tok = rofftok_scan(buf))) { |
|
roff_err(tree, buf, "invalid character sequence"); |
|
return(0); |
|
} else if (ROFFTok_MAX != tok) { |
|
if (ROFFTok_Null == tok) { /* FIXME */ |
|
buf += 2; |
|
return(roffdata(tree, space, buf)); |
|
} |
|
return((*tree->cb.rofftoken) |
|
(tree->arg, space != 0, tok)); |
|
} |
|
|
|
return((*tree->cb.roffdata)(tree->arg, |
return((*tree->cb.roffdata)(tree->arg, |
space != 0, tree->cur, buf)); |
space != 0, tree->cur, buf)); |
} |
} |