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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/VariableOpe.cpp

    r536 r537  
    560560    const Variable *pVar = NULL;
    561561
    562     if( UserProc::IsLocalAreaCompiling() ){
     562    if( compiler.IsLocalAreaCompiling() ){
    563563        /////////////////
    564564        // ローカル変数
    565565        /////////////////
    566566
    567         pVar = UserProc::CompilingUserProc().GetLocalVars().BackSearch( LexicalAnalyzer::FullNameToSymbol( VarName ) );
     567        pVar = compiler.GetCompilingUserProc().GetLocalVars().BackSearch( LexicalAnalyzer::FullNameToSymbol( VarName ) );
    568568        if( pVar ){
    569569            goto ok;
     
    613613
    614614    char temporary[VN_SIZE];
    615     if( UserProc::IsLocalAreaCompiling() ){
     615    if( compiler.IsLocalAreaCompiling() ){
    616616        GetNowStaticVarFullName(VarName,temporary);
    617617
     
    905905
    906906BOOL GetNowStaticVarFullName(char *VarName,char *FullName){
    907     if( UserProc::IsGlobalAreaCompiling() ){
     907    if( compiler.IsGlobalAreaCompiling() ){
    908908        // グローバル領域をコンパイル中のとき
    909909        return 0;
    910910    }
    911911
    912     const UserProc &proc = UserProc::CompilingUserProc();
     912    const UserProc &proc = compiler.GetCompilingUserProc();
    913913
    914914    //Static識別
     
    10821082            // Blittable型のときは基本型として扱う
    10831083            // ※ただし、コンパイル中のメソッドがBlittable型クラスに属していないこと
    1084             if( UserProc::IsLocalAreaCompiling()
    1085                 && UserProc::CompilingUserProc().HasParentClass()
    1086                 && UserProc::CompilingUserProc().GetParentClass().IsBlittableType() )
     1084            if( compiler.IsLocalAreaCompiling()
     1085                && compiler.GetCompilingUserProc().HasParentClass()
     1086                && compiler.GetCompilingUserProc().GetParentClass().IsBlittableType() )
    10871087            {
    10881088                // コンパイル中のメソッドがBlittable型クラスに属している
     
    10941094    }
    10951095
    1096     if(dwFlags&DIMFLAG_STATIC){
    1097         if( UserProc::IsGlobalAreaCompiling() ){
     1096    if(dwFlags&DIMFLAG_STATIC)
     1097    {
     1098        if( compiler.IsGlobalAreaCompiling() )
     1099        {
    10981100            compiler.errorMessenger.Output(60,NULL,cp);
    10991101            return;
Note: See TracChangeset for help on using the changeset viewer.