Changeset 305 in dev for trunk/abdev/BasicCompiler_Common/src
- Timestamp:
- Aug 26, 2007, 3:57:23 AM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler_Common/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/src/Class.cpp
r299 r305 514 514 BOOST_FOREACH( CMethod *pMethod, pobj_c->GetMethods() ){ 515 515 if( pMethod->GetUserProc().GetName() == temporary ){ 516 if( pMethod->GetUserProc().Params().Equals( pUserProc->Params() ) ){ 517 518 if(pMethod->IsVirtual()){ 519 //メンバ関数を上書き 520 pMethod->SetUserProcPtr( pUserProc ); 521 pMethod->Override(); 522 523 if( !isOverride ){ 524 SetError(127,NULL,nowLine); 525 } 526 if(pMethod->GetAccessibility() != accessibility ){ 527 SetError(128,NULL,nowLine); 528 } 529 530 pUserProc->SetMethod( pMethod ); 531 return; 532 } 516 if( pMethod->GetUserProc().Params().Equals( pUserProc->Params() ) ) 517 { 518 //メンバ関数を上書き 519 pMethod->SetUserProcPtr( pUserProc ); 520 pMethod->Override(); 521 522 if( !pMethod->IsVirtual() ) 523 { 524 // オーバーライドミス 525 SetError(136,NULL,cp); 526 } 527 if( !isOverride ) 528 { 529 SetError(127,NULL,nowLine); 530 } 531 if(pMethod->GetAccessibility() != accessibility ) 532 { 533 SetError(128,NULL,nowLine); 534 } 535 536 pUserProc->SetMethod( pMethod ); 537 return; 533 538 } 534 539 } -
trunk/abdev/BasicCompiler_Common/src/Source.cpp
r303 r305 4 4 5 5 #include <jenga/include/common/Directory.h> 6 #include <jenga/include/common/Path.h> 6 7 7 8 #include <jenga/include/smoothie/Smoothie.h> … … 616 617 else continue; 617 618 618 if(i){ 619 if( i == 0 && Jenga::Common::Path(temporary).GetFileName() == "basic" ) 620 { 621 } 622 else 623 { 619 624 //ディレクティブが消えるため、一行減ってしまうのを防ぐ(basic.sbpを除く) 620 625 Text::SlideString(buffer+i2,1);
Note:
See TracChangeset
for help on using the changeset viewer.