Changeset 78 in dev for BasicCompiler_Common/Type.cpp


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/Type.cpp

    r77 r78  
    6565                //関数ポインタ(*Function)
    6666                type.basicType = DEF_PTR_PROC;
     67                type.index = AddProcPtrInfo( typeName, cp );
    6768                return true;
    6869        }
    6970
    70         string nextTypeName = typeName.substr( 1 );
     71        const string &nextTypeName = typeName.substr( 1 );
    7172
    7273        if( !StringToType( nextTypeName, type ) ){
     
    8889    // TypeDefされた型
    8990    ////////////////////
    90     int i=pobj_DBTypeDef->check( typeName.c_str() );
     91    int i=House::typeDefs.GetIndex( typeName.c_str() );
    9192    if(i!=-1){
    92         return StringToType( pobj_DBTypeDef->ppobj_TypeDef[i]->lpszBaseName, type );
     93        type = House::typeDefs[i].GetBaseType();
     94        return true;
    9395    }
    9496
     
    461463        }
    462464        else{
    463             extern ProcPointer **ppProcPointer;
    464             if( ppProcPointer[index]->ReturnType().IsNull() ){
     465            if( House::procPointers[index]->ReturnType().IsNull() ){
    465466                return "*Sub";
    466467            }
Note: See TracChangeset for help on using the changeset viewer.