summaryrefslogtreecommitdiffstats
path: root/term.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-05-17 14:38:34 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-05-17 14:38:34 +0000
commitae85c53a20e295bcb9eecc8a2d24955c35392839 (patch)
tree7d3d87904670286bd0a6abf5b99ccafe1e05cbfa /term.h
parent7585ce47e0934f9b0eabd76bf7000d02950e6e1c (diff)
downloadmandoc-ae85c53a20e295bcb9eecc8a2d24955c35392839.tar.gz
Add mode for -Tlocale. This mode, with this commit, behaves exactly
like -Tascii. While adding this, inline term_alloc() (was a one-liner), remove some switches around the terminal encoding for the symbol table (unnecessary), and split out ascii_alloc() into ascii_init(), which is also called from locale_init().
Diffstat (limited to 'term.h')
-rw-r--r--term.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/term.h b/term.h
index 5bdcd3ba..252b0a2a 100644
--- a/term.h
+++ b/term.h
@@ -22,7 +22,8 @@ __BEGIN_DECLS
struct termp;
enum termenc {
- TERMENC_ASCII
+ TERMENC_ASCII,
+ TERMENC_LOCALE
};
enum termtype {
@@ -94,7 +95,6 @@ struct termp {
struct termp_ps *ps;
};
-struct termp *term_alloc(enum termenc);
void term_tbl(struct termp *, const struct tbl_span *);
void term_free(struct termp *);
void term_newln(struct termp *);