Changeset 281 in dev for trunk/abdev/BasicCompiler_Common
- Timestamp:
- Aug 14, 2007, 8:58:57 AM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler_Common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/include/Source.h
r280 r281 172 172 173 173 private: 174 void Realloc( int newLength ){ 174 void Realloc( int newLength ) 175 { 176 bool isEqualBasbuf = false; 177 extern char *basbuf; 178 if( basbuf == buffer ) 179 { 180 isEqualBasbuf = true; 181 } 182 175 183 buffer = (char *)realloc( buffer, newLength + 255 ); 176 184 177 185 length = newLength; 178 186 179 extern char *basbuf; 180 basbuf = buffer + 2; 187 if( isEqualBasbuf ) 188 { 189 basbuf = buffer + 2; 190 } 181 191 } 182 192 -
trunk/abdev/BasicCompiler_Common/src/Source.cpp
r280 r281 815 815 816 816 // basic.sbpをインクルード 817 const char *headCode = "#include <basic.sbp>\n";818 //const char *headCode = "\n";817 //const char *headCode = "#include <basic.sbp>\n"; 818 const char *headCode = "\n"; 819 819 Realloc( length + lstrlen(headCode) ); 820 820 Text::SlideString( buffer, lstrlen(headCode) );
Note:
See TracChangeset
for help on using the changeset viewer.