Changeset 508 in dev for trunk/ab5.0/abdev/compiler_x86/Compile_Var.cpp
- Timestamp:
- Apr 29, 2008, 11:36:37 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/compiler_x86/Compile_Var.cpp
r465 r508 13 13 int AllLocalVarSize; 14 14 15 using namespace ActiveBasic::Compiler; 15 16 16 17 void SetRelativeOffset( Type &resultType, RELATIVE_VAR *pRelativeVar,const char *lpPtrOffset){ … … 392 393 ////////////////// 393 394 394 const Variable *pVar = UserProc::CompilingUserProc().GetLocalVars().BackSearch( Symbol( VarName ) );395 const Variable *pVar = UserProc::CompilingUserProc().GetLocalVars().BackSearch( LexicalAnalyzer::FullNameToSymbol( VarName ) ); 395 396 if( pVar ){ 396 397 //ポインタ変数の場合 … … 519 520 GetNowStaticVarFullName(VarName,temporary); 520 521 521 pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( Symbol( temporary ) );522 pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( LexicalAnalyzer::FullNameToSymbol( temporary ) ); 522 523 if( pVar ){ 523 524 goto GlobalOk; … … 550 551 char temp2[VN_SIZE]; 551 552 sprintf(temp2,"%s.%s",VarName,temporary); 552 pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( Symbol( temp2 ) );553 pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( LexicalAnalyzer::FullNameToSymbol( temp2 ) ); 553 554 if( pVar ){ 554 555 lstrcpy(member,tempMember); … … 562 563 char temp2[VN_SIZE]; 563 564 sprintf(temp2,"%s.%s",compiler.pCompilingClass->GetName().c_str(),VarName); 564 pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( Symbol( temp2 ) );565 pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( LexicalAnalyzer::FullNameToSymbol( temp2 ) ); 565 566 if( pVar ){ 566 567 goto GlobalOk; … … 572 573 ///////////////////// 573 574 574 pVar = compiler.GetObjectModule().meta.GetGlobalVars().BackSearch( Symbol( VarName ) );575 pVar = compiler.GetObjectModule().meta.GetGlobalVars().BackSearch( LexicalAnalyzer::FullNameToSymbol( VarName ) ); 575 576 if( pVar ){ 576 577 goto GlobalOk; … … 1103 1104 ///////////////// 1104 1105 1105 if( UserProc::CompilingUserProc().GetLocalVars().DuplicateCheck( Symbol( VarName ) ) ){1106 if( UserProc::CompilingUserProc().GetLocalVars().DuplicateCheck( LexicalAnalyzer::FullNameToSymbol( VarName ) ) ){ 1106 1107 //2重定義のエラー 1107 1108 compiler.errorMessenger.Output(15,VarName,cp);
Note:
See TracChangeset
for help on using the changeset viewer.