Ignore:
Timestamp:
May 3, 2008, 6:58:38 PM (16 years ago)
Author:
dai_9181
Message:

UserProcクラスによるコンパイル中関数管理用メソッドを除去(すべてCompilerクラス内で処理するようにした)。

Location:
trunk/ab5.0/abdev/BasicCompiler_Common/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Compiler.h

    r536 r537  
    192192
    193193    void ClearCompilingUserProcAndClass();
     194    void StartGlobalAreaCompile();
     195    void FinishGlobalAreaCompile();
    194196    void SetCompilingClass( const CClass *pClass );
     197    void SetCompilingUserProc( const UserProc *pUserProc );
    195198    void StartProcedureCompile( const UserProc *pUserProc );
    196199    void FinishProcedureCompile();
    197200
    198201    bool IsGlobalAreaCompiling();
     202    bool IsLocalAreaCompiling();
    199203    const UserProc &GetCompilingUserProc();
    200204    bool IsCompilingClass();
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Procedure.h

    r524 r537  
    371371
    372372
    373 
    374     /////////////////////////////////////////////////////////////////
    375     // コンパイル中の関数を管理
    376     /////////////////////////////////////////////////////////////////
    377 private:
    378     static const UserProc *pCompilingUserProc;
    379 public:
    380373    static const UserProc *pGlobalProc;
    381     static void CompileStartForGlobalArea(){
    382         pCompilingUserProc = NULL;
    383     }
    384     static void CompileStartForUserProc( const UserProc *pUserProc ){
    385         pCompilingUserProc = pUserProc;
    386     }
    387     static bool IsGlobalAreaCompiling(){
    388         return ( pCompilingUserProc == NULL );
    389     }
    390     static bool IsLocalAreaCompiling(){
    391         return ( pCompilingUserProc != NULL );
    392     }
    393     static const UserProc &CompilingUserProc(){
    394         return *pCompilingUserProc;
    395     }
    396374};
    397375
Note: See TracChangeset for help on using the changeset viewer.