Changeset 137 in dev for BasicCompiler_Common/src
- Timestamp:
- Jun 8, 2007, 3:11:47 AM (17 years ago)
- Location:
- BasicCompiler_Common/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/src/Member.cpp
r136 r137 7 7 #include <Member.h> 8 8 9 CMember::CMember( CClass *pobj_c, DWORD access, bool isConst, bool isRef, char *buffer, int nowLine ){ 9 CMember::CMember( CClass *pobj_c, Prototype::Accessibility accessibility, bool isConst, bool isRef, char *buffer, int nowLine ) 10 : MemberPrototype( accessibility ) 11 { 10 12 extern int cp; 11 13 … … 14 16 char init_buf[VN_SIZE]; 15 17 char constract_parameter[VN_SIZE]; 16 GetDimentionFormat(buffer,VarName,SubScripts, *this,init_buf,constract_parameter);18 GetDimentionFormat(buffer,VarName,SubScripts,type,init_buf,constract_parameter); 17 19 18 20 //重複チェック … … 23 25 //メンバ名 24 26 name = VarName; 25 26 //アクセス権27 dwAccess=access;28 27 29 28 //定数扱いかどうか … … 41 40 source_code_address=nowLine; 42 41 } 43 CMember::CMember(CMember &member): 44 Type( member ) 42 CMember::CMember(CMember &member) 43 : MemberPrototype( member.GetAccessibility() ) 44 , name( member.GetName() ) 45 , type( member.GetType() ) 46 , isConst( member.IsConst() ) 45 47 { 46 47 //name48 name = member.name;49 50 //定数扱いかどうか51 isConst = member.isConst;52 53 48 //SubScripts 54 49 memcpy(SubScripts,member.SubScripts,MAX_ARRAYDIM*sizeof(int)); … … 84 79 temporary, 85 80 member->SubScripts, 86 *member,81 member->GetType(), 87 82 member->InitBuf, 88 83 member->ConstractParameter, -
BasicCompiler_Common/src/Method.cpp
r136 r137 14 14 } 15 15 16 void Methods::Add( UserProc *pUserProc, DWORD dwAccess, bool isConst, bool isAbstract, bool isVirtual ){17 CMethod *pMethod = new DynamicMethod( pUserProc, dwAccess, isAbstract, isVirtual, isConst );16 void Methods::Add( UserProc *pUserProc,Prototype::Accessibility accessibility, bool isConst, bool isAbstract, bool isVirtual ){ 17 CMethod *pMethod = new DynamicMethod( pUserProc, accessibility, isAbstract, isVirtual, isConst ); 18 18 this->push_back( pMethod ); 19 19 pUserProc->SetMethod( pMethod ); 20 20 } 21 void Methods::AddStatic(UserProc *pUserProc, DWORD dwAccess){22 CMethod *pMethod = new StaticMethod( pUserProc, dwAccess);21 void Methods::AddStatic(UserProc *pUserProc, Prototype::Accessibility accessibility ){ 22 CMethod *pMethod = new StaticMethod( pUserProc, accessibility ); 23 23 this->push_back( pMethod ); 24 24 pUserProc->SetMethod( pMethod );
Note:
See TracChangeset
for help on using the changeset viewer.