signed char ioman_releaseSector(IOManager *ioman,unsigned char* buf) { unsigned short bp; bp=ioman_getBp(ioman,buf); ioman_decUseCnt(ioman,bp); if(ioman_getUseCnt(ioman,bp)==0 && ioman->itptr[bp]!=0){ if(ioman_isWritable(bp)){ ioman_flushSector(ioman,bp); } ioman_pop(ioman,bp); ioman_putSectorInCache(ioman,ioman->sector[bp],bp); } return(0); }
esint8 ioman_releaseSector(IOManager *ioman,euint8* buf) { euint16 bp; bp=ioman_getBp(ioman,buf); ioman_decUseCnt(ioman,bp); if(ioman_getUseCnt(ioman,bp)==0 && ioman->itptr[bp]!=0){ if(ioman_isWritable(bp)){ ioman_flushSector(ioman,bp); } ioman_pop(ioman,bp); ioman_putSectorInCache(ioman,ioman->sector[bp],bp); } return(0); }