static bool writeAccelTableEntries( FullAccelTableOS2 *acctable, WResFileID fid, uint_32 codepage ) /*******************************************************************/ { FullAccelEntryOS2 *currentry; bool error; error = ResWriteUint16( SemOS2CountAccelTableEntries( acctable ), fid ); if( !error ) { error = ResWriteUint16( codepage, fid ); } currentry = acctable->head; while( currentry != NULL && !error ) { ResOS2WriteAccelEntry( ¤try->entry, fid ); currentry = currentry->next; } return( error ); }
static int writeAccelTableEntries( FullAccelTableOS2 *acctable, WResFileID handle, uint_32 codepage ) /**********************************************************************/ { FullAccelEntryOS2 *currentry; int error; uint_16 tmp; tmp = SemOS2CountAccelTableEntries( acctable ); error = ResWriteUint16( &tmp, handle ); if( !error ) { tmp = codepage; error = ResWriteUint16( &tmp, handle ); } currentry = acctable->head; while( currentry != NULL && !error ) { ResOS2WriteAccelEntry( ¤try->entry, handle ); currentry = currentry->next; } return( error ); }