summaryrefslogtreecommitdiffstatshomepage
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-09-17 07:41:28 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-09-17 07:41:28 +0000
commit3f648213cd789e9c307f834875f09da5e1d86ab1 (patch)
treeaa52ea85d2cdaabca340865f79a922ab1a8c21e9 /term.c
parent6f8fe1982a3b763cad6bc6f48f3dc1c2f19281d9 (diff)
downloadmandoc-3f648213cd789e9c307f834875f09da5e1d86ab1.tar.gz
mandoc-3f648213cd789e9c307f834875f09da5e1d86ab1.tar.zst
mandoc-3f648213cd789e9c307f834875f09da5e1d86ab1.zip
ascii_xxx -> chars_xxx (intended to hold more than just ascii encoding).
More html work.
Diffstat (limited to 'term.c')
-rw-r--r--term.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/term.c b/term.c
index 6bfd373d..d3c37f70 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.100 2009/09/16 15:08:31 kristaps Exp $ */
+/* $Id: term.c,v 1.101 2009/09/17 07:41:28 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <string.h>
+#include "chars.h"
#include "term.h"
#include "man.h"
#include "mdoc.h"
@@ -56,7 +57,7 @@ terminal_man(void *arg, const struct man *man)
p = (struct termp *)arg;
if (NULL == p->symtab)
- p->symtab = term_ascii2htab();
+ p->symtab = chars_init(CHARS_ASCII);
man_run(p, man);
}
@@ -69,7 +70,7 @@ terminal_mdoc(void *arg, const struct mdoc *mdoc)
p = (struct termp *)arg;
if (NULL == p->symtab)
- p->symtab = term_ascii2htab();
+ p->symtab = chars_init(CHARS_ASCII);
mdoc_run(p, mdoc);
}
@@ -90,7 +91,7 @@ term_free(struct termp *p)
if (p->buf)
free(p->buf);
if (TERMENC_ASCII == p->enc && p->symtab)
- term_asciifree(p->symtab);
+ chars_free(p->symtab);
free(p);
}
@@ -331,7 +332,7 @@ do_special(struct termp *p, const char *word, size_t len)
size_t sz;
int i;
- rhs = term_a2ascii(p->symtab, word, len, &sz);
+ rhs = chars_a2ascii(p->symtab, word, len, &sz);
if (NULL == rhs) {
#if 0
@@ -354,7 +355,7 @@ do_reserved(struct termp *p, const char *word, size_t len)
size_t sz;
int i;
- rhs = term_a2res(p->symtab, word, len, &sz);
+ rhs = chars_a2res(p->symtab, word, len, &sz);
if (NULL == rhs) {
#if 0