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 | 764912ffd1d25c58186eba0c2f70ff0de3d08a7b (patch) | |
tree | bca4c3661a4f3d86a317eeb6a08f1729b87002c2 /private.h | |
parent | 9dd355694618bcd06487072ef69080b1afa3dead (diff) | |
download | mandoc-764912ffd1d25c58186eba0c2f70ff0de3d08a7b.tar.gz mandoc-764912ffd1d25c58186eba0c2f70ff0de3d08a7b.tar.zst mandoc-764912ffd1d25c58186eba0c2f70ff0de3d08a7b.zip |
Added line numbering.
Diffstat (limited to 'private.h')
-rw-r--r-- | private.h | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1,4 +1,4 @@ -/* $Id: private.h,v 1.57 2009/01/07 15:53:00 kristaps Exp $ */ +/* $Id: private.h,v 1.58 2009/01/07 15:57:14 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se> * @@ -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, |