Changeset 5 in dev for BasicCompiler_Common/Object.cpp
- Timestamp:
- Dec 5, 2006, 1:42:16 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/Object.cpp
r4 r5 4 4 #include "../BasicCompiler64/opcode.h" 5 5 #else 6 #include "../BasicCompiler /opcode.h"6 #include "../BasicCompiler32/opcode.h" 7 7 #endif 8 8 … … 111 111 112 112 113 void CallConstractor(char * VarName,int *SubScripts,TYPEINFO &TypeInfo,char *Parameter){113 void CallConstractor(char *ObjectName,int *SubScripts,TYPEINFO &TypeInfo,char *Parameter){ 114 114 if(TypeInfo.type!=DEF_OBJECT) return; 115 115 … … 121 121 pobj_c=(CClass *)TypeInfo.u.lpIndex; 122 122 123 char temporary[VN_SIZE];124 sprintf(temporary,"%s.%s",VarName,pobj_c->name);125 126 123 SUBINFO *psi; 127 psi=Get SubHash(temporary);124 psi=GetMethodHash(ObjectName,pobj_c->name,Parameter); 128 125 if(!psi){ 129 126 if(Parameter[0]) SetError(113,pobj_c->name,cp); 130 127 return; 131 128 } 129 130 131 char temporary[VN_SIZE]; 132 132 133 if(SubScripts[0]!=-1){ 133 134 int ss[MAX_ARRAYDIM]; … … 145 146 } 146 147 if(SubScripts[i3]==-1) break; 147 sprintf(temporary,"%s[%d", VarName,ss[0]);148 sprintf(temporary,"%s[%d",ObjectName,ss[0]); 148 149 for(i3=1;;i3++){ 149 150 if(SubScripts[i3]==-1) break; … … 174 175 else{ 175 176 LONG_PTR lp; 176 sprintf(temporary,"%s.%s", VarName,pobj_c->name);177 sprintf(temporary,"%s.%s",ObjectName,pobj_c->name); 177 178 CallProc(PROC_DEFAULT, 178 179 psi,
Note:
See TracChangeset
for help on using the changeset viewer.