Changeset 138 in dev for BasicCompiler32/Compile_Var.cpp


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler32/Compile_Var.cpp

    r137 r138  
    714714}
    715715
    716 bool SetInitGlobalData(int offset,const Type &type,const int *SubScripts,char *InitBuf){
     716bool SetInitGlobalData(int offset,const Type &type,const int *SubScripts,const char *lpszInitBuf){
    717717    extern BYTE *initGlobalBuf;
    718718    int i,i2,i3;
    719719    char temporary[VN_SIZE];
     720    char InitBuf[VN_SIZE];
     721    lstrcpy( InitBuf, lpszInitBuf );
    720722
    721723    if(InitBuf[0]=='['){
     
    851853    return true;
    852854}
    853 bool InitLocalVar(int offset,const Type &type,const int *SubScripts,char *InitBuf){
     855bool InitLocalVar(int offset,const Type &type,const int *SubScripts,const char *lpszInitBuf){
    854856    int i,i2,i3;
    855857    char temporary[VN_SIZE];
     858    char InitBuf[VN_SIZE];
     859    lstrcpy( InitBuf, lpszInitBuf );
    856860
    857861    if(InitBuf[0]=='['){
     
    10611065}
    10621066
    1063 void dim( char *VarName,int *SubScripts,Type &type,char *InitBuf,char *ConstractParameter,DWORD dwFlags){
     1067void dim( char *VarName,int *SubScripts,Type &type,const char *InitBuf,const char *ConstractParameter,DWORD dwFlags){
    10641068    if( UserProc::IsGlobalAreaCompiling() ){
    10651069        /////////////////////////
Note: See TracChangeset for help on using the changeset viewer.