=================================================================== RCS file: /cvs/mandoc/term.c,v retrieving revision 1.159 retrieving revision 1.161 diff -u -p -r1.159 -r1.161 --- mandoc/term.c 2010/07/04 22:04:04 1.159 +++ mandoc/term.c 2010/07/16 22:33:30 1.161 @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.159 2010/07/04 22:04:04 schwarze Exp $ */ +/* $Id: term.c,v 1.161 2010/07/16 22:33:30 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * Copyright (c) 2010 Ingo Schwarze @@ -31,7 +31,6 @@ #include "mandoc.h" #include "chars.h" #include "out.h" -#include "regs.h" #include "term.h" #include "main.h" @@ -366,7 +365,7 @@ spec(struct termp *p, const char *word, size_t len) const char *rhs; size_t sz; - rhs = chars_a2ascii(p->symtab, word, len, &sz); + rhs = chars_spec2str(p->symtab, word, len, &sz); if (rhs) encode(p, rhs, sz); } @@ -378,12 +377,7 @@ res(struct termp *p, const char *word, size_t len) const char *rhs; size_t sz; - rhs = chars_a2res(p->symtab, word, len, &sz); - if (NULL == rhs) { - rhs = roff_getstrn(word, len); - if (rhs) - sz = strlen(rhs); - } + rhs = chars_res2str(p->symtab, word, len, &sz); if (rhs) encode(p, rhs, sz); }