Changeset 429 in dev for trunk/abdev
- Timestamp:
- Mar 11, 2008, 4:01:03 PM (17 years ago)
- Location:
- trunk/abdev
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/NumOpe.cpp
r415 r429 249 249 char methodName[VN_SIZE], lpPtrOffset[VN_SIZE], parameter[VN_SIZE], dummy[1]; 250 250 ReferenceKind refType; 251 bool isParameterInBracket = false;251 PareOrBracket pareOrBracket = None; 252 252 lstrcpy( methodName, member ); 253 GetVarFormatString( methodName, parameter, lpPtrOffset, dummy, refType, & isParameterInBracket );253 GetVarFormatString( methodName, parameter, lpPtrOffset, dummy, refType, &pareOrBracket ); 254 254 255 255 objClass.EnumDynamicMethodsOrInterfaceMethods( methodName, userProcs ); … … 264 264 && parameter[0] // 実引数は1つ以上 265 265 && pUserProc->ReturnType().IsObject() // 戻り値がクラス型の場合 266 && isParameterInBracket )// 実引数は[]で囲まれている266 && pareOrBracket == Bracket ) // 実引数は[]で囲まれている 267 267 { 268 268 // プロパティ値として返ってきたオブジェクトインスタンスのインデクサを呼び出す … … 317 317 318 318 return true; 319 } 320 } 321 else if( pareOrBracket == Pare ) 322 { 323 // 関数ポインタ 324 SetError(); 325 326 /////////////////////////////////////////////////////////////////// 327 // メンバを検索 328 /////////////////////////////////////////////////////////////////// 329 if( GetMemberType( leftType, methodName, resultType, 0, false ) ){ 330 // メンバが見つかったとき 319 331 } 320 332 } -
trunk/abdev/BasicCompiler_Common/VariableOpe.cpp
r409 r429 290 290 291 291 292 BOOL GetVarFormatString( char *buffer,char *array,char *array2,char *NestMember,ReferenceKind &refType, bool *pIsParameterInBracket ){292 BOOL GetVarFormatString( char *buffer,char *array,char *array2,char *NestMember,ReferenceKind &refType, PareOrBracket *pPareOrBracket ){ 293 293 extern int cp; 294 294 int i,i2,i3; … … 318 318 } 319 319 320 if( p IsParameterInBracket )320 if( pPareOrBracket ) 321 321 { 322 322 // []なのか、()なのかを伝える 323 323 if( cPare_Open == '[' ) 324 324 { 325 *p IsParameterInBracket = true;325 *pPareOrBracket = Bracket; 326 326 } 327 327 else 328 328 { 329 *p IsParameterInBracket = false;329 *pPareOrBracket = Pare; 330 330 } 331 331 } -
trunk/abdev/BasicCompiler_Common/VariableOpe.h
r403 r429 3 3 class Type; 4 4 class CClass; 5 6 enum PareOrBracket 7 { 8 None = 0, 9 Pare, // (...) 10 Bracket, // [...] 11 }; 5 12 6 13 BOOL IsPtrType(int type); … … 16 23 Type GetStringTypeInfo(); 17 24 void GetWithName(char *buffer); 18 BOOL GetVarFormatString(char *buffer,char *array,char *array2,char *NestMember, ReferenceKind &refType, bool *pIsParameterInBracket = NULL );25 BOOL GetVarFormatString(char *buffer,char *array,char *array2,char *NestMember, ReferenceKind &refType, PareOrBracket *pPareOrBracket = NULL ); 19 26 void GetArrayElement( const char *buffer,char *variable,char *array_element); 20 27 BOOL CheckVarNameError(char *name,int nowLine);
Note:
See TracChangeset
for help on using the changeset viewer.