Changeset 193 in dev for trunk/abdev/BasicCompiler32/Compile_Var.cpp
- Timestamp:
- Jun 26, 2007, 5:04:50 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/Compile_Var.cpp
r183 r193 5 5 #include <CodeGenerator.h> 6 6 #include <Compiler.h> 7 #include <VariableImpl.h> 7 8 8 9 #include "../BasicCompiler_Common/common.h" … … 367 368 // 名前空間を分離 368 369 char namespaceStr[VN_SIZE]="", simpleName[VN_SIZE]; 369 Smoothie::GetMeta().namespaceScopesCollection.SplitNamespace( variable, namespaceStr, simpleName );370 compiler.GetMeta().GetNamespaces().SplitNamespace( variable, namespaceStr, simpleName ); 370 371 371 372 // 先頭オブジェクトまたはクラス名と入れ子メンバに分割 … … 461 462 //Const修飾子のメソッド内でメンバ書き込みアクセスが発生したとき 462 463 //(コンストラクタ、デストラクタ内を除く) 463 const CMethod *pMethod = Smoothie::GetMeta().GetClasses().GetNowCompilingMethodInfo();464 const CMethod *pMethod = compiler.GetMeta().GetClasses().GetNowCompilingMethodInfo(); 464 465 if( isWriteAccess && 465 466 pMethod->IsConst() && … … 524 525 } 525 526 526 int typeDefIndex = Smoothie::GetMeta().typeDefs.GetIndex( VarName );527 int typeDefIndex = compiler.GetMeta().GetTypeDefs().GetIndex( VarName ); 527 528 if( typeDefIndex != -1 ){ 528 529 // TypeDef後の型名だったとき 529 lstrcpy( VarName, Smoothie::GetMeta().typeDefs[typeDefIndex].GetBaseName().c_str() );530 lstrcpy( VarName, compiler.GetMeta().GetTypeDefs()[typeDefIndex].GetBaseName().c_str() ); 530 531 } 531 532 … … 832 833 char *temp; 833 834 temp=(char *)i64data; 834 i2= Compiler::GetNativeCode().GetDataTable().AddString(temp,lstrlen(temp));835 i2=compiler.GetNativeCode().GetDataTable().AddString(temp,lstrlen(temp)); 835 836 HeapDefaultFree(temp); 836 837 … … 1022 1023 char *temp; 1023 1024 temp=(char *)i64data; 1024 i2= Compiler::GetNativeCode().GetDataTable().AddString(temp,lstrlen(temp));1025 i2=compiler.GetNativeCode().GetDataTable().AddString(temp,lstrlen(temp)); 1025 1026 HeapDefaultFree(temp); 1026 1027 … … 1095 1096 bool isConst = ( dwFlags & DIMFLAG_CONST ) ? true:false; 1096 1097 1097 Variable *pVar = new Variable ( VarName, type, isConst );1098 Variable *pVar = new VariableImpl( VarName, type, isConst ); 1098 1099 1099 1100 if( SubScripts[0] != -1 ){
Note:
See TracChangeset
for help on using the changeset viewer.