Commit 86132ad1 authored by Dick Hollenbeck's avatar Dick Hollenbeck
Browse files

add aDocName to NETLIST::Format()

parent 84a14c3a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -137,11 +137,11 @@ void COMPONENT::Format( OUTPUTFORMATTER* aOut, int aNestLevel, int aCtl )
}


void NETLIST::Format( OUTPUTFORMATTER* aOut, int aNestLevel, int aCtl )
void NETLIST::Format( const char* aDocName, OUTPUTFORMATTER* aOut, int aNestLevel, int aCtl )
{
    int nl = aNestLevel;

    aOut->Print( nl, "(back_annotation\n" );
    aOut->Print( nl, "(%s\n", aDocName );

    for( unsigned i = 0;  i < m_components.size();  i++ )
    {
+2 −2
Original line number Diff line number Diff line
@@ -330,7 +330,7 @@ public:
     */
    bool AnyFootprintsChanged() const;

    void Format( OUTPUTFORMATTER* aOut, int aNestLevel, int aCtl = 0 );
    void Format( const char* aDocName, OUTPUTFORMATTER* aOut, int aNestLevel, int aCtl = 0 );

#define CTL_OMIT_EXTRA      (1<<0)
#define CTL_OMIT_NETS       (1<<1)
@@ -340,7 +340,7 @@ public:

    void FormatBackAnnotation( OUTPUTFORMATTER* aOut )
    {
        Format( aOut, 0, CTL_FOR_BACKANNO );
        Format( "back_annotation", aOut, 0, CTL_FOR_BACKANNO );
    }
};