Show
Ignore:
Timestamp:
07/05/07 04:03:51 (17 months ago)
Author:
krobillard
Message:

Added component! & lit-select! datatypes.
ur_makeBlockT() now has a ptr return argument.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/thune/thread_safe/make.c

    r417 r426  
    111111  Size is the number of cells to reserve.  Used is set to 0. 
    112112*/ 
    113 UIndex ur_makeBlockT( UThread* ut, int size ) 
     113UIndex ur_makeBlockT( UThread* ut, int size, UBlock** blkPtr ) 
    114114{ 
    115115    UBlock* ptr; 
     
    144144 
    145145    ur_arrayInit( ptr, sizeof(UCell), size ); 
     146    if( blkPtr ) 
     147        *blkPtr = ptr; 
    146148    return ur_blockN( ptr ); 
    147149} 
     
    13421344 
    13431345/*--------------------------------------------------------------------------*/ 
     1346 
     1347 
     1348#ifdef UR_CONFG_DATAFLOW 
     1349extern void ur_cloneComponent( UThread*, UCell* result, UCell* proto ); 
     1350#endif 
    13441351 
    13451352 
     
    18691876#endif 
    18701877 
     1878#ifdef UR_CONFG_DATAFLOW 
     1879        case UT_COMPONENT: 
     1880            if( ! ur_is(tos, UT_COMPONENT) ) 
     1881                goto error; 
     1882            ur_cloneComponent( ut, res, tos ); 
     1883            break; 
     1884#endif 
    18711885        default: 
    18721886            if( ur_datatype(res) < UT_BI_COUNT )