Ignore:
Timestamp:
Feb 20, 2008, 7:44:27 PM (16 years ago)
Author:
dai_9181
Message:

BOOL bLiving → bool isLiving

Location:
trunk/abdev/BasicCompiler_Common/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/src/LexicalScope.cpp

    r290 r392  
    7676
    7777    //使用済みローカル変数の生存チェックを外す
    78     BOOST_FOREACH( Variable *pVar, (*pVars) ){
    79         if(pVar->bLiving&&pVar->GetScopeLevel()==level){
    80             pVar->bLiving=0;
     78    BOOST_FOREACH( Variable *pVar, (*pVars) )
     79    {
     80        if( pVar->isLiving && pVar->GetScopeLevel() == level )
     81        {
     82            pVar->isLiving = false;
    8183            pVar->SetScopeEndAddress( compiler.codeGenerator.GetNativeCodeSize() );
    8284        }
     
    115117
    116118        //同一レベルのレキシカルスコープのみを検知
    117         if(!pVar->bLiving) continue;
     119        if( !pVar->isLiving ) continue;
    118120        if( pVar->GetScopeLevel() != GetNowLevel() ) continue;
    119121
  • trunk/abdev/BasicCompiler_Common/src/Meta.cpp

    r288 r392  
    8888        if( pVar->GetScopeLevel() == 0 )
    8989        {
    90             pVar->bLiving = TRUE;
     90            pVar->isLiving = true;
    9191        }
    9292
  • trunk/abdev/BasicCompiler_Common/src/Variable.cpp

    r288 r392  
    3434    for( int i=(int)this->size()-1; i>=0 ; i-- ){
    3535        const Variable *pVar = (*this)[i];
    36         if( pVar->bLiving                                           //現在のスコープで有効なもの
     36        if( pVar->isLiving                                          //現在のスコープで有効なもの
    3737            && pVar->GetScopeLevel() == compiler.codeGenerator.lexicalScopes.GetNowLevel()  //現在のスコープと同一レベル
    3838            )
     
    5151    for( int i=(int)this->size()-1; i>=0 ; i-- ){
    5252        const Variable *pVar = (*this)[i];
    53         if( pVar->bLiving                                           //現在のスコープで有効なもの
     53        if( pVar->isLiving                                          //現在のスコープで有効なもの
    5454            && pVar->GetScopeLevel() <= compiler.codeGenerator.lexicalScopes.GetNowLevel()  //現在のスコープレベルを超さないもの(Returnによる解放処理中を考慮)
    5555            ){
Note: See TracChangeset for help on using the changeset viewer.