From 3f648213cd789e9c307f834875f09da5e1d86ab1 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 17 Sep 2009 07:41:28 +0000 Subject: ascii_xxx -> chars_xxx (intended to hold more than just ascii encoding). More html work. --- term.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'term.c') 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 * @@ -20,6 +20,7 @@ #include #include +#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 -- cgit v1.2.3