Changeset 157 for trunk/thune/make.c

Show
Ignore:
Timestamp:
05/25/06 15:20:35 (3 years ago)
Author:
krobillard
Message:

Thune - Words can now be created as unbound. Start of support for non-ascii
string encodings.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/make.c

    r152 r157  
    597597 
    598598/** 
    599   Append word!, lit-word!, or set-word! value to block. 
     599  Append word!, lit-word!, set-word!, or get-word! value to block. 
    600600*/ 
    601601UCell* ur_appendWord( UBlock* blk, int type, const char* name, int len ) 
     
    607607    cell->word.wordBlk = 0;     //GLOBAL_WORD_BLKN; 
    608608    cell->word.valBlk  = GLOBAL_VAL_BLKN; 
    609     //cell->word.index   = -1; 
     609    cell->word.index   = UR_UNBOUND; 
    610610    cell->word.atom    = ur_intern( name, len ); 
    611611 
    612     //if( type == UT_SETWORD ) 
     612    if( type != UT_LITWORD ) 
    613613    { 
    614614        // Add word to global context. 
     
    839839                binN = ur_makeBinary( ur_int(tos) ); 
    840840                ur_setType(res, UT_STRING); 
     841                //ur_setEncoding(res, UR_ENC_ASCII); 
    841842                ur_setSeries(res, binN, 0); 
    842843            } 
     
    852853 
    853854                ur_setType(res, UT_STRING); 
     855                //ur_setEncoding(res, UR_ENC_ASCII); 
    854856                ur_setSeries(res, binN, 0); 
    855857            } 
     
    864866 
    865867                ur_setType(res, UT_STRING); 
     868                //ur_setEncoding(res, UR_ENC_ASCII); 
    866869                ur_setSeries(res, binN, 0); 
    867870            }