version 1.61, 2009/06/18 20:46:19 |
version 1.66, 2009/07/17 10:56:57 |
|
|
#define MDOC_En 115 |
#define MDOC_En 115 |
#define MDOC_Dx 116 |
#define MDOC_Dx 116 |
#define MDOC__Q 117 |
#define MDOC__Q 117 |
#define MDOC_MAX 118 |
#define MDOC_br 118 |
|
#define MDOC_sp 119 |
|
#define MDOC_MAX 120 |
|
|
/* What follows is a list of ALL possible macro arguments. */ |
/* What follows is a list of ALL possible macro arguments. */ |
|
|
|
|
#define MDOC_Nested 25 |
#define MDOC_Nested 25 |
#define MDOC_ARG_MAX 26 |
#define MDOC_ARG_MAX 26 |
|
|
/* Warnings are either syntax or groff-compatibility. */ |
|
enum mdoc_warn { |
|
WARN_SYNTAX, |
|
WARN_COMPAT |
|
}; |
|
|
|
/* Type of a syntax node. */ |
/* Type of a syntax node. */ |
enum mdoc_type { |
enum mdoc_type { |
MDOC_TEXT, |
MDOC_TEXT, |
Line 279 struct mdoc_node { |
|
Line 275 struct mdoc_node { |
|
/* FIXME: unify somehow with man_cb. */ |
/* FIXME: unify somehow with man_cb. */ |
struct mdoc_cb { |
struct mdoc_cb { |
int (*mdoc_err)(void *, int, int, const char *); |
int (*mdoc_err)(void *, int, int, const char *); |
int (*mdoc_warn)(void *, int, int, |
int (*mdoc_warn)(void *, int, int, const char *); |
enum mdoc_warn, const char *); |
|
}; |
}; |
|
|
/* See mdoc.3 for documentation. */ |
/* See mdoc.3 for documentation. */ |
Line 301 int mdoc_parseln(struct mdoc *, int, char *buf); |
|
Line 296 int mdoc_parseln(struct mdoc *, int, char *buf); |
|
const struct mdoc_node *mdoc_node(const struct mdoc *); |
const struct mdoc_node *mdoc_node(const struct mdoc *); |
const struct mdoc_meta *mdoc_meta(const struct mdoc *); |
const struct mdoc_meta *mdoc_meta(const struct mdoc *); |
int mdoc_endparse(struct mdoc *); |
int mdoc_endparse(struct mdoc *); |
|
|
const char *mdoc_a2att(const char *); |
|
const char *mdoc_a2lib(const char *); |
|
const char *mdoc_a2st(const char *); |
|
|
|
__END_DECLS |
__END_DECLS |
|
|