Changeset 193 in dev for trunk/abdev/BasicCompiler_Common/DebugMiddleFile.cpp
- Timestamp:
- Jun 26, 2007, 5:04:50 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/DebugMiddleFile.cpp
r191 r193 1 1 #include <jenga/include/smoothie/Smoothie.h> 2 2 3 #include <Compiler.h> 3 4 #include <ClassImpl.h> 5 #include <VariableImpl.h> 4 6 5 7 #include "../BasicCompiler_Common/common.h" … … 32 34 (*p)+=lstrlen(buffer+(*p))+1; 33 35 34 type.SetIndex( (LONG_PTR) Smoothie::GetMeta().GetClasses().Find(szClassName) );36 type.SetIndex( (LONG_PTR)compiler.GetMeta().GetClasses().Find(szClassName) ); 35 37 } 36 38 else{ … … 119 121 120 122 //イテレータをリセット 121 Smoothie::GetMeta().GetClasses().Iterator_Reset();123 compiler.GetMeta().GetClasses().Iterator_Reset(); 122 124 123 125 //個数 124 *(long *)(buffer+i2)= Smoothie::GetMeta().GetClasses().Iterator_GetMaxCount();125 i2+=sizeof(long); 126 127 while( Smoothie::GetMeta().GetClasses().Iterator_HasNext()){126 *(long *)(buffer+i2)=compiler.GetMeta().GetClasses().Iterator_GetMaxCount(); 127 i2+=sizeof(long); 128 129 while(compiler.GetMeta().GetClasses().Iterator_HasNext()){ 128 130 CClass *pobj_c; 129 pobj_c= Smoothie::GetMeta().GetClasses().Iterator_GetNext();131 pobj_c=compiler.GetMeta().GetClasses().Iterator_GetNext(); 130 132 131 133 //クラス名 … … 139 141 // TypeDef情報 140 142 ////////////////// 141 *(long *)(buffer+i2)=(int) Smoothie::GetMeta().typeDefs.size();142 i2+=sizeof(long); 143 for(i3=0;i3<(int) Smoothie::GetMeta().typeDefs.size();i3++){144 lstrcpy(buffer+i2, Smoothie::GetMeta().typeDefs[i3].GetName().c_str() );145 i2+=lstrlen(buffer+i2)+1; 146 147 lstrcpy(buffer+i2, Smoothie::GetMeta().typeDefs[i3].GetBaseName().c_str() );143 *(long *)(buffer+i2)=(int)compiler.GetMeta().GetTypeDefs().size(); 144 i2+=sizeof(long); 145 for(i3=0;i3<(int)compiler.GetMeta().GetTypeDefs().size();i3++){ 146 lstrcpy(buffer+i2,compiler.GetMeta().GetTypeDefs()[i3].GetName().c_str() ); 147 i2+=lstrlen(buffer+i2)+1; 148 149 lstrcpy(buffer+i2,compiler.GetMeta().GetTypeDefs()[i3].GetBaseName().c_str() ); 148 150 i2+=lstrlen(buffer+i2)+1; 149 151 … … 307 309 308 310 //イテレータをリセット 309 Smoothie::GetMeta().GetClasses().Iterator_Reset();310 311 while( Smoothie::GetMeta().GetClasses().Iterator_HasNext()){311 compiler.GetMeta().GetClasses().Iterator_Reset(); 312 313 while(compiler.GetMeta().GetClasses().Iterator_HasNext()){ 312 314 CClass *pobj_c; 313 pobj_c= Smoothie::GetMeta().GetClasses().Iterator_GetNext();315 pobj_c=compiler.GetMeta().GetClasses().Iterator_GetNext(); 314 316 315 317 … … 497 499 } 498 500 499 Smoothie::GetMeta().SetClasses( this->pobj_DBClass );501 compiler.GetMeta().SetClasses( this->pobj_DBClass ); 500 502 501 503 … … 505 507 506 508 //初期化 507 Smoothie::GetMeta().typeDefs.clear();509 compiler.GetMeta().GetTypeDefs().clear(); 508 510 509 511 //個数を取得 … … 515 517 516 518 // 名前空間に未対応 517 Smoothie::GetMeta().typeDefs.push_back( TypeDef( NamespaceScopes(), temp5, buffer+i2, -1 ) );519 compiler.GetMeta().GetTypeDefs().push_back( TypeDef( NamespaceScopes(), temp5, buffer+i2, -1 ) ); 518 520 519 521 i2+=lstrlen(buffer+i2)+1; … … 546 548 bool isArray = (buffer[i2++]) ? true:false; 547 549 548 Variable *pVar = new Variable ( name, type, false, isRef );550 Variable *pVar = new VariableImpl( name, type, false, isRef ); 549 551 550 552 if(isArray){ … … 592 594 const CClass *pClass = NULL; 593 595 if(szParentClassName[0]){ 594 pClass= Smoothie::GetMeta().GetClasses().Find(szParentClassName);596 pClass=compiler.GetMeta().GetClasses().Find(szParentClassName); 595 597 } 596 598 … … 636 638 bool isArray = (buffer[i2++]) ? true:false; 637 639 638 Variable *pVar = new Variable ( name, type, false, isRef );640 Variable *pVar = new VariableImpl( name, type, false, isRef ); 639 641 640 642 if(isArray){ … … 697 699 i2+=lstrlen(buffer+i2)+1; 698 700 699 pobj_c = const_cast<CClass *>( Smoothie::GetMeta().GetClasses().Find(szClassName) );701 pobj_c = const_cast<CClass *>( compiler.GetMeta().GetClasses().Find(szClassName) ); 700 702 701 703 //仮想関数の数 … … 748 750 const CClass *pobj_InheritsClass = NULL; 749 751 if(szInherits[0]){ 750 pobj_InheritsClass= Smoothie::GetMeta().GetClasses().Find(szInherits);752 pobj_InheritsClass=compiler.GetMeta().GetClasses().Find(szInherits); 751 753 } 752 754 … … 945 947 946 948 // クラス情報 947 Smoothie::GetMeta().SetClasses( this->pobj_DBClass );949 compiler.GetMeta().SetClasses( this->pobj_DBClass ); 948 950 949 951 //定数を取得
Note:
See TracChangeset
for help on using the changeset viewer.