Ignore:
Timestamp:
Jul 12, 2007, 2:58:26 AM (17 years ago)
Author:
dai_9181
Message:

コード全体のリファクタリングを実施

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
    15#include "../BasicCompiler_Common/common.h"
    26#include "Opcode.h"
     
    1620
    1721        //call DestructorProcAddr
    18         op_call( method->pUserProc );
     22        op_call( &method->GetUserProc() );
    1923    }
    2024
     
    2327
    2428    //call free
    25     extern UserProc *pSub_free;
     29    extern const UserProc *pSub_free;
    2630    op_call(pSub_free);
    2731}
    2832
    29 int CallOperatorProc(int idCalc, const Type &baseType, int *type_stack,LONG_PTR *index_stack,BOOL *bUseHeap,int &sp){
     33int CallOperatorProc(BYTE idCalc, const Type &baseType, int *type_stack,LONG_PTR *index_stack,BOOL *bUseHeap,int &sp){
    3034    //オーバーロードされたオペレータ関数を呼び出す
    3135    CClass *pobj_c;
    3236    pobj_c=(CClass *)index_stack[sp-2];
    3337
    34     std::vector<UserProc *> subs;
     38    std::vector<const UserProc *> subs;
    3539    pobj_c->GetMethods().Enum( idCalc, subs );
    3640    if( subs.size() == 0 ){
     
    5862    if(idCalc==CALC_EQUAL) lstrcpy(temporary,"==");
    5963    else GetCalcName(idCalc,temporary);
    60     UserProc *pUserProc = OverloadSolution( temporary, subs, params, baseType );
     64    const UserProc *pUserProc = OverloadSolution( temporary, subs, params, baseType );
    6165
    6266    if(!pUserProc){
     
    118122
    119123            //call calloc
    120             extern UserProc *pSub_calloc;
     124            extern const UserProc *pSub_calloc;
    121125            op_call(pSub_calloc);
    122126
     
    319323void CallIndexerGetterProc(int reg,const CClass *pobj_Class,char *ObjectName,char *Parameter,Type &resultType ){
    320324
    321     std::vector<UserProc *> subs;
     325    std::vector<const UserProc *> subs;
    322326    pobj_Class->GetMethods().Enum( CALC_ARRAY_GET, subs );
    323327    if( subs.size() == 0 ){
Note: See TracChangeset for help on using the changeset viewer.