Changeset 103 in dev for BasicCompiler64/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
  • BasicCompiler64/MakePeHdr.cpp

    r100 r103  
    302302
    303303    if(!bDll){
     304        // 名前空間が初期化されているかをチェック
     305        if( Smoothie::Lexical::liveingNamespaceScopes.size() ){
     306            SetError();
     307        }
     308
    304309        //ラベル用のメモリを確保
    305310        extern LABEL *pLabelNames;
     
    411416        HeapDefaultFree(WithInfo.ppName);
    412417        HeapDefaultFree(WithInfo.pWithCp);
     418
     419        // 名前空間が正しく閉じられているかをチェック
     420        if( Smoothie::Lexical::liveingNamespaceScopes.size() ){
     421            SetError(63,NULL,-1);
     422        }
     423
    413424    }
    414425    else{
Note: See TracChangeset for help on using the changeset viewer.