aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tbl_parse.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-12-14 06:33:14 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-12-14 06:33:14 +0000
commit4c2762423e7dcaf40f505c9000f23b6f18a484e5 (patch)
tree506be8e4f33431f64d95bfecad57d08f20be9dba /tbl_parse.h
parent7a6eb8920bdea2ecc151b308352b2a98699b2350 (diff)
downloadmandoc-4c2762423e7dcaf40f505c9000f23b6f18a484e5.tar.gz
mandoc-4c2762423e7dcaf40f505c9000f23b6f18a484e5.tar.zst
mandoc-4c2762423e7dcaf40f505c9000f23b6f18a484e5.zip
Cleanup, no functional change:
Now that message handling is properly encapsulated, remove struct mparse pointers from four structs (roff, roff_man, tbl_node, eqn_node) and from the argument lists of five functions (roff_alloc, roff_man_alloc, mandoc_getarg, tbl_alloc, eqn_alloc). Except for being passed to the main program as an opaque object, it now only occurs in read.c, as it should, and not across 15 files like in the past.
Diffstat (limited to 'tbl_parse.h')
-rw-r--r--tbl_parse.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/tbl_parse.h b/tbl_parse.h
index b2fc8523..bb65536f 100644
--- a/tbl_parse.h
+++ b/tbl_parse.h
@@ -1,4 +1,4 @@
-/* $Id: tbl_parse.h,v 1.1 2018/12/13 02:06:07 schwarze Exp $ */
+/* $Id: tbl_parse.h,v 1.2 2018/12/14 06:33:14 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -19,11 +19,10 @@
* For use in the roff(7) and tbl(7) parsers only.
*/
-struct mparse;
struct tbl_node;
struct tbl_span;
-struct tbl_node *tbl_alloc(int, int, struct mparse *, struct tbl_node *);
+struct tbl_node *tbl_alloc(int, int, struct tbl_node *);
int tbl_end(struct tbl_node *, int);
void tbl_free(struct tbl_node *);
void tbl_read(struct tbl_node *, int, const char *, int);