Changeset 106 in dev for BasicCompiler_Common/Class.cpp


Ignore:
Timestamp:
May 4, 2007, 5:04:50 PM (18 years ago)
Author:
dai_9181
Message:

名前空間機能をクラスの静的メンバに適用。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/Class.cpp

    r102 r106  
    9191
    9292    while(pobj_DBClass->Iterator_HasNext()){
    93         CClass *pobj_c;
    94         pobj_c=pobj_DBClass->Iterator_GetNext();
     93        CClass &objClass = *pobj_DBClass->Iterator_GetNext();
     94
     95        // 名前空間をセット
     96        Smoothie::Lexical::liveingNamespaceScopes = objClass.GetNamespaceScopes();
    9597
    9698        int i=0;
    97         foreach( CMember *member, pobj_c->staticMembers ){
     99        foreach( CMember *member, objClass.staticMembers ){
    98100            char temporary[VN_SIZE];
    99             sprintf(temporary,"%s.%s",pobj_c->name,member->name);
     101            sprintf(temporary,"%s.%s",objClass.name,member->name);
    100102            dim(
    101103                temporary,
     
    112114        }
    113115    }
     116
     117    Smoothie::Lexical::liveingNamespaceScopes.clear();
    114118
    115119    cp=back_cp;
Note: See TracChangeset for help on using the changeset viewer.