Changeset 579 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/calculation.cpp
- Timestamp:
- May 8, 2008, 3:27:32 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/calculation.cpp
r578 r579 498 498 //定数関数 499 499 500 ConstMacro *pConstMacro = compiler.GetObjectModule().meta.GetGlobalConstMacros().Find( temporary ); 500 ConstMacro *pConstMacro = compiler.GetObjectModule().meta.GetGlobalConstMacros().Find( 501 ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( temporary ) 502 ); 501 503 if( !pConstMacro ) 502 504 { … … 663 665 ///////// 664 666 StrPtr[pnum]=0; 665 type[pnum] = compiler.GetObjectModule().meta.GetGlobalConsts().GetBasicType(Parms); 667 type[pnum] = compiler.GetObjectModule().meta.GetGlobalConsts().GetBasicType( 668 ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( Parms ) 669 ); 666 670 if(type[pnum]){ 667 671 if(IsRealNumberType(type[pnum])){ 668 672 //実数型 669 nums[pnum] = compiler.GetObjectModule().meta.GetGlobalConsts().GetDoubleData(Parms); 673 nums[pnum] = compiler.GetObjectModule().meta.GetGlobalConsts().GetDoubleData( 674 ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( Parms ) 675 ); 670 676 } 671 677 else if(IsWholeNumberType(type[pnum])){ 672 678 //整数 673 i64nums[pnum] = compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData(Parms); 679 i64nums[pnum] = compiler.GetObjectModule().meta.GetGlobalConsts().GetWholeData( 680 ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( Parms ) 681 ); 674 682 } 675 683 /* else if(type[pnum]==DEF_STRING){ … … 1223 1231 1224 1232 //定数 1225 ConstMacro *pConstMacro = compiler.GetObjectModule().meta.GetGlobalConstMacros().Find( temporary ); 1233 ConstMacro *pConstMacro = compiler.GetObjectModule().meta.GetGlobalConstMacros().Find( 1234 ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( temporary ) 1235 ); 1226 1236 if(pConstMacro){ 1227 1237 //マクロ関数の場合 … … 1233 1243 1234 1244 //定数 1235 i3 = compiler.GetObjectModule().meta.GetGlobalConsts().GetBasicType(Command+i2); 1245 i3 = compiler.GetObjectModule().meta.GetGlobalConsts().GetBasicType( 1246 ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( Command+i2 ) 1247 ); 1236 1248 if(i3==DEF_STRING) return 1; //文字列 1237 1249 if(i3) return 0; //数値
Note:
See TracChangeset
for help on using the changeset viewer.