Changeset 75 in dev for BasicCompiler_Common/Overload.cpp
- Timestamp:
- Mar 20, 2007, 4:36:16 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/Overload.cpp
r73 r75 7 7 #endif 8 8 9 SubInfo*OverloadSolutionWithStrParam(9 UserProc *OverloadSolutionWithStrParam( 10 10 const char *name, 11 std::vector< SubInfo*> &subs,11 std::vector<UserProc *> &subs, 12 12 const char *Parameter, 13 const char *ObjectName, 14 TYPEINFO *pReturnTypeInfo){ 13 const char *ObjectName){ 15 14 16 15 // オーバーロードの解決 … … 31 30 //メソッドの場合は静的かどうかを調べる 32 31 bool isStatic = false; 33 CClass *pClass = subs[0]-> pobj_ParentClass;32 CClass *pClass = subs[0]->GetParentClassPtr(); 34 33 if( pClass ){ 35 34 isStatic = pClass->IsExistStaticMethod( MethodName ); … … 37 36 */ 38 37 //パラメータオブジェクトを生成 39 if(lstrcmp(Parameter,"\"test\"")==0){40 int i=0;41 }42 38 pobj_parameter=new ParamImpl(Parameter); 43 if(pReturnTypeInfo) pobj_parameter->SetReturnType(pReturnTypeInfo);44 39 45 40 46 SubInfo *psi;47 p si=pobj_parameter->OverloadSolution(name,subs);41 UserProc *pUserProc; 42 pUserProc=pobj_parameter->OverloadSolution(name,subs); 48 43 49 44 … … 52 47 pobj_parameter=0; 53 48 54 return p si;49 return pUserProc; 55 50 } 56 57 SubInfo *OverloadSolution( 51 UserProc *OverloadSolution( 58 52 const char *name, 59 std::vector<SubInfo *> &subs, 60 const PARAMETER_INFO *ppi, 61 const int ParmNum, 62 TYPEINFO *pReturnTypeInfo){ 53 std::vector<UserProc *> &subs, 54 const Parameters ¶ms, 55 const Type &returnType ){ 63 56 64 57 // オーバーロードの解決 … … 68 61 69 62 70 ParamImpl *pobj_Parameter=new ParamImpl(ppi,ParmNum); 71 if(pReturnTypeInfo) pobj_Parameter->SetReturnType(pReturnTypeInfo); 63 ParamImpl *pobj_Parameter=new ParamImpl( params ); 64 if( !returnType.IsNull() ){ 65 pobj_Parameter->SetReturnType( returnType ); 66 } 72 67 73 SubInfo *psi;74 p si=pobj_Parameter->OverloadSolution(name,subs);68 UserProc *pUserProc; 69 pUserProc=pobj_Parameter->OverloadSolution(name,subs); 75 70 76 71 delete pobj_Parameter; 77 72 78 return p si;73 return pUserProc; 79 74 }
Note:
See TracChangeset
for help on using the changeset viewer.