aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/term.c
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
commit0587ad80d46d89f36315c37bbd67cf8899708b8d (patch)
treef6e1521213cb40a637bdb175e43f121249534ba3 /term.c
parent79f16537cd09bc054f9d18169708d63030803d98 (diff)
downloadmandoc-0587ad80d46d89f36315c37bbd67cf8899708b8d.tar.gz
mandoc-0587ad80d46d89f36315c37bbd67cf8899708b8d.tar.zst
mandoc-0587ad80d46d89f36315c37bbd67cf8899708b8d.zip
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.c')
-rw-r--r--term.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/term.c b/term.c
index bfedefb0..922385ae 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.192 2011/05/17 11:55:08 kristaps Exp $ */
+/* $Id: term.c,v 1.193 2011/05/17 14:38:34 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -69,18 +69,6 @@ term_end(struct termp *p)
(*p->end)(p);
}
-
-struct termp *
-term_alloc(enum termenc enc)
-{
- struct termp *p;
-
- p = mandoc_calloc(1, sizeof(struct termp));
- p->enc = enc;
- return(p);
-}
-
-
/*
* Flush a line of text. A "line" is loosely defined as being something
* that should be followed by a newline, regardless of whether it's