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/print.c

    r408 r426  
    291291    else if( braceType == UT_PAREN ) 
    292292        append1( '(', out ); 
     293#ifdef UR_CONFIG_MARCOS 
     294    else if( braceType == UT_MACRO ) 
     295        append1( '<', out ); 
     296#endif 
    293297 
    294298    if( it != end ) 
     
    322326    else if( braceType == UT_PAREN ) 
    323327        append1( ')', out ); 
     328#ifdef UR_CONFIG_MARCOS 
     329    else if( braceType == UT_MACRO ) 
     330        append1( '>', out ); 
     331#endif 
    324332} 
    325333 
     
    699707        case UT_SELECT: 
    700708        case UT_SETSELECT: 
     709        case UT_LITSELECT: 
    701710        case UT_INT: 
    702711        case UT_DECIMAL: 
     
    817826 
    818827 
     828/* 
     829   Print words only - no ticks or colons. 
     830*/ 
    819831static void _selectToStr( UThread* ut, const UCell* val, UString* out ) 
    820832{ 
     
    928940#endif 
    929941 
     942        case UT_LITSELECT: 
     943            append1('\'', out); 
     944            // Fall through to UT_SELECT... 
     945 
    930946        case UT_SELECT: 
    931947            _selectToStr( ut, val, out ); 
     
    11601176        case UT_CONTEXT: 
    11611177        case UT_PORT: 
     1178#ifdef UR_CONFIG_DATAFLOW 
     1179        case UT_COMPONENT: 
     1180#endif 
    11621181            if( val->id.flags & UR_FLAG_CTX_RECURSION ) 
    11631182            { 
    1164                 append( out, "?context?", 8 ); 
     1183                append( out, "?context?", 9 ); 
    11651184            } 
    11661185            else 
     
    12841303#endif 
    12851304 
     1305#if 0 
     1306#ifdef UR_CONFIG_DATAFLOW 
     1307        case UT_COMPONENT: 
     1308        { 
     1309            UBlock* wblk = ur_blockPtr( val->ctx.wordBlk ); 
     1310            UBlock* vblk = ur_blockPtr( val->ctx.valBlk ); 
     1311            UCell* it  = wblk->ptr.cells + 2; 
     1312            UCell* end = it + wblk->used; 
     1313            UCell* vit = vblk->ptr.cells; 
     1314 
     1315            /* 
     1316            while( it != end ) 
     1317            { 
     1318                ++it; 
     1319                ++vit; 
     1320            } 
     1321            */ 
     1322 
     1323            ur_blockToStr( ut, out, 
     1324                           vblk->ptr.cells + val->series.it, 
     1325                           vblk->ptr.cells + blk->used, 
     1326                           UT_BLOCK, depth ); 
     1327            append( out, " component", 10 ); 
     1328        } 
     1329            break; 
     1330#endif 
     1331#endif 
     1332 
    12861333        default: 
    12871334            if( ur_type(val) < UT_BI_COUNT )