Changeset 5 in dev for BasicCompiler_Common/Object.cpp


Ignore:
Timestamp:
Dec 5, 2006, 1:42:16 AM (18 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/Object.cpp

    r4 r5  
    44#include "../BasicCompiler64/opcode.h"
    55#else
    6 #include "../BasicCompiler/opcode.h"
     6#include "../BasicCompiler32/opcode.h"
    77#endif
    88
     
    111111
    112112
    113 void CallConstractor(char *VarName,int *SubScripts,TYPEINFO &TypeInfo,char *Parameter){
     113void CallConstractor(char *ObjectName,int *SubScripts,TYPEINFO &TypeInfo,char *Parameter){
    114114    if(TypeInfo.type!=DEF_OBJECT) return;
    115115
     
    121121    pobj_c=(CClass *)TypeInfo.u.lpIndex;
    122122
    123     char temporary[VN_SIZE];
    124     sprintf(temporary,"%s.%s",VarName,pobj_c->name);
    125 
    126123    SUBINFO *psi;
    127     psi=GetSubHash(temporary);
     124    psi=GetMethodHash(ObjectName,pobj_c->name,Parameter);
    128125    if(!psi){
    129126        if(Parameter[0]) SetError(113,pobj_c->name,cp);
    130127        return;
    131128    }
     129
     130
     131    char temporary[VN_SIZE];
     132
    132133    if(SubScripts[0]!=-1){
    133134        int ss[MAX_ARRAYDIM];
     
    145146            }
    146147            if(SubScripts[i3]==-1) break;
    147             sprintf(temporary,"%s[%d",VarName,ss[0]);
     148            sprintf(temporary,"%s[%d",ObjectName,ss[0]);
    148149            for(i3=1;;i3++){
    149150                if(SubScripts[i3]==-1) break;
     
    174175    else{
    175176        LONG_PTR lp;
    176         sprintf(temporary,"%s.%s",VarName,pobj_c->name);
     177        sprintf(temporary,"%s.%s",ObjectName,pobj_c->name);
    177178        CallProc(PROC_DEFAULT,
    178179            psi,
Note: See TracChangeset for help on using the changeset viewer.