Changeset 499 for trunk/thune/thune.c

Show
Ignore:
Timestamp:
12/05/07 03:12:00 (12 months ago)
Author:
krobillard
Message:

Added ur_threadDestroy(). Removed ur_threadFree() from public API.
c_string.t should now handle all quotes properly.
Minor fix in GL boot
Documented stack.level.
Increased OpenAL music buffer size and now handle alutInit() failure.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/thune.c

    r498 r499  
    172172    UThread* ut = (UThread*) arg; 
    173173    ur_eval( ut, ut->tos[1].series.n, 0 ); 
    174     ur_threadFree( ut ); 
     174    ur_threadDestroy( ut ); 
    175175    return 0; 
    176176} 
     
    203203UR_CALL( uc_thread ) 
    204204{ 
    205     if( ur_is(tos, UT_BLOCK) || ur_is(tos, UT_STRING) ) 
     205    if( /*ur_is(tos, UT_BLOCK) ||*/ ur_is(tos, UT_STRING) ) 
    206206    { 
    207207        UThread* thr = ur_threadMake( ut->env, 64, 128 ); 
     
    217217                char* cpA; 
    218218                char* cpB; 
    219                 ur_seriesMem( ut, tos, &cpA, &cpB ); 
    220                 thr->tos[1].series.n = ur_tokenize( thr, cpA, cpB ); 
     219                UIndex blkN; 
     220 
     221                ur_binaryMem( ut, tos, &cpA, &cpB ); 
     222                blkN = ur_tokenize( thr, cpA, cpB ); 
     223                if( ! blkN ) 
     224                    return; 
     225                ur_infuseOpcodes( thr, blkN ); 
     226                thr->tos[1].series.n = blkN; 
    221227            } 
    222228 
     
    232238            } 
    233239 
    234 #if 1 
     240#if 0 
    235241            { 
    236242            void* status;