/* * chkRead - read checkpoint "file" */ static bool chkRead( void **buff ) { switch( isWhere ) { case ON_DISK: if( TinyRead( fileHandle, *buff, 0x8000 ) == 0x8000 ) { *buff = MK_FP( FP_SEG( *buff ) + 0x800, 0 ); return( true ); } return( false ); #ifndef NOEMS case IN_EMS: return( memBlockRead( EMSBlockRead, buff ) ); #endif #ifndef NOXMS case IN_XMS: return( memBlockRead( XMSBlockRead, buff ) ); #endif } } /* chkRead */
/* * chkRead - read checkpoint "file" */ static bool chkRead( void *buf ) { void **buff = buf; switch( isWhere ) { case ON_DISK: if( TinyRead( fileHandle, *buff, 0x8000 ) == 0x8000 ) { *buff = MK_FP( FP_SEG( *buff ) + 0x800, 0 ); return( TRUE ); } return( FALSE ); #ifndef NOEMS case IN_EMS: return( memBlockRead( EMSBlockRead, buff ) ); #endif #ifndef NOXMS case IN_XMS: return( memBlockRead( XMSBlockRead, buff ) ); #endif } return( FALSE ); // to quiet the compiler } /* chkRead */