summaryrefslogtreecommitdiffstatshomepage
path: root/term.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-02-21 21:00:06 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-02-21 21:00:06 +0000
commit9275a05a090b366b47ed479d15472e058b8d8318 (patch)
tree3ee741683a39572e6e73698ebeb3cb303cd2edae /term.h
parente4966b859ee26adbd25172e1e2e7d266feb6d36c (diff)
downloadmandoc-9275a05a090b366b47ed479d15472e058b8d8318.tar.gz
mandoc-9275a05a090b366b47ed479d15472e058b8d8318.tar.zst
mandoc-9275a05a090b366b47ed479d15472e058b8d8318.zip
Split mdocml -> mdocterm, mdoctree (new manuals, etc.).
Escape-recognition term.c.
Diffstat (limited to 'term.h')
-rw-r--r--term.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/term.h b/term.h
index 3bf16d7a..48f0be28 100644
--- a/term.h
+++ b/term.h
@@ -1,4 +1,4 @@
-/* $Id: term.h,v 1.1 2009/02/21 19:05:28 kristaps Exp $ */
+/* $Id: term.h,v 1.2 2009/02/21 21:00:06 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -42,15 +42,20 @@ struct termact {
int (*pre)(struct termp *,
const struct mdoc_meta *,
const struct mdoc_node *);
- int (*post)(struct termp *,
+ void (*post)(struct termp *,
const struct mdoc_meta *,
const struct mdoc_node *);
};
+void termprint(const struct mdoc_node *,
+ const struct mdoc_meta *);
+
void newln(struct termp *);
void vspace(struct termp *);
void word(struct termp *, const char *);
void flushln(struct termp *);
+void transcode(struct termp *,
+ const char *, size_t);
const struct termact *termacts;