Ignore:
Timestamp:
Mar 25, 2007, 2:47:49 AM (18 years ago)
Author:
dai_9181
Message:

CTypeDef → TypeDef
Houseクラスを追加。
オーバーロードレベルの種類を追加(レベル1に挿入)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/DebugMiddleFile.cpp

    r76 r78  
    138138    // TypeDef情報
    139139    //////////////////
    140 
    141     extern CDBTypeDef *pobj_DBTypeDef;
    142     *(long *)(buffer+i2)=pobj_DBTypeDef->iNum;
    143     i2+=sizeof(long);
    144     for(i3=0;i3<pobj_DBTypeDef->iNum;i3++){
    145         lstrcpy(buffer+i2,pobj_DBTypeDef->ppobj_TypeDef[i3]->lpszName);
    146         i2+=lstrlen(buffer+i2)+1;
    147 
    148         lstrcpy(buffer+i2,pobj_DBTypeDef->ppobj_TypeDef[i3]->lpszBaseName);
     140    *(long *)(buffer+i2)=House::typeDefs.size();
     141    i2+=sizeof(long);
     142    for(i3=0;i3<(int)House::typeDefs.size();i3++){
     143        lstrcpy(buffer+i2,House::typeDefs[i3].GetNewName().c_str() );
     144        i2+=lstrlen(buffer+i2)+1;
     145
     146        lstrcpy(buffer+i2,House::typeDefs[i3].GetBaseName().c_str() );
    149147        i2+=lstrlen(buffer+i2)+1;
    150148
     
    507505
    508506    //初期化
    509     pobj_DBTypeDef=new CDBTypeDef;
     507    House::typeDefs.clear();
    510508
    511509    //個数を取得
     
    516514        i2+=lstrlen(buffer+i2)+1;
    517515
    518         pobj_DBTypeDef->add(temp5,buffer+i2);
    519 
    520         i2+=lstrlen(buffer+i2)+1;
    521     }
    522 
    523     extern CDBTypeDef *pobj_DBTypeDef;
    524     pobj_DBTypeDef=this->pobj_DBTypeDef;
     516        House::typeDefs.push_back( TypeDef( temp5, buffer+i2 ) );
     517
     518        i2+=lstrlen(buffer+i2)+1;
     519    }
    525520
    526521    //定数を取得
     
    954949    pobj_DBClass=this->pobj_DBClass;
    955950
    956     // TypeDef情報
    957     extern CDBTypeDef *pobj_DBTypeDef;
    958     pobj_DBTypeDef=this->pobj_DBTypeDef;
    959 
    960951    //定数を取得
    961952    extern CONSTINFO **ppConstHash;
Note: See TracChangeset for help on using the changeset viewer.