Changeset 138 in dev for BasicCompiler64


Ignore:
Timestamp:
Jun 12, 2007, 1:57:26 AM (17 years ago)
Author:
dai_9181
Message:

Member::initializeExpressionのリファクタリング

Location:
BasicCompiler64
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler64/Compile_Var.cpp

    r137 r138  
    736736}
    737737
    738 bool SetInitGlobalData(int offset,const Type &type,const int *SubScripts,char *InitBuf){
     738bool SetInitGlobalData(int offset,const Type &type,const int *SubScripts,const char *lpszInitBuf){
    739739    extern BYTE *initGlobalBuf;
    740740    int i,i2,i3;
    741741    char temporary[VN_SIZE];
     742    char InitBuf[VN_SIZE];
     743    lstrcpy( InitBuf, lpszInitBuf );
    742744
    743745    if(InitBuf[0]=='['){
     
    873875    return true;
    874876}
    875 bool InitLocalVar(int offset,const Type &type,const int *SubScripts,char *InitBuf){
     877bool InitLocalVar(int offset,const Type &type,const int *SubScripts,const char *lpszInitBuf){
    876878    int i,i2,i3;
    877879    char temporary[VN_SIZE];
     880    char InitBuf[VN_SIZE];
     881    lstrcpy( InitBuf, lpszInitBuf );
    878882
    879883    if(InitBuf[0]=='['){
     
    10471051}
    10481052
    1049 void dim( char *VarName,int *SubScripts,Type &type,char *InitBuf,char *ConstractParameter,DWORD dwFlags){
     1053void dim( char *VarName,int *SubScripts,Type &type,const char *InitBuf,const char *ConstractParameter,DWORD dwFlags){
    10501054    if( UserProc::IsGlobalAreaCompiling() ){
    10511055        /////////////////////////
  • BasicCompiler64/Opcode.h

    r131 r138  
    324324void SetThisPtrToReg(int reg);
    325325bool GetVarOffset(bool isErrorEnabled,bool isWriteAccess,const char *NameBuffer,RELATIVE_VAR *pRelativeVar,Type &resultType,int *pss = NULL);
    326 bool SetInitGlobalData(int offset,const Type &type,const int *SubScripts,char *InitBuf);
     326bool SetInitGlobalData(int offset,const Type &type,const int *SubScripts,const char *InitBuf);
    327327#define DIMFLAG_INITDEBUGVAR            0x01
    328328#define DIMFLAG_NONCALL_CONSTRACTOR     0x02
    329329#define DIMFLAG_STATIC                  0x04
    330330#define DIMFLAG_CONST                   0x08
    331 void dim( char *VarName,int *SubScripts,Type &type,char *InitBuf,char *ConstractParameter,DWORD dwFlags);
     331void dim( char *VarName,int *SubScripts,Type &type, const char *InitBuf,const char *ConstractParameter,DWORD dwFlags);
    332332void SetVarPtrToReg(int reg,RELATIVE_VAR *pRelativeVar);
    333333bool Compile_AddGlobalRootsForGc();
Note: See TracChangeset for help on using the changeset viewer.