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/VariableOpe.cpp

    r182 r193  
    22#include <jenga/include/smoothie/LexicalAnalysis.h>
    33
     4#include <Compiler.h>
    45#include <LexicalScopingImpl.h>
     6#include <VariableImpl.h>
    57
    68#include "../BasicCompiler_Common/common.h"
     
    215217        if(lpIndex==-1) lstrcpy(name,"VoidPtr");
    216218        else{
    217             if( Smoothie::GetMeta().GetProcPointers()[lpIndex]->ReturnType().IsNull() )
     219            if( compiler.GetMeta().GetProcPointers()[lpIndex]->ReturnType().IsNull() )
    218220                lstrcpy(name,"*Sub");
    219221            else lstrcpy(name,"*Function");
     
    230232
    231233Type GetStringTypeInfo(){
    232     Type type( DEF_OBJECT, *Smoothie::GetMeta().GetClasses().GetStringClassPtr() );
     234    Type type( DEF_OBJECT, *compiler.GetMeta().GetClasses().GetStringClassPtr() );
    233235    return type;
    234236}
     
    567569    // 名前空間を分離
    568570    char namespaceStr[VN_SIZE]="", simpleName[VN_SIZE];
    569     Smoothie::GetMeta().namespaceScopesCollection.SplitNamespace( variable, namespaceStr, simpleName );
     571    compiler.GetMeta().GetNamespaces().SplitNamespace( variable, namespaceStr, simpleName );
    570572
    571573    // 先頭オブジェクトまたはクラス名と入れ子メンバに分割
     
    660662        }
    661663
    662         int typeDefIndex = Smoothie::GetMeta().typeDefs.GetIndex( VarName );
     664        int typeDefIndex = compiler.GetMeta().GetTypeDefs().GetIndex( VarName );
    663665        if( typeDefIndex != -1 ){
    664666            // TypeDef後の型名だったとき
    665             lstrcpy( VarName, Smoothie::GetMeta().typeDefs[typeDefIndex].GetBaseName().c_str() );
     667            lstrcpy( VarName, compiler.GetMeta().GetTypeDefs()[typeDefIndex].GetBaseName().c_str() );
    666668        }
    667669
     
    870872        }
    871873
    872         if( !Type::StringToType( temporary, type ) ){
     874        if( !Compiler::StringToType( temporary, type ) ){
    873875            SetError(3,temporary,cp);
    874876            type.SetBasicType( DEF_LONG );
     
    974976    bool isConst = ( dwFlag & DIMFLAG_CONST ) ? true:false;
    975977
    976     Variable *pVar = new Variable( Smoothie::Temp::liveingNamespaceScopes, name, type, isConst );
     978    Variable *pVar = new VariableImpl( Smoothie::Temp::liveingNamespaceScopes, name, type, isConst );
    977979
    978980    if( SubScripts[0] != -1 ){
Note: See TracChangeset for help on using the changeset viewer.