Made compilable with ANSI C compiler
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user