version 1.2, 2008/12/28 00:34:20 |
version 1.4, 2008/12/30 19:06:03 |
Line 98 mdoc_args(struct mdoc *mdoc, int tok, int *pos, char * |
|
Line 98 mdoc_args(struct mdoc *mdoc, int tok, int *pos, char * |
|
/* |
/* |
* If we're a quoted string (and quoted strings are allowed), |
* If we're a quoted string (and quoted strings are allowed), |
* then parse ahead to the next quote. If none's found, it's an |
* then parse ahead to the next quote. If none's found, it's an |
* error. After, parse to the next word. We're not allowed to |
* error. After, parse to the next word. |
* also be DELIM requests (for now). |
|
*/ |
*/ |
assert( ! (fl & ARGS_DELIM)); |
|
|
|
*v = &buf[++(*pos)]; |
*v = &buf[++(*pos)]; |
|
|
Line 178 lookup(int tok, const char *argv) |
|
Line 176 lookup(int tok, const char *argv) |
|
else if (xstrcmp(argv, "compact")) |
else if (xstrcmp(argv, "compact")) |
return(MDOC_Compact); |
return(MDOC_Compact); |
break; |
break; |
|
|
|
case (MDOC_Rv): |
|
/* FALLTHROUGH */ |
|
case (MDOC_Ex): |
|
if (xstrcmp(argv, "std")) |
|
return(MDOC_Std); |
|
break; |
|
|
default: |
default: |
abort(); |
abort(); |
Line 258 parse(struct mdoc *mdoc, int tok, |
|
Line 263 parse(struct mdoc *mdoc, int tok, |
|
v->value = NULL; |
v->value = NULL; |
break; |
break; |
|
|
|
case(MDOC_Std): |
|
/* FALLTHROUGH */ |
case(MDOC_Width): |
case(MDOC_Width): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case(MDOC_Offset): |
case(MDOC_Offset): |