Changeset 319 in dev for trunk/abdev/BasicCompiler_Common


Ignore:
Timestamp:
Sep 9, 2007, 12:37:48 PM (17 years ago)
Author:
dai_9181
Message:

GCのバグをいくつか修正

Location:
trunk/abdev/BasicCompiler_Common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/ParamImpl.cpp

    r290 r319  
    4242                for(i++,i2++;;i++,i2++){
    4343                    temporary[i2]=buffer[i];
     44                    if( buffer[i] == '\0' )
     45                    {
     46                        SetError();
     47                        break;
     48                    }
    4449                    if(buffer[i]=='\"') break;
    4550                }
  • trunk/abdev/BasicCompiler_Common/Subroutine.cpp

    r316 r319  
    494494    pSub_System_Call_Destructor_of_GlobalObject->CompleteCompile();
    495495
     496    // _System_CGarbageCollection.RegisterGlobalRootsは一番最後にコンパイル
     497    extern const UserProc *pUserProc_System_CGarbageCollection_RegisterGlobalRoots;
     498    pUserProc_System_CGarbageCollection_RegisterGlobalRoots->CompleteCompile();
     499
    496500repeat:
    497501    compiler.GetObjectModule().meta.GetUserProcs().Iterator_Reset();
     
    531535        pSub_System_Call_Destructor_of_GlobalObject->KillCompileStatus();
    532536        CompileBufferInProcedure( *pSub_System_Call_Destructor_of_GlobalObject );
    533     }
    534 }
     537
     538        // _System_CGarbageCollection.RegisterGlobalRootsは一番最後にコンパイル
     539        pUserProc_System_CGarbageCollection_RegisterGlobalRoots->KillCompileStatus();
     540        CompileBufferInProcedure( *pUserProc_System_CGarbageCollection_RegisterGlobalRoots );
     541    }
     542}
Note: See TracChangeset for help on using the changeset viewer.