Ignore:
Timestamp:
Jul 12, 2007, 2:58:26 AM (17 years ago)
Author:
dai_9181
Message:

コード全体のリファクタリングを実施

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler64/Compile_Func.cpp

    r198 r206  
     1#include "stdafx.h"
     2
    13#include <jenga/include/smoothie/Smoothie.h>
    24
     
    4648    }
    4749
    48     int SubScripts[MAX_ARRAYDIM];
     50    Subscripts subscripts;
    4951    RELATIVE_VAR RelativeVar;
    50     if(!GetVarOffsetReadOnly(tempParm,&RelativeVar,type,SubScripts)) return;
     52    if(!GetVarOffsetReadOnly(tempParm,&RelativeVar,type,&subscripts)) return;
    5153
    5254    if(type.GetBasicType()&FLAG_PTR){
     
    5961    int typeSize = type.GetSize();
    6062
    61     if(bArrayHead) typeSize*=JumpSubScripts(SubScripts);
     63    if(bArrayHead) typeSize*=JumpSubScripts(subscripts);
    6264
    6365    //mov rax,TypeSize
     
    6870void Opcode_Func_AddressOf( const char *name ){
    6971    extern int cp;
    70     UserProc *pUserProc;
     72    const UserProc *pUserProc;
    7173
    7274    extern LONG_PTR ProcPtr_BaseIndex;
     
    7476        //左辺の型にのっとり、オーバーロードを解決
    7577
    76         std::vector<UserProc *> subs;
     78        std::vector<const UserProc *> subs;
    7779        GetOverloadSubHash( name, subs );
    7880        if( subs.size() == 0 ){
     
    131133            SetThisPtrToReg(REG_RCX);
    132134
    133             pobj_c=Smoothie::Temp::pCompilingClass;
     135            pobj_c=compiler.pCompilingClass;
    134136        }
    135137
Note: See TracChangeset for help on using the changeset viewer.