Ignore:
Timestamp:
Apr 29, 2008, 11:36:37 AM (16 years ago)
Author:
dai_9181
Message:

Symbolコンストラクタを少なくし、LexicalAnalyzer::FullNameToSymbolメソッドを実装。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/VariableOpe.cpp

    r507 r508  
    1212#include "../compiler_x86/opcode.h"
    1313#endif
     14
     15using namespace ActiveBasic::Compiler;
    1416
    1517BOOL IsPtrType(int type){
     
    563565        /////////////////
    564566
    565         pVar = UserProc::CompilingUserProc().GetLocalVars().BackSearch( Symbol( VarName ) );
     567        pVar = UserProc::CompilingUserProc().GetLocalVars().BackSearch( LexicalAnalyzer::FullNameToSymbol( VarName ) );
    566568        if( pVar ){
    567569            goto ok;
     
    614616        GetNowStaticVarFullName(VarName,temporary);
    615617
    616         pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( Symbol( temporary ) );
     618        pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( LexicalAnalyzer::FullNameToSymbol( temporary ) );
    617619        if( pVar ){
    618620            goto ok;
     
    643645        sprintf(temp2,"%s.%s",VarName,temporary);
    644646
    645         pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( Symbol( temp2 ) );
     647        pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( LexicalAnalyzer::FullNameToSymbol( temp2 ) );
    646648        if( pVar ){
    647649            lstrcpy(member,tempMember);
     
    656658        sprintf(temp2,"%s.%s",compiler.pCompilingClass->GetName().c_str(),VarName);
    657659
    658         pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( Symbol( temp2 ) );
     660        pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( LexicalAnalyzer::FullNameToSymbol( temp2 ) );
    659661        if( pVar ){
    660662            goto ok;
     
    667669    ////////////////////
    668670
    669     pVar = compiler.GetObjectModule().meta.GetGlobalVars().BackSearch( Symbol( VarName ) );
     671    pVar = compiler.GetObjectModule().meta.GetGlobalVars().BackSearch( LexicalAnalyzer::FullNameToSymbol( VarName ) );
    670672    if( pVar ){
    671673        goto ok;
     
    941943    /////////////////////////
    942944
    943     if( compiler.GetObjectModule().meta.GetGlobalVars().DuplicateCheck( Symbol( name ) ) ){
     945    if( compiler.GetObjectModule().meta.GetGlobalVars().DuplicateCheck( LexicalAnalyzer::FullNameToSymbol( name ) ) ){
    944946        //2重定義のエラー
    945947        compiler.errorMessenger.Output(15,name,cp);
     
    11671169{
    11681170    char temporary[255];
    1169     if( compiler.GetObjectModule().meta.GetGlobalVars().Find( Symbol( "_DebugSys_dwThreadID" ) ) == NULL )
     1171    if( compiler.GetObjectModule().meta.GetGlobalVars().Find( LexicalAnalyzer::FullNameToSymbol( "_DebugSys_dwThreadID" ) ) == NULL )
    11701172    {
    11711173        // 未定義の場合は定義する
Note: See TracChangeset for help on using the changeset viewer.