Changeset 79 in dev for BasicCompiler32/Compile_Var.cpp
- Timestamp:
- Mar 25, 2007, 5:58:57 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler32/Compile_Var.cpp
r76 r79 1079 1079 } 1080 1080 1081 void dim( bool isRef,char *VarName,int *SubScripts,Type &type,char *InitBuf,char *ConstractParameter,DWORD dwFlags){1081 void dim( char *VarName,int *SubScripts,Type &type,char *InitBuf,char *ConstractParameter,DWORD dwFlags){ 1082 1082 if( UserProc::IsGlobalAreaCompiling() ){ 1083 1083 ///////////////////////// … … 1085 1085 ///////////////////////// 1086 1086 1087 AddGlobalVariable( isRef,VarName,SubScripts,type,InitBuf,ConstractParameter,dwFlags);1087 AddGlobalVariable(VarName,SubScripts,type,InitBuf,ConstractParameter,dwFlags); 1088 1088 } 1089 1089 else{ … … 1092 1092 ///////////////// 1093 1093 1094 if( UserProc::CompilingUserProc().localVars. BackSearch( VarName ) ){1094 if( UserProc::CompilingUserProc().localVars.DuplicateCheck( VarName ) ){ 1095 1095 //2重定義のエラー 1096 1096 SetError(15,VarName,cp); … … 1100 1100 bool isConst = ( dwFlags & DIMFLAG_CONST ) ? true:false; 1101 1101 1102 Variable *pVar = new Variable( VarName, type, isConst , isRef);1102 Variable *pVar = new Variable( VarName, type, isConst ); 1103 1103 1104 1104 if( SubScripts[0] != -1 ){
Note:
See TracChangeset
for help on using the changeset viewer.