Ignore:
Timestamp:
Aug 1, 2007, 11:19:01 PM (17 years ago)
Author:
dai_9181
Message:

MetaImplを廃止し、Metaにした。
ObjectModuleクラス、Linkerクラスを用意。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler32/Compile_Var.cpp

    r253 r256  
    362362    // 名前空間を分離
    363363    char namespaceStr[VN_SIZE]="", simpleName[VN_SIZE];
    364     compiler.GetMeta().GetNamespaces().SplitNamespace( variable, namespaceStr, simpleName );
     364    compiler.objectModule.meta.GetNamespaces().SplitNamespace( variable, namespaceStr, simpleName );
    365365
    366366    // 先頭オブジェクトまたはクラス名と入れ子メンバに分割
     
    456456        //Const修飾子のメソッド内でメンバ書き込みアクセスが発生したとき
    457457        //(コンストラクタ、デストラクタ内を除く)
    458         const CMethod *pMethod = compiler.GetMeta().GetClasses().GetNowCompilingMethodInfo();
     458        const CMethod *pMethod = compiler.objectModule.meta.GetClasses().GetNowCompilingMethodInfo();
    459459        if( isWriteAccess &&
    460460            pMethod->IsConst() &&
     
    496496            GetNowStaticVarFullName(VarName,temporary);
    497497
    498             pVar = compiler.GetMeta().GetGlobalVars().Find( Symbol( temporary ) );
     498            pVar = compiler.objectModule.meta.GetGlobalVars().Find( Symbol( temporary ) );
    499499            if( pVar ){
    500500                goto GlobalOk;
     
    519519            }
    520520
    521             int typeDefIndex = compiler.GetMeta().GetTypeDefs().GetIndex( VarName );
     521            int typeDefIndex = compiler.objectModule.meta.GetTypeDefs().GetIndex( VarName );
    522522            if( typeDefIndex != -1 ){
    523523                // TypeDef後の型名だったとき
    524                 lstrcpy( VarName, compiler.GetMeta().GetTypeDefs()[typeDefIndex].GetBaseName().c_str() );
     524                lstrcpy( VarName, compiler.objectModule.meta.GetTypeDefs()[typeDefIndex].GetBaseName().c_str() );
    525525            }
    526526
    527527            char temp2[VN_SIZE];
    528528            sprintf(temp2,"%s.%s",VarName,temporary);
    529             pVar = compiler.GetMeta().GetGlobalVars().Find( Symbol( temp2 ) );
     529            pVar = compiler.objectModule.meta.GetGlobalVars().Find( Symbol( temp2 ) );
    530530            if( pVar ){
    531531                lstrcpy(member,tempMember);
     
    539539            char temp2[VN_SIZE];
    540540            sprintf(temp2,"%s.%s",compiler.pCompilingClass->GetName().c_str(),VarName);
    541             pVar = compiler.GetMeta().GetGlobalVars().Find( Symbol( temp2 ) );
     541            pVar = compiler.objectModule.meta.GetGlobalVars().Find( Symbol( temp2 ) );
    542542            if( pVar ){
    543543                goto GlobalOk;
     
    549549        /////////////////////
    550550
    551         pVar = compiler.GetMeta().GetGlobalVars().BackSearch( Symbol( VarName ) );
     551        pVar = compiler.objectModule.meta.GetGlobalVars().BackSearch( Symbol( VarName ) );
    552552        if( pVar ){
    553553            goto GlobalOk;
     
    837837            char *temp;
    838838            temp=(char *)i64data;
    839             i2=compiler.GetDataTable().AddString(temp,lstrlen(temp));
     839            i2=compiler.objectModule.dataTable.AddString(temp,lstrlen(temp));
    840840            HeapDefaultFree(temp);
    841841
     
    10101010            char *temp;
    10111011            temp=(char *)i64data;
    1012             i2=compiler.GetDataTable().AddString(temp,lstrlen(temp));
     1012            i2=compiler.objectModule.dataTable.AddString(temp,lstrlen(temp));
    10131013            HeapDefaultFree(temp);
    10141014
     
    12671267    }
    12681268
    1269     BOOST_FOREACH( const Variable *pVar, compiler.GetMeta().GetGlobalVars() ){
     1269    BOOST_FOREACH( const Variable *pVar, compiler.objectModule.meta.GetGlobalVars() ){
    12701270        if( pVar->GetType().IsObject() || pVar->GetType().IsPointer() || pVar->GetType().IsStruct() ){
    12711271            // オブジェクトまたはポインタだったとき
Note: See TracChangeset for help on using the changeset viewer.