Changeset 290 in dev for trunk/abdev/BasicCompiler_Common/Subroutine.cpp
- Timestamp:
- Aug 21, 2007, 11:00:25 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/Subroutine.cpp
r277 r290 73 73 } 74 74 75 void SplitObjectName(const char *name,char *ObjectName,int *pRefType){ 75 void SplitObjectName(const char *name,char *ObjectName, ReferenceKind &referenceFind ) 76 { 77 referenceFind = RefNon; 78 76 79 int i4; 77 80 for(i4=lstrlen(name)-1;i4>=0;i4--){ … … 82 85 else{ 83 86 //参照タイプを判別 84 if(name[i4]=='.') *pRefType=DEF_OBJECT; 85 else *pRefType=DEF_PTR_OBJECT; 87 if(name[i4]=='.') 88 { 89 referenceFind = RefDot; 90 } 91 else 92 { 93 referenceFind = RefPointer; 94 } 86 95 87 96 if(i4==0) GetWithName(ObjectName); … … 109 118 //オブジェクト名を取得 110 119 char ObjectName[VN_SIZE]; 111 int RefType;112 SplitObjectName(fullCallName,ObjectName, &RefType);120 ReferenceKind referenceKind; 121 SplitObjectName(fullCallName,ObjectName, referenceKind ); 113 122 114 123 … … 131 140 132 141 if( isCallOn ){ 133 if( !Opcode_CallProc(lpszParms,pUserProc,0,ObjectName ,RefType) ){142 if( !Opcode_CallProc(lpszParms,pUserProc,0,ObjectName ) ){ 134 143 return false; 135 144 } … … 192 201 //オブジェクト名を取得 193 202 char ObjectName[VN_SIZE]; 194 int RefType;195 SplitObjectName(VarName,ObjectName, &RefType);203 ReferenceKind referenceKind; 204 SplitObjectName(VarName,ObjectName, referenceKind ); 196 205 197 206 //オーバーロード用の関数リストを作成 … … 216 225 if(pUserProc){ 217 226 //呼び出し 218 Opcode_CallProc(Parameter,pUserProc,0,ObjectName ,RefType);227 Opcode_CallProc(Parameter,pUserProc,0,ObjectName); 219 228 220 229 resultType = pUserProc->ReturnType(); … … 235 244 //オブジェクト名を取得 236 245 char ObjectName[VN_SIZE]; 237 int RefType;238 SplitObjectName(VarName,ObjectName, &RefType);246 ReferenceKind referenceKind; 247 SplitObjectName(VarName,ObjectName, referenceKind ); 239 248 240 249 //オーバーロード用の関数リストを作成
Note:
See TracChangeset
for help on using the changeset viewer.