* mdocml: Get rid of an "#if 0" that I don't anticipate being fixed ever
@ 2011-05-15 2:47 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-05-15 2:47 UTC (permalink / raw)
To: source
Log Message:
-----------
Get rid of an "#if 0" that I don't anticipate being fixed ever (nor does
it really need to be fixed, anyway).
Modified Files:
--------------
mdocml:
makewhatis.c
Revision Data
-------------
Index: makewhatis.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/makewhatis.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -Lmakewhatis.c -Lmakewhatis.c -u -p -r1.1 -r1.2
--- makewhatis.c
+++ makewhatis.c
@@ -468,48 +468,6 @@ dbt_appendb(DBT *key, size_t *ksz, const
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;
}
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-15 2:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-15 2:47 mdocml: Get rid of an "#if 0" that I don't anticipate being fixed ever kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).