diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-07 15:57:14 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-07 15:57:14 +0000 |
commit | f0046239049623a3d7e442ee672ae6bb28674e76 (patch) | |
tree | 4d2b487d3736651c727137ee9c81e5d977636c0b /private.h | |
parent | a7a1dadb16951c8d91f80da5763dd5c3cb973ffa (diff) | |
download | mandoc-f0046239049623a3d7e442ee672ae6bb28674e76.tar.gz |
Added line numbering.
Diffstat (limited to 'private.h')
-rw-r--r-- | private.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -40,8 +40,12 @@ struct mdoc { enum mdoc_sec sec_last; }; + +#define MACRO_PROT_ARGS struct mdoc *mdoc, int tok, int line, \ + int ppos, int *pos, char *buf + struct mdoc_macro { - int (*fp)(struct mdoc *, int, int, int *, char *); + int (*fp)(MACRO_PROT_ARGS); int flags; #define MDOC_CALLABLE (1 << 0) #define MDOC_PARSED (1 << 1) @@ -53,15 +57,12 @@ struct mdoc_macro { extern const struct mdoc_macro *const mdoc_macros; -#define MACRO_PROT_ARGS struct mdoc *mdoc, int tok, \ - int ppos, int *pos, char *buf - __BEGIN_DECLS int mdoc_err(struct mdoc *, int, int, enum mdoc_err); int mdoc_warn(struct mdoc *, int, int, enum mdoc_warn); void mdoc_msg(struct mdoc *, int, const char *, ...); -int mdoc_macro(struct mdoc *, int, int, int *, char *); +int mdoc_macro(MACRO_PROT_ARGS); int mdoc_find(const struct mdoc *, const char *); void mdoc_word_alloc(struct mdoc *, int, const char *); void mdoc_elem_alloc(struct mdoc *, int, int, |