diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-07 15:04:54 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-07 15:04:54 +0000 |
commit | f8c0611295a680d000a73fd31fe26580fa4b4a75 (patch) | |
tree | e4b7c328bb59fbbd203bdb3ec68d849b0036f345 /term.c | |
parent | 4c444b6d0742002389376d67d51070f1b5aedadf (diff) | |
download | mandoc-f8c0611295a680d000a73fd31fe26580fa4b4a75.tar.gz |
Re-constitution of `ds' symbol processing. First, push the
roff_getstr() family of functions into roff.c with the "first_string"
directly in struct roff. Second, pre-process each line for reserved
words in libroff, splicing and re-running a line if it has one (this
allows defined symbols to be macros). Remove term.c's invocation of the
roff_getstrn() function. Removed function documentation in roff.3 and
added roff.7 `ds' documentation.
Diffstat (limited to 'term.c')
-rw-r--r-- | term.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -31,7 +31,6 @@ #include "mandoc.h" #include "chars.h" #include "out.h" -#include "regs.h" #include "term.h" #include "main.h" @@ -379,11 +378,6 @@ res(struct termp *p, const char *word, size_t len) size_t sz; rhs = chars_a2res(p->symtab, word, len, &sz); - if (NULL == rhs) { - rhs = roff_getstrn(word, len); - if (rhs) - sz = strlen(rhs); - } if (rhs) encode(p, rhs, sz); } |