Changeset 26 for trunk/orca/ovalue.c
- Timestamp:
- 02/07/06 00:52:42 (3 years ago)
- Files:
-
- 1 modified
-
trunk/orca/ovalue.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/orca/ovalue.c
r25 r26 101 101 102 102 extern OBlock* orTokenize( const char*, const char* ); 103 extern const char* orAtomCString( OAtom ); 103 104 104 105 extern void orBindNative( OValue* ); … … 336 337 orInitAGC( &env->freeIntArr ); 337 338 #endif 339 340 orMakeString( 2048 ); // BIN_ATOM_NAMES 338 341 339 342 makeGlobalContext(); … … 1366 1369 if( val->type == OT_UNSET ) 1367 1370 { 1368 OString* str = orAtomString( a1->word.atom ); 1369 orError( "%s has no value", str->charArray ); 1371 orError( "%s has no value", orAtomCString( a1->word.atom ) ); 1370 1372 } 1371 1373 else … … 1996 1998 1997 1999 unset: 1998 { 1999 OString* str; 2000 str = orAtomString( pit->word.atom ); 2001 orError( "Path word %s has no value", str->charArray ); 2002 } 2000 orError( "Path word %s has no value", orAtomCString( pit->word.atom ) ); 2003 2001 return -1; 2004 2002 … … 2220 2218 { 2221 2219 case OT_UNSET: 2222 { 2223 OString* str = orAtomString( pc->word.atom ); 2224 orError( "%s has no value", str->charArray ); 2225 } 2220 orError( "%s has no value", orAtomCString(pc->word.atom) ); 2226 2221 return -1; 2227 2222 … … 2317 2312 if( wblk->values[ pc->word.index ].flags & OR_WORD_PROT ) 2318 2313 { 2319 OString* str = orAtomString( pc->word.atom );2320 orError( "Word %s is protected", str->charArray);2314 orError( "Word %s is protected", 2315 orAtomCString( pc->word.atom ) ); 2321 2316 goto sThrown; 2322 2317 } 2323 2318 } 2324 2319 #ifdef TRACE 2325 cprint( "TR> %s:\n", orAtom String(pc->word.atom)->charArray);2320 cprint( "TR> %s:\n", orAtomCString( pc->word.atom ) ); 2326 2321 #endif 2327 2322 PUSH_CALL( wval, OC_SETWORD, 0 ); … … 2768 2763 if( si == send ) 2769 2764 { 2770 OString* str = orAtomString( pp->word.atom );2771 orError( "Function has no refinement %s", str->charArray );2765 orError( "Function has no refinement %s", 2766 orAtomCString( pp->word.atom ) ); 2772 2767 goto sThrown; 2773 2768 } … … 3093 3088 (it->type == OT_LITWORD) ) 3094 3089 { 3095 OString* str = orAtomString( it->word.atom );3096 3090 dprint( " %d %d %s\n", it->word.context, it->word.index, 3097 str->charArray);3091 orAtomCString( it->word.atom ) ); 3098 3092 } 3099 3093 else if( it->type == OT_DATATYPE ) … … 3938 3932 orDatatypeName(type), 3939 3933 (orSTRINGS + wrd->str)->charArray, 3940 orAtom String(wrd->atom)->charArray,3934 orAtomCString( wrd->atom ), 3941 3935 val->word.atom ); 3942 3936 #endif … … 4286 4280 { 4287 4281 #if 0 4288 OString* str = orAtomString( it->word.atom );4289 dprint( "orFuncNative - intern %s\n", str->charArray);4282 dprint( "orFuncNative - intern %s\n", 4283 orAtomCString( it->word.atom ) ); 4290 4284 #endif 4291 4285 prevWord = 1;
