Changeset 508 in dev for trunk/ab5.0/abdev/compiler_x86


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

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

Location:
trunk/ab5.0/abdev/compiler_x86
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/compiler_x86/Compile_Var.cpp

    r465 r508  
    1313int AllLocalVarSize;
    1414
     15using namespace ActiveBasic::Compiler;
    1516
    1617void SetRelativeOffset( Type &resultType, RELATIVE_VAR *pRelativeVar,const char *lpPtrOffset){
     
    392393        //////////////////
    393394
    394         const Variable *pVar = UserProc::CompilingUserProc().GetLocalVars().BackSearch( Symbol( VarName ) );
     395        const Variable *pVar = UserProc::CompilingUserProc().GetLocalVars().BackSearch( LexicalAnalyzer::FullNameToSymbol( VarName ) );
    395396        if( pVar ){
    396397            //ポインタ変数の場合
     
    519520            GetNowStaticVarFullName(VarName,temporary);
    520521
    521             pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( Symbol( temporary ) );
     522            pVar = compiler.GetObjectModule().meta.GetGlobalVars().Find( LexicalAnalyzer::FullNameToSymbol( temporary ) );
    522523            if( pVar ){
    523524                goto GlobalOk;
     
    550551            char temp2[VN_SIZE];
    551552            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 ) );
    553554            if( pVar ){
    554555                lstrcpy(member,tempMember);
     
    562563            char temp2[VN_SIZE];
    563564            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 ) );
    565566            if( pVar ){
    566567                goto GlobalOk;
     
    572573        /////////////////////
    573574
    574         pVar = compiler.GetObjectModule().meta.GetGlobalVars().BackSearch( Symbol( VarName ) );
     575        pVar = compiler.GetObjectModule().meta.GetGlobalVars().BackSearch( LexicalAnalyzer::FullNameToSymbol( VarName ) );
    575576        if( pVar ){
    576577            goto GlobalOk;
     
    11031104        /////////////////
    11041105
    1105         if( UserProc::CompilingUserProc().GetLocalVars().DuplicateCheck( Symbol( VarName ) ) ){
     1106        if( UserProc::CompilingUserProc().GetLocalVars().DuplicateCheck( LexicalAnalyzer::FullNameToSymbol( VarName ) ) ){
    11061107            //2重定義のエラー
    11071108            compiler.errorMessenger.Output(15,VarName,cp);
  • trunk/ab5.0/abdev/compiler_x86/stdafx.h

    r507 r508  
    4242#include <Hashmap.h>
    4343#include <Configuration.h>
     44#include <Symbol.h>
     45#include <LexicalAnalyzer.h>
    4446#include <Program.h>
    4547#include <Compiler.h>
    4648#include <Debugger.h>
    47 #include <LexicalAnalyzer.h>
Note: See TracChangeset for help on using the changeset viewer.