Changeset 164 for trunk/thune/make.c

Show
Ignore:
Timestamp:
06/03/06 19:42:11 (3 years ago)
Author:
krobillard
Message:

Thune -

Added ur_setDatatypeBit() and ur_clrDatatypeBit().
Added 'lift-local and _scanControlStack().
'copy now handles context!.
Renamed ur_copy() as ur_clone().
ur_clone() now holds root block when deep copying.
Removed unused context code.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/make.c

    r162 r164  
    637637    cell->word.wordBlk = 0;     //GLOBAL_WORD_BLKN; 
    638638    cell->word.valBlk  = GLOBAL_VAL_BLKN; 
    639     cell->word.index   = UR_UNBOUND; 
    640639    cell->word.atom    = ur_intern( name, len ); 
    641640 
     
    644643        // Add word to global context. 
    645644        cell->word.index = ur_internWord( &ur_global, cell->word.atom ); 
     645    } 
     646    else 
     647    { 
     648        cell->word.index = UR_UNBOUND; 
    646649    } 
    647650 
     
    816819                    ur_setSeries(res, blkN, 0); 
    817820                } 
     821            } 
     822            else if( ur_isABlock(tos) ) 
     823            { 
     824                ur_copyCell( res, *tos ); 
     825                ur_clone( res, UR_COPY_ALL, 1 ); 
    818826            } 
    819827            break; 
     
    912920                return; 
    913921            } 
    914             //else if( ur_is(res, UT_CONTEXT) ) 
    915             //{ 
    916             //} 
     922            else if( ur_is(res, UT_CONTEXT) ) 
     923            { 
     924                ur_copyCell( res, *tos ); 
     925                ur_clone( res, UR_COPY_ALL, 1 ); 
     926            } 
    917927            break; 
    918928