version 1.285, 2015/04/02 22:48:17 |
version 1.286, 2015/04/18 16:06:41 |
|
|
|
|
/* FIXME: .Bl -diag can't have non-text children in HEAD. */ |
/* FIXME: .Bl -diag can't have non-text children in HEAD. */ |
|
|
#define PRE_ARGS struct mdoc *mdoc, struct roff_node *n |
#define PRE_ARGS struct roff_man *mdoc, struct roff_node *n |
#define POST_ARGS struct mdoc *mdoc |
#define POST_ARGS struct roff_man *mdoc |
|
|
enum check_ineq { |
enum check_ineq { |
CHECK_LT, |
CHECK_LT, |
|
|
v_post post; |
v_post post; |
}; |
}; |
|
|
static void check_text(struct mdoc *, int, int, char *); |
static void check_text(struct roff_man *, int, int, char *); |
static void check_argv(struct mdoc *, |
static void check_argv(struct roff_man *, |
struct roff_node *, struct mdoc_argv *); |
struct roff_node *, struct mdoc_argv *); |
static void check_args(struct mdoc *, struct roff_node *); |
static void check_args(struct roff_man *, struct roff_node *); |
static int child_an(const struct roff_node *); |
static int child_an(const struct roff_node *); |
static enum roff_sec a2sec(const char *); |
static enum roff_sec a2sec(const char *); |
static size_t macro2len(int); |
static size_t macro2len(int); |
Line 293 static const char * const secnames[SEC__MAX] = { |
|
Line 293 static const char * const secnames[SEC__MAX] = { |
|
|
|
|
|
void |
void |
mdoc_valid_pre(struct mdoc *mdoc, struct roff_node *n) |
mdoc_valid_pre(struct roff_man *mdoc, struct roff_node *n) |
{ |
{ |
v_pre p; |
v_pre p; |
|
|
Line 319 mdoc_valid_pre(struct mdoc *mdoc, struct roff_node *n) |
|
Line 319 mdoc_valid_pre(struct mdoc *mdoc, struct roff_node *n) |
|
} |
} |
|
|
void |
void |
mdoc_valid_post(struct mdoc *mdoc) |
mdoc_valid_post(struct roff_man *mdoc) |
{ |
{ |
struct roff_node *n; |
struct roff_node *n; |
v_post p; |
v_post p; |
Line 362 mdoc_valid_post(struct mdoc *mdoc) |
|
Line 362 mdoc_valid_post(struct mdoc *mdoc) |
|
} |
} |
|
|
static void |
static void |
check_args(struct mdoc *mdoc, struct roff_node *n) |
check_args(struct roff_man *mdoc, struct roff_node *n) |
{ |
{ |
int i; |
int i; |
|
|
Line 375 check_args(struct mdoc *mdoc, struct roff_node *n) |
|
Line 375 check_args(struct mdoc *mdoc, struct roff_node *n) |
|
} |
} |
|
|
static void |
static void |
check_argv(struct mdoc *mdoc, struct roff_node *n, struct mdoc_argv *v) |
check_argv(struct roff_man *mdoc, struct roff_node *n, struct mdoc_argv *v) |
{ |
{ |
int i; |
int i; |
|
|
Line 384 check_argv(struct mdoc *mdoc, struct roff_node *n, str |
|
Line 384 check_argv(struct mdoc *mdoc, struct roff_node *n, str |
|
} |
} |
|
|
static void |
static void |
check_text(struct mdoc *mdoc, int ln, int pos, char *p) |
check_text(struct roff_man *mdoc, int ln, int pos, char *p) |
{ |
{ |
char *cp; |
char *cp; |
|
|
Line 1046 post_defaults(POST_ARGS) |
|
Line 1046 post_defaults(POST_ARGS) |
|
return; |
return; |
|
|
nn = mdoc->last; |
nn = mdoc->last; |
mdoc->next = MDOC_NEXT_CHILD; |
mdoc->next = ROFF_NEXT_CHILD; |
|
|
switch (nn->tok) { |
switch (nn->tok) { |
case MDOC_Ar: |
case MDOC_Ar: |
Line 1074 post_at(POST_ARGS) |
|
Line 1074 post_at(POST_ARGS) |
|
|
|
n = mdoc->last; |
n = mdoc->last; |
if (n->child == NULL) { |
if (n->child == NULL) { |
mdoc->next = MDOC_NEXT_CHILD; |
mdoc->next = ROFF_NEXT_CHILD; |
mdoc_word_alloc(mdoc, n->line, n->pos, "AT&T UNIX"); |
mdoc_word_alloc(mdoc, n->line, n->pos, "AT&T UNIX"); |
mdoc->last = n; |
mdoc->last = n; |
return; |
return; |
Line 1502 post_bk(POST_ARGS) |
|
Line 1502 post_bk(POST_ARGS) |
|
} |
} |
|
|
static void |
static void |
post_sm(struct mdoc *mdoc) |
post_sm(struct roff_man *mdoc) |
{ |
{ |
struct roff_node *nch; |
struct roff_node *nch; |
|
|
Line 2313 post_ex(POST_ARGS) |
|
Line 2313 post_ex(POST_ARGS) |
|
return; |
return; |
} |
} |
|
|
mdoc->next = MDOC_NEXT_CHILD; |
mdoc->next = ROFF_NEXT_CHILD; |
mdoc_word_alloc(mdoc, n->line, n->pos, mdoc->meta.name); |
mdoc_word_alloc(mdoc, n->line, n->pos, mdoc->meta.name); |
mdoc->last = n; |
mdoc->last = n; |
} |
} |