summaryrefslogtreecommitdiffstats
path: root/roff.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-03-22 09:48:13 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-03-22 09:48:13 +0000
commitdfaf1a2588304baa4512616714d78b2fb5355b3b (patch)
tree49f095a628dd1f679f66bd441d09ec33ca8dbfb2 /roff.h
parentac3643411d8c7b99be73c692f194ada5c63ff3fa (diff)
downloadmandoc-dfaf1a2588304baa4512616714d78b2fb5355b3b.tar.gz
Step 1 of restructuring: libmandoc.h. Move all compiler-set-specific
stuff into libmandoc.h, including old mdoc.h/man.h/roff.h functions now used by read.c. The motivation behind this is to tighten the relationship between the underlying compilers while keeping parse data hidden from general callers (e.g., main.c). While here, also move register values from mandoc.h into libmandoc.h as noted by schwarze@. See above for explanation.
Diffstat (limited to 'roff.h')
-rw-r--r--roff.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/roff.h b/roff.h
index 95d6d108..e2fa959f 100644
--- a/roff.h
+++ b/roff.h
@@ -17,31 +17,8 @@
#ifndef ROFF_H
#define ROFF_H
-enum rofferr {
- ROFF_CONT, /* continue processing line */
- ROFF_RERUN, /* re-run roff interpreter with offset */
- ROFF_APPEND, /* re-run main parser, appending next line */
- ROFF_REPARSE, /* re-run main parser on the result */
- ROFF_SO, /* include another file */
- ROFF_IGN, /* ignore current line */
- ROFF_TBL, /* a table row was successfully parsed */
- ROFF_EQN, /* an equation was successfully parsed */
- ROFF_ERR /* badness: puke and stop */
-};
-
__BEGIN_DECLS
-struct roff;
-
-void roff_free(struct roff *);
-struct roff *roff_alloc(struct regset *, struct mparse *);
-void roff_reset(struct roff *);
-enum rofferr roff_parseln(struct roff *, int,
- char **, size_t *, int, int *);
-void roff_endparse(struct roff *);
-const struct tbl_span *roff_span(const struct roff *);
-const struct eqn *roff_eqn(const struct roff *);
-
__END_DECLS
#endif /*!ROFF_H*/