Ignore:
Timestamp:
May 2, 2007, 4:08:58 AM (17 years ago)
Author:
dai_9181
Message:

名前空間機能をグローバル変数、定数と列挙型に適用。
一部、クラスの静的メンバと名前空間の相性が悪いコードが潜んでいるため、要改修

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/NumOpe_GetType.cpp

    r102 r103  
    323323        Type leftType;
    324324        if( !GetTermType( termLeft, leftType, isLiteral, &isClassName ) ){
    325             return false;
     325            goto globalArea;
    326326        }
    327327
     
    658658                    // 何らかの識別子
    659659
     660                        if( (string)term=="ParentArea2.xxxxxx"){
     661                            int test=0;
     662                        }
     663
    660664                    bool isLiteral = true;
    661665                    if( GetTermType( term, resultType, isLiteral ) ){
     
    693697                    //////////////
    694698
    695                     i3 = CDBConst::obj.GetType(term);
     699                    i3 = CDBConst::obj.GetBasicType(term);
    696700                    if(i3){
     701                        if( CDBConst::obj.IsStringPtr( term ) ){
     702                            //リテラル文字列
     703                            goto StrLiteral;
     704                        }
     705
    697706                        type_stack[sp]=i3;
    698707                        if(IsRealNumberType(i3)){
     
    708717                            goto Literal;
    709718                        }
    710                         else if(i3==DEF_STRING){
    711                             //リテラル文字列
    712                             goto StrLiteral;
    713                         }
    714719                        else{
    715720                            SetError(1,NULL,0);
Note: See TracChangeset for help on using the changeset viewer.