Changeset 570 in dev for trunk/ab5.0/abdev/compiler_x86/Compile_Var.cpp
- Timestamp:
- May 6, 2008, 8:31:52 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/compiler_x86/Compile_Var.cpp
r561 r570 393 393 ////////////////// 394 394 395 const Variable *pVar = compiler.GetCompilingUserProc().GetLocalVars().BackSearch( LexicalAnalyzer::FullNameToSymbol( VarName ) ); 395 const Variable *pVar = compiler.GetCompilingUserProc().GetLocalVars().BackSearch( 396 LexicalAnalyzer::FullNameToSymbol( VarName ), 397 compiler.codeGenerator.lexicalScopes.GetNowLevel() 398 ); 396 399 if( pVar ){ 397 400 //ポインタ変数の場合 … … 573 576 ///////////////////// 574 577 575 pVar = compiler.GetObjectModule().meta.GetGlobalVars().BackSearch( LexicalAnalyzer::FullNameToSymbol( VarName ) ); 578 pVar = compiler.GetObjectModule().meta.GetGlobalVars().BackSearch( 579 LexicalAnalyzer::FullNameToSymbol( VarName ), 580 compiler.codeGenerator.lexicalScopes.GetNowLevel() 581 ); 576 582 if( pVar ){ 577 583 goto GlobalOk; … … 1104 1110 ///////////////// 1105 1111 1106 if( compiler.GetCompilingUserProc().GetLocalVars().DuplicateCheck( LexicalAnalyzer::FullNameToSymbol( VarName ) ) ){1112 if( compiler.GetCompilingUserProc().GetLocalVars().DuplicateCheck( LexicalAnalyzer::FullNameToSymbol( VarName ), compiler.codeGenerator.lexicalScopes.GetNowLevel() ) ){ 1107 1113 //2重定義のエラー 1108 1114 compiler.errorMessenger.Output(15,VarName,cp);
Note:
See TracChangeset
for help on using the changeset viewer.