Changeset 152 for trunk/thune/context.c

Show
Ignore:
Timestamp:
05/14/06 02:10:45 (3 years ago)
Author:
krobillard
Message:

Thune -
'do now dispatches function!, call!, & code!
'as handles all word types.
'index? returns atom if TOS is a word.
Started implementing 'foreach.
true & false are now infused.
Fixed unitialized word.wordBlk and leak in ur_tokenize().

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/context.c

    r129 r152  
    168168 
    169169    ur_setType( it, UT_WORD ); 
    170     //it->word.wordBlk = ctx->ctx.wordBlk; 
     170    it->word.wordBlk = 0;       //ctx->ctx.wordBlk; 
    171171    it->word.valBlk  = ctx->ctx.valBlk; 
    172172    it->word.index   = wrdN; 
     
    495495    while( it != end ) 
    496496    { 
    497         if( ur_is(it, UT_WORD) || 
    498             ur_is(it, UT_SETWORD) || 
    499             ur_is(it, UT_GETWORD) || 
    500             ur_is(it, UT_LITWORD) || 
    501             ur_is(it, UT_OPCODE) ) 
     497        if( ur_isAWord(it) || ur_is(it, UT_OPCODE) || ur_is(it, UT_SELECTOR) ) 
    502498        { 
    503499            _bindWord( it ); 
     
    506502        { 
    507503            UCell* path1 = ur_blockPtr( it->series.n )->ptr.cells; 
    508             if( ur_is(path1, UT_WORD) || 
    509                 ur_is(path1, UT_SETWORD) || 
    510                 ur_is(path1, UT_GETWORD) ) 
     504            if( ur_isAWord(path1) ) 
    511505            { 
    512506                _bindWord( path1 );