Changeset 387 for branches/thune/thread_safe/console.c
- Timestamp:
- 05/17/07 16:25:27 (18 months ago)
- Files:
-
- 1 modified
-
branches/thune/thread_safe/console.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/thune/thread_safe/console.c
r369 r387 21 21 #include <assert.h> 22 22 #include <stdio.h> 23 #include " urlan.h"23 #include "env.h" 24 24 25 25 … … 40 40 #else 41 41 42 #define APPNAME " Thune"42 #define APPNAME "Bloc3" 43 43 #define CUSTOM_DT 0 44 44 #define CUSTOM_DT_COUNT 0 … … 77 77 78 78 79 static void reportError( UThread* th)79 static void reportError( UThread* ut ) 80 80 { 81 81 UString* str; 82 82 #if 0 83 83 UCell* val; 84 val = ur_result( th, 0 );84 val = ur_result( ut, 0 ); 85 85 str = ur_binPtr( val->err.strN ); 86 86 … … 89 89 str->ptr.c ); 90 90 #else 91 str = ur_ binPtr( th->callTempBinN);91 str = ur_threadTmp( ut ); 92 92 str->used = 0; 93 ur_toStr( ur_result( th, 0), str, 0 );93 ur_toStr( ur_result(ut, 0), str, 0 ); 94 94 ur_termCStr( str ); 95 95 printf( str->ptr.c ); 96 96 #endif 97 97 98 //ur_threadReset( th);98 //ur_threadReset( ut ); 99 99 } 100 100 … … 132 132 } 133 133 #endif 134 135 ur_freezeEnv( env.threads, 128, 256 ); 134 136 135 137 if( argc > 1 ) … … 255 257 256 258 ur_arrayInit( &str, 1, 0 ); 257 ur_toStr (val, &str, 0 );259 ur_toStrT( env.threads, val, &str, 0 ); 258 260 if( str.ptr.c ) 259 261 {
