diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-09 17:09:12 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-09 17:09:12 +0000 |
commit | e7ff9604055db4b313427625036e15953beaaebc (patch) | |
tree | 09f5427972b1b8933cc9cb76e2da40aedcd5dd5d /private.h | |
parent | d11be70aced0438a57958154b9abf75c30743b39 (diff) | |
download | mandoc-e7ff9604055db4b313427625036e15953beaaebc.tar.gz |
Considerable clean-ups.
Diffstat (limited to 'private.h')
-rw-r--r-- | private.h | 24 |
1 files changed, 23 insertions, 1 deletions
@@ -22,6 +22,8 @@ #include <stdio.h> #include <time.h> +#include "libmdocml.h" + struct md_rbuf { int fd; /* Open descriptor. */ char *name; /* Name of file. */ @@ -269,6 +271,18 @@ enum roffmsec { ROFF_MSEC_MAX }; +enum roffatt { + ROFF_ATT_V1, + ROFF_ATT_V2, + ROFF_ATT_V3, + ROFF_ATT_V6, + ROFF_ATT_V7, + ROFF_ATT_32V, + ROFF_ATT_V_1, + ROFF_ATT_V_4, + ROFF_ATT_MAX +}; + #define ROFFSec_NMASK (0x07) #define ROFFSec_NAME (1 << 0) @@ -289,7 +303,7 @@ enum roffmsec { #define ROFFSec_OTHER (1 << 15) struct roffcb { - void (*roffmsg)(void *, enum roffmsg, + int (*roffmsg)(void *, enum roffmsg, const char *, const char *, const char *); int (*roffhead)(void *, const struct tm *, const char *, const char *, enum roffmsec, const char *); @@ -336,6 +350,14 @@ int roff_free(struct rofftree *, int); int rofftok_scan(const char *, int *); +char *roff_literal(int, const int *, + const char **, const char **); +char *roff_fmtstring(int); +char *roff_msecname(enum roffmsec); +enum roffmsec roff_msec(const char *); +int roff_sec(const char **); +enum roffatt roff_att(const char *); + __END_DECLS #endif /*!PRIVATE_H*/ |