aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit8cafe46e0f7a316bcadbe50fbce61bdc8c06890d (patch)
tree6c67730b915e6daedf79462d2aae904483222842 /roff.h
parentac63529a8b2476460e44dd3856a710c41b10322b (diff)
downloadmandoc-8cafe46e0f7a316bcadbe50fbce61bdc8c06890d.tar.gz
mandoc-8cafe46e0f7a316bcadbe50fbce61bdc8c06890d.tar.zst
mandoc-8cafe46e0f7a316bcadbe50fbce61bdc8c06890d.zip
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.h25
1 files changed, 1 insertions, 24 deletions
diff --git a/roff.h b/roff.h
index 019b80e4..171033f8 100644
--- a/roff.h
+++ b/roff.h
@@ -1,4 +1,4 @@
-/* $Id: roff.h,v 1.25 2011/03/20 16:02:05 kristaps Exp $ */
+/* $Id: roff.h,v 1.26 2011/03/22 09:48:13 kristaps Exp $ */
/*
* Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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*/