Changeset 75 in dev for BasicCompiler_Common/Intermediate_Step2.cpp
- Timestamp:
- Mar 20, 2007, 4:36:16 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/Intermediate_Step2.cpp
r64 r75 146 146 //数値定数 147 147 _int64 i64data; 148 pci->type=StaticCalculation(true, temporary,0,&i64data,&pci->lpIndex); 148 Type resultType; 149 StaticCalculation(true, temporary,0,&i64data,resultType); 150 pci->type=resultType.GetBasicType(); 149 151 if(IsRealNumberType(pci->type)){ 150 152 //実数型 … … 231 233 232 234 _int64 i64data; 233 LONG_PTR lpIndex; 234 StaticCalculation(true, temp2,DEF_LONG,&i64data,&lpIndex); 235 StaticCalculation(true, temp2,DEF_LONG,&i64data,Type()); 235 236 NextValue=(int)i64data; 236 237 } … … 303 304 304 305 char ConstructorDestructorSchedule[MAX_PATH]; 305 void MakeConstructorAndDestructor(char *buffer,int NowLine,char *ClassName){306 void MakeConstructorAndDestructor(char *buffer,int nowLine,char *ClassName){ 306 307 int i,i2; 307 308 char temporary[MAX_PATH],*pTemp; … … 312 313 bDestructor=0; 313 314 314 for(i= NowLine;;i++){315 for(i=nowLine;;i++){ 315 316 if(buffer[i]=='\0') break; 316 317 if(buffer[i]==1&&buffer[i+1]==ESC_ENDCLASS){ … … 360 361 } 361 362 } 362 void ChangeCommand(char *buffer,int NowLine,char *Command){363 void ChangeCommand(char *buffer,int nowLine,char *Command){ 363 364 int i,i2,IsStr; 364 365 unsigned _int16 ComNum; … … 391 392 392 393 //コンストラクタ、デストラクタを暗黙的に生成 393 MakeConstructorAndDestructor(buffer, NowLine,Command+2);394 MakeConstructorAndDestructor(buffer,nowLine,Command+2); 394 395 break; 395 396 case ESC_INTERFACE: … … 457 458 if( nCountOfNonGlobalScope == 0 ){ 458 459 //グローバル 459 if(lstrcmpi(com,"Open")==0) ComOpen(Command+i,pam, NowLine);460 if(lstrcmpi(com,"Open")==0) ComOpen(Command+i,pam,nowLine); 460 461 else if(lstrcmpi(com,"Close")==0) ComClose(Command+i,pam); 461 462 else if(lstrcmpi(com,"Field")==0|| 462 463 lstrcmpi(com,"Get")==0|| 463 464 lstrcmpi(com,"Put")==0) ComField(Command+i,pam); 464 else if(lstrcmpi(com,"Line")==0) ComLine(Command+i,pam, NowLine);465 else if(lstrcmpi(com,"Circle")==0) ComCircle(Command+i,pam, NowLine);466 else if(lstrcmpi(com,"PSet")==0) ComPSet(Command+i,pam, NowLine);467 else if(lstrcmpi(com,"Paint")==0) ComPaint(Command+i,pam, NowLine);465 else if(lstrcmpi(com,"Line")==0) ComLine(Command+i,pam,nowLine); 466 else if(lstrcmpi(com,"Circle")==0) ComCircle(Command+i,pam,nowLine); 467 else if(lstrcmpi(com,"PSet")==0) ComPSet(Command+i,pam,nowLine); 468 else if(lstrcmpi(com,"Paint")==0) ComPaint(Command+i,pam,nowLine); 468 469 469 470 else if(
Note:
See TracChangeset
for help on using the changeset viewer.