Changeset 751 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/Intermediate_Step1.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_Step1.cpp
r735 r751 55 55 void DeleteComment(char *buffer){ //注釈「'」の取り除き 56 56 int i,i2,i3,IsStr; 57 char *temporary=(char *) HeapAlloc(hHeap,HEAP_ZERO_MEMORY,lstrlen(buffer)+1);57 char *temporary=(char *)calloc(lstrlen(buffer)+1,sizeof (char)); 58 58 for(i=0,i2=0,i3=0,IsStr=0;;i++,i2++){ 59 59 if(buffer[i]=='\"') IsStr^=1; … … 99 99 } 100 100 lstrcpy(buffer,temporary); 101 HeapDefaultFree(temporary);101 free(temporary); 102 102 } 103 103 void CheckParenthesis(char *buffer){ … … 372 372 373 373 bool isBeforeCharDelimitation = true; 374 temporary=(char *) HeapAlloc(hHeap,HEAP_ZERO_MEMORY,(lstrlen(buffer)+255)*2);374 temporary=(char *)calloc((lstrlen(buffer)+255)*2,sizeof (char)); 375 375 for(i=0,i2=0,IsStr=0;;i++,i2++){ 376 376 if(buffer[i]=='\"') IsStr^=1; … … 990 990 } 991 991 lstrcpy(buffer,temporary); 992 HeapDefaultFree(temporary);992 free(temporary); 993 993 } 994 994 void DefCommandFormat(char *buffer){ … … 1182 1182 int i,i2; 1183 1183 1184 char *temporary; 1185 temporary=(char *)HeapAlloc(hHeap,0,lstrlen(buffer)*2+1024); 1184 char *temporary = (char*)malloc(strlen(buffer)*2+1024); 1186 1185 1187 1186 //1行Ifをブロック形式にする … … 1213 1212 } 1214 1213 1215 HeapDefaultFree(temporary);1214 free(temporary); 1216 1215 } 1217 1216 void CheckPareCommand(void){
Note:
See TracChangeset
for help on using the changeset viewer.