Changeset 27 in dev for BasicCompiler64/Compile_Var.cpp


Ignore:
Timestamp:
Jan 7, 2007, 6:51:20 AM (17 years ago)
Author:
dai_9181
Message:

静的メンバ、静的メソッド周りを修正。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler64/Compile_Var.cpp

    r20 r27  
    520520    }
    521521
    522     /////////////////////
    523     // グローバル変数
    524     /////////////////////
    525 
    526     for(i=MaxGlobalVarNum-1;i>=0;i--){  //レキシカルスコープを考慮してバックサーチ
    527         if(GlobalVar[i].bLiving){
    528             if(lstrcmp(VarName,GlobalVar[i].name)==0) break;
    529         }
    530     }
    531     if(i>=0){
    532         goto GlobalOk;
    533     }
    534 
    535522
    536523    //////////////////////////
     
    540527    if(member[0]){
    541528        lstrcpy(temporary,member);
    542         GetVarFormatString(temporary,array,lpPtrOffset,member,&i);
     529
     530        char tempMember[VN_SIZE];
     531        char tempArray[VN_SIZE];
     532        GetVarFormatString(temporary,tempArray,lpPtrOffset,tempMember,&i);
    543533
    544534        char temp2[VN_SIZE];
     
    549539
    550540        if(i!=MaxGlobalVarNum){
     541            lstrcpy(member,tempMember);
     542            lstrcpy(array,tempArray);
    551543            goto GlobalOk;
    552544        }
     
    564556            goto GlobalOk;
    565557        }
     558    }
     559
     560
     561    /////////////////////
     562    // グローバル変数
     563    /////////////////////
     564
     565    for(i=MaxGlobalVarNum-1;i>=0;i--){  //レキシカルスコープを考慮してバックサーチ
     566        if(GlobalVar[i].bLiving){
     567            if(lstrcmp(VarName,GlobalVar[i].name)==0) break;
     568        }
     569    }
     570    if(i>=0){
     571        goto GlobalOk;
    566572    }
    567573
Note: See TracChangeset for help on using the changeset viewer.