Changeset 137 in dev for BasicCompiler_Common/src/Member.cpp
- Timestamp:
- Jun 8, 2007, 3:11:47 AM (17 years ago)
- File:
-
- 1 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,
Note:
See TracChangeset
for help on using the changeset viewer.