version 1.32, 2010/12/27 23:57:13 |
version 1.33, 2011/01/04 22:28:17 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
|
|
MAN_PD, |
MAN_PD, |
MAN_AT, |
MAN_AT, |
MAN_in, |
MAN_in, |
MAN_TS, |
|
MAN_TE, |
|
MAN_ft, |
MAN_ft, |
MAN_MAX |
MAN_MAX |
}; |
}; |
|
|
MAN_ROOT, |
MAN_ROOT, |
MAN_BLOCK, |
MAN_BLOCK, |
MAN_HEAD, |
MAN_HEAD, |
MAN_BODY |
MAN_BODY, |
|
MAN_TBL |
}; |
}; |
|
|
/* |
/* |
|
|
char *source; /* `TH' source (e.g., GNU) */ |
char *source; /* `TH' source (e.g., GNU) */ |
}; |
}; |
|
|
union man_data { |
|
struct tbl *TS; |
|
}; |
|
|
|
/* |
/* |
* Single node in tree-linked AST. |
* Single node in tree-linked AST. |
*/ |
*/ |
|
|
char *string; /* TEXT node argument */ |
char *string; /* TEXT node argument */ |
struct man_node *head; /* BLOCK node HEAD ptr */ |
struct man_node *head; /* BLOCK node HEAD ptr */ |
struct man_node *body; /* BLOCK node BODY ptr */ |
struct man_node *body; /* BLOCK node BODY ptr */ |
union man_data data; |
const struct tbl_span *span; /* TBL */ |
}; |
}; |
|
|
/* |
/* |
|
|
void man_reset(struct man *); |
void man_reset(struct man *); |
int man_parseln(struct man *, int, char *, int); |
int man_parseln(struct man *, int, char *, int); |
int man_endparse(struct man *); |
int man_endparse(struct man *); |
|
int man_addspan(struct man *, |
|
const struct tbl_span *); |
|
|
const struct man_node *man_node(const struct man *); |
const struct man_node *man_node(const struct man *); |
const struct man_meta *man_meta(const struct man *); |
const struct man_meta *man_meta(const struct man *); |