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/compiler_x86/Compile_Var.cpp

    r536 r537  
    388388
    389389
    390     if( UserProc::IsLocalAreaCompiling() ){
     390    if( compiler.IsLocalAreaCompiling() ){
    391391        //////////////////
    392392        // ローカル変数
    393393        //////////////////
    394394
    395         const Variable *pVar = UserProc::CompilingUserProc().GetLocalVars().BackSearch( LexicalAnalyzer::FullNameToSymbol( VarName ) );
     395        const Variable *pVar = compiler.GetCompilingUserProc().GetLocalVars().BackSearch( LexicalAnalyzer::FullNameToSymbol( VarName ) );
    396396        if( pVar ){
    397397            //ポインタ変数の場合
     
    517517
    518518        char temporary[VN_SIZE];
    519         if( UserProc::IsLocalAreaCompiling() ){
     519        if( compiler.IsLocalAreaCompiling() ){
    520520            GetNowStaticVarFullName(VarName,temporary);
    521521
     
    10921092
    10931093void dim( char *VarName, const Subscripts &subscripts, const Type &type,const char *InitBuf,const char *ConstractParameter,DWORD dwFlags){
    1094     if( UserProc::IsGlobalAreaCompiling() ){
     1094    if( compiler.IsGlobalAreaCompiling() ){
    10951095        /////////////////////////
    10961096        // グローバル変数
     
    11041104        /////////////////
    11051105
    1106         if( UserProc::CompilingUserProc().GetLocalVars().DuplicateCheck( LexicalAnalyzer::FullNameToSymbol( VarName ) ) ){
     1106        if( compiler.GetCompilingUserProc().GetLocalVars().DuplicateCheck( LexicalAnalyzer::FullNameToSymbol( VarName ) ) ){
    11071107            //2重定義のエラー
    11081108            compiler.errorMessenger.Output(15,VarName,cp);
     
    11281128
    11291129        // 変数を追加
    1130         UserProc::CompilingUserProc().GetLocalVars().push_back( pVar );
     1130        compiler.GetCompilingUserProc().GetLocalVars().push_back( pVar );
    11311131
    11321132        //アラインメントを考慮
     
    11451145                // 呼び出し側のオフセットズレを考慮する
    11461146
    1147                 if( 0 == ( UserProc::CompilingUserProc().RealParams().GetMemorySize() + PTR_SIZE /* ret分 */ ) % alignment ){
     1147                if( 0 == ( compiler.GetCompilingUserProc().RealParams().GetMemorySize() + PTR_SIZE /* ret分 */ ) % alignment ){
    11481148                    AllLocalVarSize += PTR_SIZE;
    11491149                }
Note: See TracChangeset for help on using the changeset viewer.