Changeset 427 for branches/thune/thread_safe/urlan.c
- Timestamp:
- 07/07/07 04:41:31 (17 months ago)
- Files:
-
- 1 modified
-
branches/thune/thread_safe/urlan.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/thune/thread_safe/urlan.c
r426 r427 40 40 The global context is fixed so it can be shared by all UrlanEnv instances. 41 41 */ 42 UCellContext ur_ global =42 UCellContext ur_thrGlobal = 43 43 { 44 44 UT_CONTEXT, 0, 0, … … 209 209 dtBlk = ur_blockPtr( blkN ); 210 210 211 i = ur_internWord( (UCell*) &ur_ global, ur_intern( "datatypes", 9 ) );211 i = ur_internWord( (UCell*) &ur_thrGlobal, ur_intern( "datatypes", 9 ) ); 212 212 cell = vblk->ptr.cells + i; 213 213 ur_initBlock( cell, blkN, 0 ); … … 222 222 223 223 /* Add 'none */ 224 i = ur_internWord( (UCell*) &ur_ global, ur_intern( "none", 4 ) );224 i = ur_internWord( (UCell*) &ur_thrGlobal, ur_intern( "none", 4 ) ); 225 225 cell = vblk->ptr.cells + i; 226 226 ur_initType( cell, UT_NONE ); … … 502 502 //ur_makeBlock( 0 ); // 4 - BLK_DSTACK 503 503 504 ur_pushContext( ut, (UCell*) &ur_ global );504 ur_pushContext( ut, (UCell*) &ur_thrGlobal ); 505 505 506 506 { … … 530 530 ur_evalCStr( _bootScript, sizeof(_bootScript) ); 531 531 #else 532 n = ur_tokenize( ut, _bootScript, 533 _bootScript + sizeof(_bootScript), 0 ); 532 n = ur_tokenize( ut, _bootScript, _bootScript + sizeof(_bootScript) ); 534 533 if( ! n ) 535 534 return UR_EVAL_ERROR; 536 ur_bind( n, (UCell*) &ur_ global );535 ur_bind( n, (UCell*) &ur_thrGlobal ); 537 536 n = ur_eval( ut, n, 0 ); 538 537 if( n != UR_EVAL_OK ) … … 674 673 //ur_makeBlock( 1024 ); // 4 - BLK_DSTACK 675 674 676 ur_pushContext( ut, (UCell*) &ur_ global );675 ur_pushContext( ut, (UCell*) &ur_thrGlobal ); 677 676 678 677 ur_makeBinary( 0 ); // 0 - BIN_THREAD_TMP … … 855 854 UCell* val; 856 855 857 val = (UCell*) &ur_ global;856 val = (UCell*) &ur_thrGlobal; 858 857 wrd = ur_lookup( val, firstAtom ); 859 858 if( wrd < 0 )
