db->unit = unit;
db->hdrlen = hdrlen;
db->mru = mru;
-#ifndef DEBUG
+#if !DEBUG
if (debug)
#endif
- db->debug = 1;
+ db->debug = 1;
bsd_reset(db);
m_freem(mret);
if (db->debug) {
printf("bsd_decomp%d: ran out of mru\n", db->unit);
-#ifdef DEBUG
+#if DEBUG
while ((cmp = cmp->m_next) != NULL)
len += cmp->m_len;
printf(" len=%d, finchar=0x%x, codelen=%d, explen=%d\n",
p = (wptr += codelen);
while (finchar > LAST) {
dictp = &db->dict[db->dict[finchar].cptr];
-#ifdef DEBUG
+#if DEBUG
if (--codelen <= 0 || dictp->codem1 != finchar-1)
goto bad;
#endif
}
*--p = finchar;
-#ifdef DEBUG
+#if DEBUG
if (--codelen != 0)
printf("bsd_decomp%d: short by %d after code 0x%x, max_ent=0x%x\n",
db->unit, codelen, incode, max_ent);
*dmpp = mret;
return DECOMP_OK;
-#ifdef DEBUG
+#if DEBUG
bad:
if (codelen <= 0) {
printf("bsd_decomp%d: fell off end of chain ", db->unit);