Made compilable with ANSI C compiler

This commit is contained in:
ceriel
1990-11-06 13:02:55 +00:00
parent 87a8061e1c
commit f192338596
15 changed files with 69 additions and 20 deletions

View File

@@ -24,6 +24,10 @@ extern _trp();
#define assert(x) /* nothing */
#ifndef EM_WSIZE
#define EM_WSIZE _EM_WSIZE
#endif
struct descr {
int low;
int diff;
@@ -39,9 +43,10 @@ _unp(ad,zd,i,ap,zp) int i; struct descr *ad,*zd; char *ap,*zp; {
ap += (i * ad->size);
i = (zd->diff + 1) * zd->size;
if (zd->size == 1) {
int *aptmp = (int *) ap;
assert(ad->size == EM_WSIZE);
while (--i >= 0)
*((int *)ap)++ = *zp++;
*aptmp++ = *zp++;
} else {
assert(ad->size == zd->size);
while (--i >= 0)