Changeset 508
- Timestamp:
- 02/08/08 18:56:30 (8 months ago)
- Location:
- trunk/thune
- Files:
-
- 9 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/gc.c
r502 r508 302 302 case UT_BLOCK: 303 303 case UT_PAREN: 304 case UT_MACRO: 304 305 idx = it->series.n; 305 306 if( ur_isLocal(idx) ) … … 336 337 337 338 idx = it->err.traceBlk; 338 if( idx )339 if( idx > 0 ) 339 340 SET_BIT_BLOCK( idx ) 340 341 break; … … 376 377 SET_BIT_BLOCK_L( it->func.bodyN ) 377 378 idx = it->func.sigN; 378 if( idx )379 if( idx > 0 ) 379 380 SET_BIT_BLOCK( idx ) 380 381 it -= CC_LEN_FUNC; -
trunk/thune/gl/gx_atoms.h
r506 r508 1 1 // This file is automatically generated - do not edit. 2 2 3 #define UR_ATOM_DRAW_LIST_OPCODES 32 64 #define UR_ATOM_WIDTH 32 75 #define UR_ATOM_HEIGHT 32 86 #define UR_ATOM_AREA 32 97 #define UR_ATOM_RECT 3 308 #define UR_ATOM_RASTER 3 319 #define UR_ATOM_TEXTURE 3 3210 #define UR_ATOM_ELEM 33 33 #define UR_ATOM_DRAW_LIST_OPCODES 323 4 #define UR_ATOM_WIDTH 324 5 #define UR_ATOM_HEIGHT 325 6 #define UR_ATOM_AREA 326 7 #define UR_ATOM_RECT 327 8 #define UR_ATOM_RASTER 328 9 #define UR_ATOM_TEXTURE 329 10 #define UR_ATOM_ELEM 330 11 11 #define UR_ATOM_CLOSE 184 12 #define UR_ATOM_FOCUS 33 413 #define UR_ATOM_RESIZE 33 514 #define UR_ATOM_KEY_DOWN 33 615 #define UR_ATOM_KEY_UP 33 716 #define UR_ATOM_MOUSE_MOVE 33 817 #define UR_ATOM_MOUSE_UP 33 918 #define UR_ATOM_MOUSE_DOWN 3 4019 #define UR_ATOM_MOUSE_WHEEL 3 4120 #define UR_ATOM_AMBIENT 3 4221 #define UR_ATOM_DIFFUSE 34 322 #define UR_ATOM_SPECULAR 34 423 #define UR_ATOM_POS 34 524 #define UR_ATOM_SHADER 34 625 #define UR_ATOM_VERTEX 34 726 #define UR_ATOM_FRAGMENT 34 827 #define UR_ATOM_DEFAULT 34 912 #define UR_ATOM_FOCUS 331 13 #define UR_ATOM_RESIZE 332 14 #define UR_ATOM_KEY_DOWN 333 15 #define UR_ATOM_KEY_UP 334 16 #define UR_ATOM_MOUSE_MOVE 335 17 #define UR_ATOM_MOUSE_UP 336 18 #define UR_ATOM_MOUSE_DOWN 337 19 #define UR_ATOM_MOUSE_WHEEL 338 20 #define UR_ATOM_AMBIENT 339 21 #define UR_ATOM_DIFFUSE 340 22 #define UR_ATOM_SPECULAR 341 23 #define UR_ATOM_POS 342 24 #define UR_ATOM_SHADER 343 25 #define UR_ATOM_VERTEX 344 26 #define UR_ATOM_FRAGMENT 345 27 #define UR_ATOM_DEFAULT 346 28 28 #define UR_ATOM_WAIT 135 29 #define UR_ATOM_RGB 3 5030 #define UR_ATOM_RGBA 3 5131 #define UR_ATOM_DEPTH 3 5232 #define UR_ATOM_CLAMP 35 333 #define UR_ATOM_REPEAT 35 434 #define UR_ATOM_NEAREST 35 535 #define UR_ATOM_LINEAR 35 636 #define UR_ATOM_MIN 35 737 #define UR_ATOM_MAG 35 838 #define UR_ATOM_MIPMAP 35 939 #define UR_ATOM_GRAY 3 6040 #define UR_ATOM_RGB 3 5041 #define UR_ATOM_RGBA 3 5129 #define UR_ATOM_RGB 347 30 #define UR_ATOM_RGBA 348 31 #define UR_ATOM_DEPTH 349 32 #define UR_ATOM_CLAMP 350 33 #define UR_ATOM_REPEAT 351 34 #define UR_ATOM_NEAREST 352 35 #define UR_ATOM_LINEAR 353 36 #define UR_ATOM_MIN 354 37 #define UR_ATOM_MAG 355 38 #define UR_ATOM_MIPMAP 356 39 #define UR_ATOM_GRAY 357 40 #define UR_ATOM_RGB 347 41 #define UR_ATOM_RGBA 348 42 42 #define UR_ATOM_ON 267 43 43 #define UR_ATOM_OFF 269 44 44 #define UR_ATOM_ADD 203 45 #define UR_ATOM_BURN 3 6146 #define UR_ATOM_COLOR 3 6247 #define UR_ATOM_TRANS 36 348 #define UR_ATOM_SPRITE 36 449 #define UR_ATOM_ONCE 36 550 #define UR_ATOM_PING_PONG 36 651 #define UR_ATOM_PONG 36 745 #define UR_ATOM_BURN 358 46 #define UR_ATOM_COLOR 359 47 #define UR_ATOM_TRANS 360 48 #define UR_ATOM_SPRITE 361 49 #define UR_ATOM_ONCE 362 50 #define UR_ATOM_PING_PONG 363 51 #define UR_ATOM_PONG 364 -
trunk/thune/make.c
r494 r508 79 79 80 80 #ifdef GC_STRESS_TEST 81 if( ut->flags & UR_ ENV_GC )81 if( ut->flags & UR_THREAD_GC ) 82 82 ur_recycle( ut ); 83 83 #endif … … 90 90 91 91 #ifndef GC_STRESS_TEST 92 if( (ca->used == ca->avail) && (ut->flags & UR_ ENV_GC) )92 if( (ca->used == ca->avail) && (ut->flags & UR_THREAD_GC) ) 93 93 { 94 94 ur_recycle( ut ); … … 121 121 122 122 #ifdef GC_STRESS_TEST 123 if( ut->flags & UR_ ENV_GC )123 if( ut->flags & UR_THREAD_GC ) 124 124 ur_recycle( ut ); 125 125 #endif … … 132 132 133 133 #ifndef GC_STRESS_TEST 134 if( (ca->used == ca->avail) && (ut->flags & UR_ ENV_GC) )134 if( (ca->used == ca->avail) && (ut->flags & UR_THREAD_GC) ) 135 135 { 136 136 ur_recycle( ut ); … … 247 247 248 248 #ifdef GC_STRESS_TEST 249 if( ut->flags & UR_ ENV_GC )249 if( ut->flags & UR_THREAD_GC ) 250 250 ur_recycle( ut ); 251 251 #endif … … 268 268 269 269 #ifndef GC_STRESS_TEST 270 if( (ca->used == ca->avail) && (ut->flags & UR_ ENV_GC) )270 if( (ca->used == ca->avail) && (ut->flags & UR_THREAD_GC) ) 271 271 { 272 272 ur_recycle( ut ); … … 300 300 301 301 #ifdef GC_STRESS_TEST 302 if( ut->flags & UR_ ENV_GC )302 if( ut->flags & UR_THREAD_GC ) 303 303 ur_recycle( ut ); 304 304 #endif … … 312 312 313 313 #ifndef GC_STRESS_TEST 314 if( (ca->used == ca->avail) && (ut->flags & UR_ ENV_GC) )314 if( (ca->used == ca->avail) && (ut->flags & UR_THREAD_GC) ) 315 315 { 316 316 ur_recycle( ut ); -
trunk/thune/print.c
r469 r508 284 284 else if( braceType == UT_PAREN ) 285 285 append1( '(', out ); 286 #ifdef UR_CONFIG_MA RCOS286 #ifdef UR_CONFIG_MACROS 287 287 else if( braceType == UT_MACRO ) 288 append1( '<', out ); 288 { 289 append( out, "^(", 2 ); 290 braceType = UT_PAREN; 291 } 289 292 #endif 290 293 … … 319 322 else if( braceType == UT_PAREN ) 320 323 append1( ')', out ); 321 #ifdef UR_CONFIG_MARCOS322 else if( braceType == UT_MACRO )323 append1( '>', out );324 #endif325 324 } 326 325 … … 1184 1183 break; 1185 1184 1185 case UT_BLOCK: 1186 1186 case UT_PAREN: 1187 case UT_ BLOCK:1187 case UT_MACRO: 1188 1188 if( val->id.flags & UR_FLAG_PRINT_RECURSION ) 1189 1189 { -
trunk/thune/series.c
r488 r508 2307 2307 if( len > 0 ) 2308 2308 { 2309 orig = ur_bin(val); // Re-acquire 2309 2310 memCpy( copy->ptr.b, 2310 2311 orig->ptr.b + (val->series.it * elemSize), -
trunk/thune/thread.c
r499 r508 83 83 84 84 ur_pushContext( ut, (UCell*) &ur_thrGlobal ); 85 86 ut->flags = UR_THREAD_GC; 85 87 } 86 88 return ut; … … 309 311 if( which == (blk->used - 1) ) 310 312 { 311 while( (cell != blk->ptr.cells) && ur_is(cell, UT_UNSET) ) 313 UCell* stop = blk->ptr.cells - 1; 314 do 312 315 --cell; 313 blk->used = cell - blk->ptr.cells;; 316 while( (cell != stop) && ur_is(cell, UT_UNSET) ); 317 blk->used = cell - blk->ptr.cells + 1; 314 318 } 315 319 } -
trunk/thune/tokenize.c
r491 r508 429 429 cell = ur_appendCell( BLOCK, mode ); 430 430 ur_setSeries( cell, STACK[ stack.used ], 0 ); 431 432 431 ++stack.used; 432 433 433 if( sol ) 434 434 { -
trunk/thune/urlan.c
r501 r508 528 528 #endif 529 529 530 env->flags = UR_ENV_ GC | UR_ENV_SECURE;530 env->flags = UR_ENV_SECURE; 531 531 532 532 #if 0 … … 681 681 // Make a fresh thread store. 682 682 683 ut->flags &= ~UR_THREAD_GC; 683 684 ur_threadInitStore( ut, binCount, blkCount ); 684 685 … … 695 696 696 697 ur_makeBinary( 0, 0 ); // 0 - BIN_THREAD_TMP 698 ut->flags |= UR_THREAD_GC; 697 699 } 698 700 -
trunk/thune/urlan.h
r499 r508 421 421 422 422 423 #define UR_ ENV_GC0x01423 #define UR_THREAD_GC 0x01 424 424 #define UR_ENV_SECURE 0x02 425 425
