Changeset 268 in dev for trunk/abdev/BasicCompiler_Common/DebugMiddleFile.cpp
- Timestamp:
- Aug 8, 2007, 3:22:49 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/DebugMiddleFile.cpp
r266 r268 102 102 } 103 103 104 // ソースコード 105 { 106 int length = compiler.source.GetLength(); 107 if(BufferSize<i2+(int)length+32768){ 108 while( BufferSize<i2+(int)length+32768 ) 109 { 110 BufferSize+=32768; 111 } 112 113 buffer=(char *)HeapReAlloc(hHeap,0,buffer,BufferSize); 114 } 115 116 // バッファ 117 lstrcpy( buffer + i2, compiler.source.GetBuffer() ); 118 i2 += lstrlen(buffer + i2) + 1; 119 } 104 120 105 121 //インクルード情報 … … 215 231 } 216 232 233 // ソースコード 234 { 235 // バッファ 236 compiler.source.SetBuffer(buffer+i2); 237 i2 += lstrlen( buffer+i2 ) + 1; 238 } 239 217 240 //インクルード情報 218 241 _IncludeFileInfo.FilesNum=*(long *)(buffer+i2); … … 225 248 i2+=lstrlen(buffer+i2)+1; 226 249 } 227 for(i 2++,i3=0;;i2++,i3++){228 _IncludeFileInfo.LineOfFile[i3]=(long)buffer[i2 ];250 for(i3=0;;i3++){ 251 _IncludeFileInfo.LineOfFile[i3]=(long)buffer[i2++]; 229 252 if(_IncludeFileInfo.LineOfFile[i3]==-1) break; 230 253 } 231 254 232 255 //コードと行番号の関係 233 int maxLineInfoNum; 234 maxLineInfoNum=*(long *)(buffer+i2); 256 int maxLineInfoNum = *(long *)(buffer+i2); 235 257 i2+=sizeof(long); 236 258 for(i3=0;i3<maxLineInfoNum;i3++){
Note:
See TracChangeset
for help on using the changeset viewer.