Changeset 369 in dev for trunk/abdev/BasicCompiler_Common


Ignore:
Timestamp:
Nov 12, 2007, 8:40:20 AM (17 years ago)
Author:
dai_9181
Message:

Classes::Insertメソッド内のエラー発生部分でコード位置情報を不正な値になっていたバグを修正。

Location:
trunk/abdev/BasicCompiler_Common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/include/Class.h

    r355 r369  
    560560
    561561    virtual CClass *Create( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const char *name);
    562     bool Insert( CClass *pClass );
     562    bool Insert( CClass *pClass, int nowLine );
    563563    CClass *Add( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const char *name,int nowLine);
    564564    virtual void CollectClassesForNameOnly( const BasicSource &source );
  • trunk/abdev/BasicCompiler_Common/src/Class.cpp

    r355 r369  
    10851085    return new CClass(namespaceScopes, importedNamespaces, name);
    10861086}
    1087 bool Classes::Insert( CClass *pClass )
     1087bool Classes::Insert( CClass *pClass, int nowLine )
    10881088{
    10891089    /////////////////////////////////
     
    10931093    if( !Put( pClass ) )
    10941094    {
    1095         SetError(15,pClass->GetName(), cp);
     1095        SetError(15,pClass->GetName(), nowLine);
    10961096        return false;
    10971097    }
     
    11061106    CClass *pClass = Create(namespaceScopes, importedNamespaces, name);
    11071107
    1108     if( !Insert( pClass ) )
     1108    if( !Insert( pClass, nowLine ) )
    11091109    {
    11101110        return NULL;
Note: See TracChangeset for help on using the changeset viewer.