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/calculation.cpp

    r97 r103  
    653653                        /////////
    654654                        StrPtr[pnum]=0;
    655                         type[pnum] = CDBConst::obj.GetType(Parms);
     655                        type[pnum] = CDBConst::obj.GetBasicType(Parms);
    656656                        if(type[pnum]){
    657657                            if(IsRealNumberType(type[pnum])){
     
    900900                    }
    901901                }
     902
     903                if( type_stack[sp-1] == DEF_OBJECT || type_stack[sp-1] == DEF_STRUCT ){
     904                    // リテラル値ではないため抜け出す
     905                    return false;
     906                }
     907
    902908                type_stack[sp-2]=type_stack[sp-1];
    903909                index_stack[sp-2]=index_stack[sp-1];
     
    12991305
    13001306                //定数
    1301                 i3 = CDBConst::obj.GetType(Command+i2);
     1307                i3 = CDBConst::obj.GetBasicType(Command+i2);
    13021308                if(i3==DEF_STRING) return 1;    //文字列
    13031309                if(i3) return 0;            //数値
Note: See TracChangeset for help on using the changeset viewer.