Changeset 206 in dev for trunk/abdev/BasicCompiler32/Compile_Func.cpp
- Timestamp:
- Jul 12, 2007, 2:58:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/Compile_Func.cpp
r193 r206 1 #include "stdafx.h" 2 1 3 #include <jenga/include/smoothie/Smoothie.h> 2 4 … … 196 198 } 197 199 198 int SubScripts[MAX_ARRAYDIM];200 Subscripts subscripts; 199 201 RELATIVE_VAR RelativeVar; 200 if(!GetVarOffsetReadOnly(tempParm,&RelativeVar,type, SubScripts)) return;202 if(!GetVarOffsetReadOnly(tempParm,&RelativeVar,type,&subscripts)) return; 201 203 202 204 if(type.GetBasicType()&FLAG_PTR){ … … 209 211 int typeSize = type.GetSize(); 210 212 211 if(bArrayHead) typeSize*=JumpSubScripts( SubScripts);213 if(bArrayHead) typeSize*=JumpSubScripts(subscripts); 212 214 213 215 //mov eax,TypeSize … … 218 220 void Opcode_Func_AddressOf( const char *name ){ 219 221 extern int cp; 220 UserProc *pUserProc;222 const UserProc *pUserProc; 221 223 222 224 extern LONG_PTR ProcPtr_BaseIndex; … … 224 226 //左辺の型にのっとり、オーバーロードを解決 225 227 226 std::vector< UserProc *> subs;228 std::vector<const UserProc *> subs; 227 229 GetOverloadSubHash( name, subs ); 228 230 if( subs.size() == 0 ){ … … 284 286 SetThisPtrToReg(REG_RCX); 285 287 286 pobj_c= Smoothie::Temp::pCompilingClass;288 pobj_c=compiler.pCompilingClass; 287 289 } 288 290
Note:
See TracChangeset
for help on using the changeset viewer.