Ignore:
Timestamp:
Jun 26, 2007, 5:04:50 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/NumOpe_GetType.cpp

    r182 r193  
    11#include <jenga/include/smoothie/Smoothie.h>
    22#include <jenga/include/smoothie/LexicalAnalysis.h>
     3
     4#include <Compiler.h>
    35
    46#include "common.h"
     
    284286    }
    285287
    286     if( !Type::StringToType( TypeName, resultType ) ){
     288    if( !Compiler::StringToType( TypeName, resultType ) ){
    287289        return false;
    288290    }
     
    326328        Type leftType;
    327329        if( GetTermType( termLeft, leftType, isLiteral, &isClassName ) ){
    328             if( isClassName == false && Smoothie::GetMeta().blittableTypes.IsExist( leftType ) ){
     330            if( isClassName == false && compiler.GetMeta().GetBlittableTypes().IsExist( leftType ) ){
    329331                // 左側のオブジェクト部分がBlittable型のとき
    330332
     
    332334                lstrcpy( temporary, termLeft );
    333335                sprintf( termLeft, "%s(%s)",
    334                     Smoothie::GetMeta().blittableTypes.Find( leftType ).GetCreateStaticMethodFullName().c_str(),
     336                    compiler.GetMeta().GetBlittableTypes().Find( leftType ).GetCreateStaticMethodFullName().c_str(),
    335337                    temporary );
    336338
     
    396398
    397399    if( pIsClassName ){
    398         if( Smoothie::GetMeta().GetClasses().Find( termFull ) ){
     400        if( compiler.GetMeta().GetClasses().Find( termFull ) ){
    399401            *pIsClassName = true;
    400402            return true;
     
    635637                    // As演算子の右辺値
    636638                    //型名
    637                     if( Type::StringToType( term, resultType ) ){
     639                    if( Compiler::StringToType( term, resultType ) ){
    638640
    639641                        if( resultType.IsObject() ){
     
    673675                        //要求タイプがオブジェクト、または未定のとき
    674676                        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();
    676678                        bLiteralCalculation=0;
    677679
     
    718720                        }
    719721                        else{
    720                             index_stack[sp] = (LONG_PTR)Smoothie::GetMeta().GetClasses().GetObjectClassPtr();
     722                            index_stack[sp] = (LONG_PTR)compiler.GetMeta().GetClasses().GetObjectClassPtr();
    721723                        }
    722724                        bLiteralCalculation = 0;
Note: See TracChangeset for help on using the changeset viewer.