Changeset 87 in dev for BasicCompiler_Common
- Timestamp:
- Apr 1, 2007, 2:28:03 AM (18 years ago)
- Location:
- BasicCompiler_Common
- Files:
-
- 2 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/Class.cpp
r85 r87 1424 1424 } 1425 1425 1426 void CDBClass::GenerateRuntimeTypeInfo(){ 1427 } 1428 1429 1430 1426 1431 CClass *CDBClass::GetStringClass() const 1427 1432 { -
BasicCompiler_Common/Class.h
r78 r87 217 217 void GetClass_recur(const char *lpszInheritsClass); 218 218 void GetAllClassInfo(void); 219 void GenerateRuntimeTypeInfo(); 219 220 220 221 -
BasicCompiler_Common/DebugMiddleFile.cpp
r79 r87 138 138 // TypeDef情報 139 139 ////////////////// 140 *(long *)(buffer+i2)=(int)House:: typeDefs.size();141 i2+=sizeof(long); 142 for(i3=0;i3<(int)House:: typeDefs.size();i3++){143 lstrcpy(buffer+i2,House:: typeDefs[i3].GetNewName().c_str() );144 i2+=lstrlen(buffer+i2)+1; 145 146 lstrcpy(buffer+i2,House:: typeDefs[i3].GetBaseName().c_str() );140 *(long *)(buffer+i2)=(int)House::Meta::typeDefs.size(); 141 i2+=sizeof(long); 142 for(i3=0;i3<(int)House::Meta::typeDefs.size();i3++){ 143 lstrcpy(buffer+i2,House::Meta::typeDefs[i3].GetNewName().c_str() ); 144 i2+=lstrlen(buffer+i2)+1; 145 146 lstrcpy(buffer+i2,House::Meta::typeDefs[i3].GetBaseName().c_str() ); 147 147 i2+=lstrlen(buffer+i2)+1; 148 148 … … 505 505 506 506 //初期化 507 House:: typeDefs.clear();507 House::Meta::typeDefs.clear(); 508 508 509 509 //個数を取得 … … 514 514 i2+=lstrlen(buffer+i2)+1; 515 515 516 House:: typeDefs.push_back( TypeDef( temp5, buffer+i2 ) );516 House::Meta::typeDefs.push_back( TypeDef( temp5, buffer+i2 ) ); 517 517 518 518 i2+=lstrlen(buffer+i2)+1; -
BasicCompiler_Common/Subroutine.cpp
r79 r87 180 180 GetVarType(fullCallName,type,false); 181 181 182 ProcPointer *pProcPtr = House:: procPointers[type.GetIndex()];182 ProcPointer *pProcPtr = House::Meta::procPointers[type.GetIndex()]; 183 183 resultType = pProcPtr->ReturnType(); 184 184 … … 781 781 pProcPointer->SetParamsAndReturnType( paramStr.c_str(), nowLine ); 782 782 783 House:: procPointers.push_back( pProcPointer );784 785 return (int)House:: procPointers.size()-1;783 House::Meta::procPointers.push_back( pProcPointer ); 784 785 return (int)House::Meta::procPointers.size()-1; 786 786 } 787 787 void DeleteProcPtrInfo(void){ 788 BOOST_FOREACH( ProcPointer *pProcPointer, House:: procPointers ){788 BOOST_FOREACH( ProcPointer *pProcPointer, House::Meta::procPointers ){ 789 789 delete pProcPointer; 790 790 } 791 791 792 House:: procPointers.clear();793 } 792 House::Meta::procPointers.clear(); 793 } -
BasicCompiler_Common/Type.cpp
r78 r87 89 89 // TypeDefされた型 90 90 //////////////////// 91 int i=House:: typeDefs.GetIndex( typeName.c_str() );91 int i=House::Meta::typeDefs.GetIndex( typeName.c_str() ); 92 92 if(i!=-1){ 93 type = House:: typeDefs[i].GetBaseType();93 type = House::Meta::typeDefs[i].GetBaseType(); 94 94 return true; 95 95 } … … 463 463 } 464 464 else{ 465 if( House:: procPointers[index]->ReturnType().IsNull() ){465 if( House::Meta::procPointers[index]->ReturnType().IsNull() ){ 466 466 return "*Sub"; 467 467 } -
BasicCompiler_Common/TypeDef.cpp
r79 r87 126 126 cp = nowLine; 127 127 128 House:: typeDefs.Add(temporary,pTemp);128 House::Meta::typeDefs.Add(temporary,pTemp); 129 129 } 130 130 … … 164 164 if(basbuf[i]=='\0') break; 165 165 } 166 House:: typeDefs.Add(temporary,"Long");166 House::Meta::typeDefs.Add(temporary,"Long"); 167 167 } 168 168 } -
BasicCompiler_Common/VariableOpe.cpp
r79 r87 220 220 if(lpIndex==-1) lstrcpy(name,"VoidPtr"); 221 221 else{ 222 if( House:: procPointers[lpIndex]->ReturnType().IsNull() )222 if( House::Meta::procPointers[lpIndex]->ReturnType().IsNull() ) 223 223 lstrcpy(name,"*Sub"); 224 224 else lstrcpy(name,"*Function"); -
BasicCompiler_Common/include/House.h
r78 r87 1 1 #pragma once 2 2 3 #include "Source.h" 3 4 #include "../TypeDef.h" 4 5 5 6 class House{ 6 7 public: 7 // TypeDef 8 static TypeDefCollection typeDefs; 9 static vector<ProcPointer *> procPointers; 8 9 class Lexical{ 10 public: 11 static BasicSource source; 12 }; 13 14 class Meta{ 15 public: 16 // TypeDef 17 static TypeDefCollection typeDefs; 18 static vector<ProcPointer *> procPointers; 19 }; 10 20 }; -
BasicCompiler_Common/src/House.cpp
r78 r87 1 1 #include <..\common.h> 2 2 3 TypeDefCollection House:: typeDefs;4 vector<ProcPointer *> House:: procPointers;3 TypeDefCollection House::Meta::typeDefs; 4 vector<ProcPointer *> House::Meta::procPointers;
Note:
See TracChangeset
for help on using the changeset viewer.