Changeset 79 in dev for BasicCompiler32/Compile_Var.cpp


Ignore:
Timestamp:
Mar 25, 2007, 5:58:57 AM (17 years ago)
Author:
dai_9181
Message:

バージョンをβ17にした。
#strictをデフォルトの状態で適用するようにした(#90)。
Dimステートメントにおいて、初期値式とAsが同時に指定されていたとき、As以降も初期値式の一部として捉えるよう、変更(#91)。
GetTypeDef関数を完全廃止。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler32/Compile_Var.cpp

    r76 r79  
    10791079}
    10801080
    1081 void dim(bool isRef, char *VarName,int *SubScripts,Type &type,char *InitBuf,char *ConstractParameter,DWORD dwFlags){
     1081void dim( char *VarName,int *SubScripts,Type &type,char *InitBuf,char *ConstractParameter,DWORD dwFlags){
    10821082    if( UserProc::IsGlobalAreaCompiling() ){
    10831083        /////////////////////////
     
    10851085        /////////////////////////
    10861086
    1087         AddGlobalVariable(isRef,VarName,SubScripts,type,InitBuf,ConstractParameter,dwFlags);
     1087        AddGlobalVariable(VarName,SubScripts,type,InitBuf,ConstractParameter,dwFlags);
    10881088    }
    10891089    else{
     
    10921092        /////////////////
    10931093
    1094         if( UserProc::CompilingUserProc().localVars.BackSearch( VarName ) ){
     1094        if( UserProc::CompilingUserProc().localVars.DuplicateCheck( VarName ) ){
    10951095            //2重定義のエラー
    10961096            SetError(15,VarName,cp);
     
    11001100        bool isConst = ( dwFlags & DIMFLAG_CONST ) ? true:false;
    11011101
    1102         Variable *pVar = new Variable( VarName, type, isConst, isRef );
     1102        Variable *pVar = new Variable( VarName, type, isConst );
    11031103
    11041104        if( SubScripts[0] != -1 ){
Note: See TracChangeset for help on using the changeset viewer.