version 1.1, 2009/03/25 15:17:49 |
version 1.3, 2009/03/26 09:55:39 |
Line 35 struct man_valid { |
|
Line 35 struct man_valid { |
|
v_post *posts; |
v_post *posts; |
}; |
}; |
|
|
static int count(POSTARGS); |
static int count(const struct man_node *); |
static int check_eq0(POSTARGS); |
static int check_eq0(POSTARGS); |
static int check_ge1(POSTARGS); |
static int check_ge1(POSTARGS); |
static int check_ge2(POSTARGS); |
static int check_ge2(POSTARGS); |
Line 80 man_valid_post(struct man *m) |
|
Line 80 man_valid_post(struct man *m) |
|
|
|
if (MAN_VALID & m->last->flags) |
if (MAN_VALID & m->last->flags) |
return(1); |
return(1); |
|
|
m->last->flags |= MAN_VALID; |
m->last->flags |= MAN_VALID; |
|
|
switch (m->last->type) { |
switch (m->last->type) { |
Line 103 man_valid_post(struct man *m) |
|
Line 102 man_valid_post(struct man *m) |
|
|
|
|
|
static inline int |
static inline int |
count(POSTARGS) |
count(const struct man_node *n) |
{ |
{ |
int i; |
int i; |
|
|
|
|
check_##name(POSTARGS) \ |
check_##name(POSTARGS) \ |
{ \ |
{ \ |
int c; \ |
int c; \ |
if ((c = count(m, n->child)) ineq (x)) \ |
if ((c = count(n->child)) ineq (x)) \ |
return(1); \ |
return(1); \ |
return(man_vwarn(m, n->line, n->pos, \ |
return(man_vwarn(m, n->line, n->pos, \ |
"expected line arguments %s %d, have %d", \ |
"expected line arguments %s %d, have %d", \ |