Changeset 751 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/Intermediate_Step2.cpp
- Timestamp:
- Sep 24, 2008, 2:36:26 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/Intermediate_Step2.cpp
r543 r751 395 395 char *temporary,*tempBase,temp2[VN_SIZE],*lpCommand; 396 396 397 tempBase=(char *) HeapAlloc(hHeap,0,(lstrlen(buffer)+1)*2+8192);397 tempBase=(char *)malloc((lstrlen(buffer)+1)*2+8192); 398 398 temporary=tempBase+1; 399 399 temporary[0]=0; … … 402 402 403 403 CommandBufferSize=512; 404 lpCommand=(char *)HeapAlloc(hHeap,0,CommandBufferSize); 404 405 lpCommand=(char *)malloc(CommandBufferSize); 405 406 406 407 while(1){ … … 417 418 if(i2>=CommandBufferSize){ //バッファ領域が足りなくなった場合はバッファを増量する 418 419 CommandBufferSize+=512; 419 lpCommand=(char *) HeapReAlloc(hHeap,0,lpCommand,CommandBufferSize);420 lpCommand=(char *)realloc(lpCommand,CommandBufferSize); 420 421 } 421 422 if(buffer[i]=='\"') IsStr^=1; … … 463 464 if(buffer[i]=='\0') break; 464 465 } 465 HeapDefaultFree(lpCommand);466 free(lpCommand); 466 467 lstrcpy(buffer,temporary); 467 468 468 HeapDefaultFree(tempBase);469 free(tempBase); 469 470 }
Note:
See TracChangeset
for help on using the changeset viewer.