version 1.86, 2009/03/08 11:41:22 |
version 1.89, 2009/03/16 22:19:19 |
Line 53 struct mdoc_macro { |
|
Line 53 struct mdoc_macro { |
|
#define MDOC_PARSED (1 << 1) |
#define MDOC_PARSED (1 << 1) |
#define MDOC_EXPLICIT (1 << 2) |
#define MDOC_EXPLICIT (1 << 2) |
#define MDOC_PROLOGUE (1 << 3) |
#define MDOC_PROLOGUE (1 << 3) |
|
#define MDOC_IGNDELIM (1 << 4) |
|
/* Reserved words in arguments treated as text. */ |
}; |
}; |
|
|
#define mdoc_nwarn(mdoc, node, type, fmt, ...) \ |
#define mdoc_nwarn(mdoc, node, type, fmt, ...) \ |
Line 97 void mdoc_vmsg(struct mdoc *, int, int, |
|
Line 99 void mdoc_vmsg(struct mdoc *, int, int, |
|
const char *, ...); |
const char *, ...); |
int mdoc_verr(struct mdoc *, int, int, |
int mdoc_verr(struct mdoc *, int, int, |
const char *, ...); |
const char *, ...); |
|
|
int mdoc_macro(MACRO_PROT_ARGS); |
int mdoc_macro(MACRO_PROT_ARGS); |
int mdoc_word_alloc(struct mdoc *, |
int mdoc_word_alloc(struct mdoc *, |
int, int, const char *); |
int, int, const char *); |
Line 111 int mdoc_tail_alloc(struct mdoc *, int, int, int); |
|
Line 112 int mdoc_tail_alloc(struct mdoc *, int, int, int); |
|
int mdoc_body_alloc(struct mdoc *, int, int, int); |
int mdoc_body_alloc(struct mdoc *, int, int, int); |
void mdoc_node_free(struct mdoc_node *); |
void mdoc_node_free(struct mdoc_node *); |
void mdoc_node_freelist(struct mdoc_node *); |
void mdoc_node_freelist(struct mdoc_node *); |
void mdoc_sibling(struct mdoc *, int, struct mdoc_node **, |
|
struct mdoc_node **, struct mdoc_node *); |
|
void *mdoc_tokhash_alloc(void); |
void *mdoc_tokhash_alloc(void); |
int mdoc_tokhash_find(const void *, const char *); |
int mdoc_tokhash_find(const void *, const char *); |
void mdoc_tokhash_free(void *); |
void mdoc_tokhash_free(void *); |
int mdoc_iscdelim(char); |
int mdoc_iscdelim(char); |
size_t mdoc_isescape(const char *); |
size_t mdoc_isescape(const char *); |
enum mdoc_sec mdoc_atosec(const char *); |
enum mdoc_sec mdoc_atosec(const char *); |
enum mdoc_msec mdoc_atomsec(const char *); |
|
time_t mdoc_atotime(const char *); |
time_t mdoc_atotime(const char *); |
size_t mdoc_macro2len(int); |
size_t mdoc_macro2len(int); |
|
|
const char *mdoc_a2arch(const char *); |
const char *mdoc_a2arch(const char *); |
const char *mdoc_a2vol(const char *); |
const char *mdoc_a2vol(const char *); |
const char *mdoc_a2msec(const char *); |
const char *mdoc_a2msec(const char *); |
|
|
int mdoc_valid_pre(struct mdoc *, |
int mdoc_valid_pre(struct mdoc *, |
const struct mdoc_node *); |
const struct mdoc_node *); |
int mdoc_valid_post(struct mdoc *); |
int mdoc_valid_post(struct mdoc *); |
int mdoc_action_pre(struct mdoc *, struct mdoc_node *); |
int mdoc_action_pre(struct mdoc *, struct mdoc_node *); |
int mdoc_action_post(struct mdoc *); |
int mdoc_action_post(struct mdoc *); |
|
|
int mdoc_argv(struct mdoc *, int, int, |
int mdoc_argv(struct mdoc *, int, int, |
struct mdoc_arg **, int *, char *); |
struct mdoc_arg **, int *, char *); |
#define ARGV_ERROR (-1) |
#define ARGV_ERROR (-1) |
Line 148 int mdoc_args(struct mdoc *, int, |
|
Line 143 int mdoc_args(struct mdoc *, int, |
|
#define ARGS_PUNCT (2) |
#define ARGS_PUNCT (2) |
#define ARGS_QWORD (3) |
#define ARGS_QWORD (3) |
#define ARGS_PHRASE (4) |
#define ARGS_PHRASE (4) |
|
|
int xstrlcpys(char *, const struct mdoc_node *, size_t); |
int xstrlcpys(char *, const struct mdoc_node *, size_t); |
int xstrlcat(char *, const char *, size_t); |
int xstrlcat(char *, const char *, size_t); |
int xstrlcpy(char *, const char *, size_t); |
int xstrlcpy(char *, const char *, size_t); |
int xstrcmp(const char *, const char *); |
int xstrcmp(const char *, const char *); |
int xstrncmp(const char *, const char *, size_t); |
|
void *xcalloc(size_t, size_t); |
void *xcalloc(size_t, size_t); |
void *xrealloc(void *, size_t); |
void *xrealloc(void *, size_t); |
char *xstrdup(const char *); |
char *xstrdup(const char *); |
|
|
int macro_end(struct mdoc *); |
int macro_end(struct mdoc *); |
|
|
__END_DECLS |
__END_DECLS |