version 1.39, 2010/05/07 05:48:29 |
version 1.41, 2010/05/07 06:05:38 |
Line 217 static int mdoc_argflags[MDOC_MAX] = { |
|
Line 217 static int mdoc_argflags[MDOC_MAX] = { |
|
* [value0...], which may either have a single mandatory value, at least |
* [value0...], which may either have a single mandatory value, at least |
* one mandatory value, an optional single value, or no value. |
* one mandatory value, an optional single value, or no value. |
*/ |
*/ |
int |
enum margverr |
mdoc_argv(struct mdoc *m, int line, enum mdoct tok, |
mdoc_argv(struct mdoc *m, int line, enum mdoct tok, |
struct mdoc_arg **v, int *pos, char *buf) |
struct mdoc_arg **v, int *pos, char *buf) |
{ |
{ |
Line 378 args(struct mdoc *m, int line, int *pos, |
|
Line 378 args(struct mdoc *m, int line, int *pos, |
|
{ |
{ |
int i; |
int i; |
char *p, *pp; |
char *p, *pp; |
|
enum margserr rc; |
|
|
/* |
/* |
* Parse out the terms (like `val' in `.Xx -arg val' or simply |
* Parse out the terms (like `val' in `.Xx -arg val' or simply |
Line 440 args(struct mdoc *m, int line, int *pos, |
|
Line 441 args(struct mdoc *m, int line, int *pos, |
|
*/ |
*/ |
|
|
if (ARGS_TABSEP & fl) { |
if (ARGS_TABSEP & fl) { |
|
rc = ARGS_PHRASE; |
/* Scan ahead to tab (can't be escaped). */ |
/* Scan ahead to tab (can't be escaped). */ |
p = strchr(*v, '\t'); |
p = strchr(*v, '\t'); |
|
|
Line 488 args(struct mdoc *m, int line, int *pos, |
|
Line 490 args(struct mdoc *m, int line, int *pos, |
|
for (pp = &buf[*pos]; ' ' == *pp; pp++, (*pos)++) |
for (pp = &buf[*pos]; ' ' == *pp; pp++, (*pos)++) |
/* Skip ahead. */ ; |
/* Skip ahead. */ ; |
|
|
return(ARGS_PHRASE); |
return(rc); |
} |
} |
|
|
/* |
/* |