Changeset 514 in dev for trunk/ab5.0/abdev/compiler_x64/Compile_Var.cpp
- Timestamp:
- May 1, 2008, 11:26:31 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/compiler_x64/Compile_Var.cpp
r468 r514 12 12 int AllLocalVarSize; 13 13 14 using namespace ActiveBasic::Compiler; 14 15 15 16 void SetRelativeOffset( Type &resultType, RELATIVE_VAR *pRelativeVar,const char *lpPtrOffset){ … … 416 417 ////////////////// 417 418 418 const Variable *pVar = UserProc::CompilingUserProc().GetLocalVars().BackSearch( Symbol( VarName ) );419 const Variable *pVar = UserProc::CompilingUserProc().GetLocalVars().BackSearch( LexicalAnalyzer::FullNameToSymbol( VarName ) ); 419 420 if( pVar ){ 420 421 //ポインタ変数の場合 … … 538 539 GetNowStaticVarFullName(VarName,temporary); 539 540 540 pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( Symbol( temporary ) );541 pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( LexicalAnalyzer::FullNameToSymbol( temporary ) ); 541 542 if( pVar ){ 542 543 goto GlobalOk; … … 569 570 char temp2[VN_SIZE]; 570 571 sprintf(temp2,"%s.%s",VarName,temporary); 571 pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( Symbol( temp2 ) );572 pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( LexicalAnalyzer::FullNameToSymbol( temp2 ) ); 572 573 if( pVar ){ 573 574 lstrcpy(member,tempMember); … … 581 582 char temp2[VN_SIZE]; 582 583 sprintf(temp2,"%s.%s",compiler.pCompilingClass->GetName().c_str(),VarName); 583 pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( Symbol( temp2 ) );584 pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( LexicalAnalyzer::FullNameToSymbol( temp2 ) ); 584 585 if( pVar ){ 585 586 goto GlobalOk; … … 591 592 ///////////////////// 592 593 593 pVar = compiler.GetObjectModule().meta.GetGlobalVars().BackSearch( Symbol( VarName ) );594 pVar = compiler.GetObjectModule().meta.GetGlobalVars().BackSearch( LexicalAnalyzer::FullNameToSymbol( VarName ) ); 594 595 if( pVar ){ 595 596 goto GlobalOk; … … 1111 1112 ///////////////// 1112 1113 1113 if( UserProc::CompilingUserProc().GetLocalVars().DuplicateCheck( VarName) ){1114 if( UserProc::CompilingUserProc().GetLocalVars().DuplicateCheck( LexicalAnalyzer::FullNameToSymbol( VarName ) ) ){ 1114 1115 //2重定義のエラー 1115 1116 compiler.errorMessenger.Output(15,VarName,cp);
Note:
See TracChangeset
for help on using the changeset viewer.