Changeset 193 in dev for trunk/abdev/BasicCompiler_Common/NumOpe_GetType.cpp
- Timestamp:
- Jun 26, 2007, 5:04:50 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/NumOpe_GetType.cpp
r182 r193 1 1 #include <jenga/include/smoothie/Smoothie.h> 2 2 #include <jenga/include/smoothie/LexicalAnalysis.h> 3 4 #include <Compiler.h> 3 5 4 6 #include "common.h" … … 284 286 } 285 287 286 if( ! Type::StringToType( TypeName, resultType ) ){288 if( !Compiler::StringToType( TypeName, resultType ) ){ 287 289 return false; 288 290 } … … 326 328 Type leftType; 327 329 if( GetTermType( termLeft, leftType, isLiteral, &isClassName ) ){ 328 if( isClassName == false && Smoothie::GetMeta().blittableTypes.IsExist( leftType ) ){330 if( isClassName == false && compiler.GetMeta().GetBlittableTypes().IsExist( leftType ) ){ 329 331 // 左側のオブジェクト部分がBlittable型のとき 330 332 … … 332 334 lstrcpy( temporary, termLeft ); 333 335 sprintf( termLeft, "%s(%s)", 334 Smoothie::GetMeta().blittableTypes.Find( leftType ).GetCreateStaticMethodFullName().c_str(),336 compiler.GetMeta().GetBlittableTypes().Find( leftType ).GetCreateStaticMethodFullName().c_str(), 335 337 temporary ); 336 338 … … 396 398 397 399 if( pIsClassName ){ 398 if( Smoothie::GetMeta().GetClasses().Find( termFull ) ){400 if( compiler.GetMeta().GetClasses().Find( termFull ) ){ 399 401 *pIsClassName = true; 400 402 return true; … … 635 637 // As演算子の右辺値 636 638 //型名 637 if( Type::StringToType( term, resultType ) ){639 if( Compiler::StringToType( term, resultType ) ){ 638 640 639 641 if( resultType.IsObject() ){ … … 673 675 //要求タイプがオブジェクト、または未定のとき 674 676 type_stack[sp]=DEF_OBJECT; 675 index_stack[sp]=(LONG_PTR) Smoothie::GetMeta().GetClasses().GetStringClassPtr();677 index_stack[sp]=(LONG_PTR)compiler.GetMeta().GetClasses().GetStringClassPtr(); 676 678 bLiteralCalculation=0; 677 679 … … 718 720 } 719 721 else{ 720 index_stack[sp] = (LONG_PTR) Smoothie::GetMeta().GetClasses().GetObjectClassPtr();722 index_stack[sp] = (LONG_PTR)compiler.GetMeta().GetClasses().GetObjectClassPtr(); 721 723 } 722 724 bLiteralCalculation = 0;
Note:
See TracChangeset
for help on using the changeset viewer.