Changeset 138 in dev for BasicCompiler_Common/src/Member.cpp
- Timestamp:
- Jun 12, 2007, 1:57:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/src/Member.cpp
r137 r138 14 14 //構文を解析 15 15 char VarName[VN_SIZE]; 16 char init _buf[VN_SIZE];17 char constract_parameter[VN_SIZE];18 GetDimentionFormat(buffer,VarName,SubScripts,type,init _buf,constract_parameter);16 char initBuffer[VN_SIZE]; 17 char lpszConstructParameter[VN_SIZE]; 18 GetDimentionFormat(buffer,VarName,SubScripts,type,initBuffer,lpszConstructParameter); 19 19 20 20 //重複チェック … … 30 30 31 31 //初期データ 32 InitBuf=(char *)HeapAlloc(hHeap,0,lstrlen(init_buf)+1); 33 lstrcpy(InitBuf,init_buf); 32 initializeExpression = initBuffer; 34 33 35 34 //コンストラクタ用のパラメータ 36 ConstractParameter=(char *)HeapAlloc(hHeap,0,lstrlen(constract_parameter)+1); 37 lstrcpy(ConstractParameter,constract_parameter); 35 constructParameter = lpszConstructParameter; 38 36 39 37 //ソースコードの位置 … … 53 51 } 54 52 CMember::~CMember(){ 55 if(InitBuf) HeapDefaultFree(InitBuf);56 if(ConstractParameter) HeapDefaultFree(ConstractParameter);57 53 } 58 54 … … 80 76 member->SubScripts, 81 77 member->GetType(), 82 member-> InitBuf,83 member-> ConstractParameter,78 member->GetInitializeExpression().c_str(), 79 member->GetConstructParameter().c_str(), 84 80 0); 85 81
Note:
See TracChangeset
for help on using the changeset viewer.