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

    r97 r103  
    10451045    bool isConst = ( dwFlag & DIMFLAG_CONST ) ? true:false;
    10461046
    1047     Variable *pVar = new Variable( name, type, isConst );
     1047    Variable *pVar = new Variable( Smoothie::Lexical::liveingNamespaceScopes, name, type, isConst );
    10481048
    10491049    if( SubScripts[0] != -1 ){
     
    11721172
    11731173        //定数と2重定義されていないる場合は抜け出す
    1174         if(CDBConst::obj.GetType(VarName)){
     1174        if(CDBConst::obj.GetBasicType(VarName)){
    11751175            return;
    11761176        }
     
    11921192
    11931193    //定数と2重定義されていないかを調べる
    1194     if(CDBConst::obj.GetType(VarName)){
     1194    if(CDBConst::obj.GetBasicType(VarName)){
    11951195        SetError(15,VarName,cp);
    11961196        return;
Note: See TracChangeset for help on using the changeset viewer.