diff options
Diffstat (limited to 'makewhatis.c')
-rw-r--r-- | makewhatis.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/makewhatis.c b/makewhatis.c index 3ff8118e..8d23635a 100644 --- a/makewhatis.c +++ b/makewhatis.c @@ -468,48 +468,6 @@ dbt_appendb(DBT *key, size_t *ksz, const void *cp, size_t sz) key->data = mandoc_realloc(key->data, *ksz); } -#if 0 - dstp = key->data + (int)key->size; - - while (NULL != (endp = memchr(cp, '\\', sz))) { - ssz = endp - cp; - memcpy(dstp, cp, ssz); - - dstp += ssz; - key->size += ssz; - sz -= ssz; - - cp = endp++; - /* FIXME: expects nil-terminated string! */ - esc = mandoc_escape((const char **)&endp, NULL, NULL); - - switch (esc) { - case (ESCAPE_ERROR): - /* Nil-terminate this point. */ - memcpy(dstp, "", 1); - key->size++; - return; - case (ESCAPE_PREDEF): - /* FALLTHROUGH */ - case (ESCAPE_SPECIAL): - break; - default: - sz -= endp - cp; - cp = endp; - continue; - } - - ssz = endp - cp; - memcpy(dstp, cp, ssz); - - dstp += ssz; - key->size += ssz; - sz -= ssz; - - cp = endp; - } -#endif - memcpy(key->data + (int)key->size, cp, sz); key->size += sz; } |