Changeset 103 in dev for BasicCompiler32/MakePeHdr.cpp


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler32/MakePeHdr.cpp

    r100 r103  
    351351
    352352    if(!bDll){
     353        // 名前空間が初期化されているかをチェック
     354        if( Smoothie::Lexical::liveingNamespaceScopes.size() ){
     355            SetError();
     356        }
     357
    353358        //ラベル用のメモリを確保
    354359        extern LABEL *pLabelNames;
     
    445450        HeapDefaultFree(WithInfo.ppName);
    446451        HeapDefaultFree(WithInfo.pWithCp);
     452
     453        // 名前空間が正しく閉じられているかをチェック
     454        if( Smoothie::Lexical::liveingNamespaceScopes.size() ){
     455            SetError(63,NULL,-1);
     456        }
     457
    447458    }
    448459    else{
Note: See TracChangeset for help on using the changeset viewer.