Changeset 266 in dev for trunk/abdev/BasicCompiler_Common/DebugMiddleFile.cpp
- Timestamp:
- Aug 7, 2007, 4:14:06 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/DebugMiddleFile.cpp
r265 r266 84 84 85 85 // サイズ 86 *(long *)(buffer+i2) = textString.size();86 *(long *)(buffer+i2) = (long)textString.size(); 87 87 i2+=sizeof(long); 88 88 … … 99 99 // バッファ 100 100 memcpy( buffer+i2, textString.c_str(), textString.size() ); 101 i2 += textString.size();101 i2 += (int)textString.size(); 102 102 } 103 103 … … 111 111 i2+=lstrlen(buffer+i2)+1; 112 112 } 113 buffer[i2++]=0;114 113 for(i3=0;;i3++){ 115 114 buffer[i2++]=(char)IncludeFileInfo.LineOfFile[i3]; … … 122 121 } 123 122 } 124 125 //ソースコード126 {127 //バッファが足りない場合は再確保128 int bufferLen = lstrlen( basbuf );129 if(BufferSize<i2+(int)bufferLen+32768){130 while( BufferSize<i2+(int)bufferLen+32768 )131 {132 BufferSize+=32768;133 }134 135 buffer=(char *)HeapReAlloc(hHeap,0,buffer,BufferSize);136 }137 }138 lstrcpy(buffer+i2,basbuf);139 i2+=lstrlen( buffer + i2 )+1;140 123 141 124 … … 246 229 if(_IncludeFileInfo.LineOfFile[i3]==-1) break; 247 230 } 248 249 //ソースコード250 i2++;251 source.SetBuffer( buffer + i2 );252 i2+=lstrlen(buffer+i2)+1;253 231 254 232 //コードと行番号の関係 … … 416 394 IncludeFileInfo=this->_IncludeFileInfo; 417 395 418 //ソースコード419 Smoothie::Lexical::source = source;420 421 396 //コードと行番号の関係 422 397 extern SourceLines oldSourceLines;
Note:
See TracChangeset
for help on using the changeset viewer.