Changeset 206 in dev for trunk/abdev/BasicCompiler64/OperatorProc.cpp
- Timestamp:
- Jul 12, 2007, 2:58:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler64/OperatorProc.cpp
r135 r206 1 #include "stdafx.h" 2 3 #include <jenga/include/smoothie/LexicalAnalysis.h> 4 1 5 #include "../BasicCompiler_Common/common.h" 2 6 #include "Opcode.h" … … 16 20 17 21 //call DestructorProcAddr 18 op_call( method->pUserProc);22 op_call( &method->GetUserProc() ); 19 23 } 20 24 … … 23 27 24 28 //call free 25 extern UserProc *pSub_free;29 extern const UserProc *pSub_free; 26 30 op_call(pSub_free); 27 31 } 28 32 29 int CallOperatorProc( intidCalc, const Type &baseType, int *type_stack,LONG_PTR *index_stack,BOOL *bUseHeap,int &sp){33 int CallOperatorProc(BYTE idCalc, const Type &baseType, int *type_stack,LONG_PTR *index_stack,BOOL *bUseHeap,int &sp){ 30 34 //オーバーロードされたオペレータ関数を呼び出す 31 35 CClass *pobj_c; 32 36 pobj_c=(CClass *)index_stack[sp-2]; 33 37 34 std::vector< UserProc *> subs;38 std::vector<const UserProc *> subs; 35 39 pobj_c->GetMethods().Enum( idCalc, subs ); 36 40 if( subs.size() == 0 ){ … … 58 62 if(idCalc==CALC_EQUAL) lstrcpy(temporary,"=="); 59 63 else GetCalcName(idCalc,temporary); 60 UserProc *pUserProc = OverloadSolution( temporary, subs, params, baseType );64 const UserProc *pUserProc = OverloadSolution( temporary, subs, params, baseType ); 61 65 62 66 if(!pUserProc){ … … 118 122 119 123 //call calloc 120 extern UserProc *pSub_calloc;124 extern const UserProc *pSub_calloc; 121 125 op_call(pSub_calloc); 122 126 … … 319 323 void CallIndexerGetterProc(int reg,const CClass *pobj_Class,char *ObjectName,char *Parameter,Type &resultType ){ 320 324 321 std::vector< UserProc *> subs;325 std::vector<const UserProc *> subs; 322 326 pobj_Class->GetMethods().Enum( CALC_ARRAY_GET, subs ); 323 327 if( subs.size() == 0 ){
Note:
See TracChangeset
for help on using the changeset viewer.