Example #1
0
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( &currentry->entry, fid );
        currentry = currentry->next;
    }
    return( error );
}
Example #2
0
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( &currentry->entry, handle );
        currentry = currentry->next;
    }
    return( error );
}