home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_100
/
132_01
/
pass2.c
< prev
next >
Wrap
Text File
|
1985-08-21
|
512b
|
23 lines
/*
pass 2 writes out those objects in the page list flagged
for WRITE and clears all flags except the BLANKED flag.
*/
pass2(mscan,pgscan,pscrn)
int *mscan,*pgscan,*pscrn;
{
int pgflag;
while(pgscan[FORWARD] !=NULL) {
pgflag=pgscan[FLAGS];
if(WRITE&pgflag) {
writeobj(pscrn,NBYTES,pgscan[X],pgscan[Y],pgscan[OBJPTR]);
}
pgscan[FLAGS]=pgflag&BLANKED;
pgscan=pgscan[FORWARD];
}
}
FORWARD];
}
}
continue;
if(!(WRITE&pgscan1[FLAGS])) { /* no write */
if(overlap(pg