summaryrefslogtreecommitdiffstats
path: root/main.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-25 11:44:31 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-25 11:44:31 +0000
commit293f60fc4c5da55d6d60cd5efae8fc3db6d1b964 (patch)
tree35e6ec4d552e8b3f820c3b7af4f92c40368ed8c5 /main.h
parent51184530e5f6227337cd723f15e86a6c926f7286 (diff)
downloadmandoc-293f60fc4c5da55d6d60cd5efae8fc3db6d1b964.tar.gz
Initial PDF shim over PS. This produces working PDF output with -Tpdf.
It's currently missing the xref table, so you'll get a warning in most PDF viewers). It also produces lots of redundant output, which will go away once I get a better handle on the PDF spec. The code doesn't really touch any existing functionality; it's a bunch of conditionals atop the -Tps (term_ps.c) implementation. I'm checking it in now to have it exist and be auditable. It needs clean-up, polish, and general care (and xref!).
Diffstat (limited to 'main.h')
-rw-r--r--main.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.h b/main.h
index 9d51ab15..6024b313 100644
--- a/main.h
+++ b/main.h
@@ -44,8 +44,9 @@ void tree_man(void *, const struct man *);
void *ascii_alloc(char *);
void ascii_free(void *);
+void *pdf_alloc(char *);
void *ps_alloc(char *);
-void ps_free(void *);
+void pspdf_free(void *);
void terminal_mdoc(void *, const struct mdoc *);
void terminal_man(void *, const struct man *);