Ignore:
Timestamp:
May 8, 2008, 3:27:32 PM (16 years ago)
Author:
dai_9181
Message:

Consts/ConstMacrosクラスのLexicalAnalyzerクラスへの依存性をなくした。

File:
1 edited

Legend:

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

    r578 r579  
    515515        }
    516516
    517         ConstMacro *pConstMacro = compiler.GetObjectModule().meta.GetGlobalConstMacros().Find( procName );
     517        ConstMacro *pConstMacro = compiler.GetObjectModule().meta.GetGlobalConstMacros().Find(
     518            ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( procName )
     519        );
    518520        if( pConstMacro )
    519521        {
     
    10431045                    //////////////
    10441046
    1045                     i3 = compiler.GetObjectModule().meta.GetGlobalConsts().GetBasicType(term);
     1047                    i3 = compiler.GetObjectModule().meta.GetGlobalConsts().GetBasicType(
     1048                        ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( term )
     1049                    );
    10461050                    if(i3){
    1047                         if( compiler.GetObjectModule().meta.GetGlobalConsts().IsStringPtr( term ) ){
     1051                        if( compiler.GetObjectModule().meta.GetGlobalConsts().IsStringPtr( ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( term ) ) ){
    10481052                            //リテラル文字列
    10491053
     
    10631067                            }
    10641068
    1065                             double dbl = compiler.GetObjectModule().meta.GetGlobalConsts().GetDoubleData(term);
     1069                            double dbl = compiler.GetObjectModule().meta.GetGlobalConsts().GetDoubleData(
     1070                                ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( term )
     1071                            );
    10661072                            memcpy(&i64data,&dbl,sizeof(double));
    10671073
     
    10771083                        if(IsRealNumberType(i3)){
    10781084                            //実数
    1079                             double dbl = compiler.GetObjectModule().meta.GetGlobalConsts().GetDoubleData(term);
     1085                            double dbl = compiler.GetObjectModule().meta.GetGlobalConsts().GetDoubleData(
     1086                                ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( term )
     1087                            );
    10801088                            memcpy(&i64data,&dbl,sizeof(double));
    10811089                            goto Literal;
     
    10831091                        else if(IsWholeNumberType(i3)){
    10841092                            //整数
    1085                             i64data = compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(term);
     1093                            i64data = compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(
     1094                                ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( term )
     1095                            );
    10861096                            goto Literal;
    10871097                        }
Note: See TracChangeset for help on using the changeset viewer.