Changeset 37
- Timestamp:
- 02/09/06 15:37:17 (3 years ago)
- Location:
- trunk/orca
- Files:
-
- 13 modified
-
files.c (modified) (6 diffs)
-
gl/gx.c (modified) (3 diffs)
-
gl/project.r (modified) (1 diff)
-
gl/ttf_load.c (modified) (2 diffs)
-
ovalue.c (modified) (1 diff)
-
ovalue.h (modified) (3 diffs)
-
print.c (modified) (2 diffs)
-
qt/qorca.cpp (modified) (6 diffs)
-
qt/qorca.h (modified) (1 diff)
-
series.c (modified) (2 diffs)
-
stdio.c (modified) (3 diffs)
-
unix/os.c (modified) (1 diff)
-
win32/os.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/orca/files.c
r25 r37 81 81 int logic = 0; 82 82 OString* str = orSTRING(a1); 83 or CTermStr( str );83 orTermCStr( str ); 84 84 if( orIsDir( str->charArray + a1->series.it ) > -1 ) 85 85 logic = 1; … … 92 92 int size; 93 93 OString* str = orSTRING(a1); 94 or CTermStr( str );94 orTermCStr( str ); 95 95 size = orFileSize( str->charArray + a1->series.it ); 96 96 if( size < 0 ) … … 109 109 int status; 110 110 OString* str = orSTRING(a1); 111 or CTermStr( str );111 orTermCStr( str ); 112 112 status = orIsDir( str->charArray + a1->series.it ); 113 113 if( status < 0 ) … … 121 121 int status; 122 122 OString* str = orSTRING(a1); 123 or CTermStr( str );123 orTermCStr( str ); 124 124 status = orFileModified( str->charArray + a1->series.it, orRESULT ); 125 125 if( status < 0 ) … … 252 252 OString* str = orSTRING(a1); 253 253 254 or CTermStr( str );254 orTermCStr( str ); 255 255 256 256 fn = str->charArray + a1->series.it; … … 376 376 a2 = a1 + 1; 377 377 file = orSTRING(a1); 378 or CTermStr( file );378 orTermCStr( file ); 379 379 380 380 if( orRefineSet(REF_APPEND) ) -
trunk/orca/gl/gx.c
r33 r37 631 631 { 632 632 OString* str = orSTRING(val); 633 or CTermStr( str );633 orTermCStr( str ); 634 634 TextureResource* tr = gxTexture( orC); 635 635 } … … 1077 1077 { 1078 1078 OString* str = orSTRING(a1); 1079 or CTermStr( str );1079 orTermCStr( str ); 1080 1080 audioPlayMusic( orStrChars(str,a1) ); 1081 1081 } … … 1585 1585 { 1586 1586 str = orSTRING( a1 ); 1587 or CTermStr( str );1587 orTermCStr( str ); 1588 1588 file = orStrChars( str, a1 ); 1589 1589 -
trunk/orca/gl/project.r
r25 r37 41 41 include_from %glv/unix 42 42 sources [%glv/unix/glv.c] 43 libs_from %/usr/X11R6/lib64 [%X11 %Xxf86vm]44 ;libs_from %/usr/X11R6/lib [%X11 %Xxf86vm]43 ;libs_from %/usr/X11R6/lib64 [%X11 %Xxf86vm] 44 libs_from %/usr/X11R6/lib [%X11 %Xxf86vm] 45 45 46 46 include_from %/usr/include/freetype2 -
trunk/orca/gl/ttf_load.c
r1 r37 647 647 ++arg; 648 648 str = orSTRING(arg); 649 or CTermStr( str );649 orTermCStr( str ); 650 650 codes = orStrChars( str, arg ); 651 651 } … … 676 676 677 677 str = orSTRING(a2); 678 or CTermStr( str );678 orTermCStr( str ); 679 679 ffile = orStrChars( str, a2 ); 680 680 -
trunk/orca/ovalue.c
r31 r37 1211 1211 OString* str = orSTRING( a1 ); 1212 1212 1213 or CTermStr( str );1213 orTermCStr( str ); 1214 1214 1215 1215 file = orStrChars( str, a1 ); -
trunk/orca/ovalue.h
r31 r37 31 31 O* Structures and types 32 32 or* Functions, variables, macros 33 */34 35 36 // Interpreter configuration37 /*38 #define OR_CONFIG_NUMBER_ARRAYS 139 #define OR_CONFIG_BYTECODE 140 #define OR_CONFIG_COMPRESS 141 33 */ 42 34 … … 492 484 #define orIs(val,t) ((val)->type == t) 493 485 486 #define orType(val) (val)->type 487 #define orInteger(val) (val)->integer 488 #define orDecimal(val) (val)->num.decimal 489 #define orTupleLen(val) (val)->argc 490 494 491 #define orIsWord(t) ((t >= OT_WORD) && (t < OT_REFINEMENT)) 495 492 #define orIsSeries(t) ((t >= OT_COMPLEX) && (t < OT_SERIES)) … … 587 584 #define OR_CTERM_LEN 1 588 585 589 #define or CTermStr(s) \586 #define orTermCStr(s) \ 590 587 if(s->used == s->avail) \ 591 588 orArrayReserve(s,sizeof(char),s->used+1); \ -
trunk/orca/print.c
r26 r37 669 669 if( out->used ) 670 670 { 671 or CTermStr( out );671 orTermCStr( out ); 672 672 } 673 673 } … … 1105 1105 if( out->used ) 1106 1106 { 1107 or CTermStr( out );1107 orTermCStr( out ); 1108 1108 } 1109 1109 } -
trunk/orca/qt/qorca.cpp
r25 r37 152 152 const char* mold( const OValue* val ) 153 153 { 154 orMold( this, val ); // Calls or CTermStr() for us.154 orMold( this, val ); // Calls orTermCStr() for us. 155 155 return charArray; 156 156 } … … 158 158 const char* form( const OValue* val ) 159 159 { 160 orForm( this, val ); // Calls or CTermStr() for us.160 orForm( this, val ); // Calls orTermCStr() for us. 161 161 return charArray; 162 162 } … … 301 301 { 302 302 OString* str = orSTRING( val ); 303 or CTermStr( str );303 orTermCStr( str ); 304 304 return orStrChars( str, val ); 305 305 } … … 841 841 OValue* ref = REF_RF_PATH; 842 842 str = orSTRING( ref ); 843 or CTermStr( str );843 orTermCStr( str ); 844 844 dir = orStrChars( str, ref ); 845 845 } … … 850 850 851 851 str = orSTRING(a1); 852 or CTermStr( str );852 orTermCStr( str ); 853 853 cp = orStrChars( str, a1 ); 854 854 … … 1093 1093 str1 = orSTRING(a1); 1094 1094 str2 = orSTRING(a2); 1095 or CTermStr( str1 );1096 or CTermStr( str2 );1095 orTermCStr( str1 ); 1096 orTermCStr( str2 ); 1097 1097 cp1 = orStrChars(str1, a1); 1098 1098 cp2 = orStrChars(str2, a2); -
trunk/orca/qt/qorca.h
r18 r37 209 209 { 210 210 OString* str = orSTRING( val ); 211 or CTermStr( str );211 orTermCStr( str ); 212 212 return orStrChars( str, val ); 213 213 } -
trunk/orca/series.c
r25 r37 2027 2027 2028 2028 str->used = out - str->charArray; 2029 or CTermStr(str);2029 orTermCStr(str); 2030 2030 } 2031 2031 } … … 2083 2083 } 2084 2084 2085 or CTermStr(str);2085 orTermCStr(str); 2086 2086 } 2087 2087 } -
trunk/orca/stdio.c
r1 r37 79 79 80 80 str1 = orSTRING(a1); 81 or CTermStr( str1 );81 orTermCStr( str1 ); 82 82 cp1 = orStrChars( str1, a1 ); 83 83 84 84 a2 = a1 + 1; 85 85 str2 = orSTRING(a2); 86 or CTermStr( str2 );86 orTermCStr( str2 ); 87 87 cp2 = orStrChars( str2, a2 ); 88 88 … … 104 104 105 105 str = orSTRING(a1); 106 or CTermStr( str );106 orTermCStr( str ); 107 107 cp = orStrChars( str, a1 ); 108 108 … … 124 124 125 125 str = orSTRING(a1); 126 or CTermStr( str );126 orTermCStr( str ); 127 127 cp = orStrChars( str, a1 ); 128 128 -
trunk/orca/unix/os.c
r25 r37 177 177 int argc; 178 178 179 or CTermStr( str );179 orTermCStr( str ); 180 180 cp = str->charArray + sindex; 181 181 -
trunk/orca/win32/os.c
r1 r37 198 198 199 199 str = orSTRING( a1 ); 200 or CTermStr( str );200 orTermCStr( str ); 201 201 cp = orStrChars( str, a1 ); 202 202 … … 295 295 296 296 str = orSTRING( a1 ); 297 or CTermStr( str );297 orTermCStr( str ); 298 298 cp = orStrChars( str, a1 ); 299 299
