version 1.34, 2010/03/29 19:28:04 |
version 1.35, 2010/03/31 07:13:53 |
|
|
|
|
#define MULTI_STEP 5 |
#define MULTI_STEP 5 |
|
|
static int argv_a2arg(int, const char *); |
static int argv_a2arg(enum mdoct, const char *); |
static int args(struct mdoc *, int, int *, |
static int args(struct mdoc *, int, int *, |
char *, int, char **); |
char *, int, char **); |
static int argv(struct mdoc *, int, |
static int argv(struct mdoc *, int, |
Line 218 static int mdoc_argflags[MDOC_MAX] = { |
|
Line 218 static int mdoc_argflags[MDOC_MAX] = { |
|
* one mandatory value, an optional single value, or no value. |
* one mandatory value, an optional single value, or no value. |
*/ |
*/ |
int |
int |
mdoc_argv(struct mdoc *m, int line, int 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) |
{ |
{ |
char *p, sv; |
char *p, sv; |
Line 330 mdoc_zargs(struct mdoc *m, int line, int *pos, |
|
Line 330 mdoc_zargs(struct mdoc *m, int line, int *pos, |
|
|
|
|
|
int |
int |
mdoc_args(struct mdoc *m, int line, |
mdoc_args(struct mdoc *m, int line, int *pos, |
int *pos, char *buf, int tok, char **v) |
char *buf, enum mdoct tok, char **v) |
{ |
{ |
int fl, c, i; |
int fl, c, i; |
struct mdoc_node *n; |
struct mdoc_node *n; |
|
|
fl = (0 == tok) ? 0 : mdoc_argflags[tok]; |
assert(tok && tok < MDOC_MAX); |
|
fl = mdoc_argflags[tok]; |
|
|
if (MDOC_It != tok) |
if (MDOC_It != tok) |
return(args(m, line, pos, buf, fl, v)); |
return(args(m, line, pos, buf, fl, v)); |
Line 552 args(struct mdoc *m, int line, int *pos, |
|
Line 553 args(struct mdoc *m, int line, int *pos, |
|
|
|
|
|
static int |
static int |
argv_a2arg(int tok, const char *p) |
argv_a2arg(enum mdoct tok, const char *p) |
{ |
{ |
|
|
/* |
/* |