Commit 7898af97 authored by dickelbeck's avatar dickelbeck
Browse files

printf conditional on defined(DEBUG)

parent eb4e6119
Loading
Loading
Loading
Loading
+35 −26
Original line number Diff line number Diff line
@@ -134,7 +134,8 @@ void WinEDA_NetlistFrame::ReadPcbNetlist( wxCommandEvent& event )
    int      LineNum, State, Comment;
    MODULE*  Module = NULL;
    D_PAD*   PtPad;
    char     Line[256], * Text;
    char     Line[256];
    char*    Text;
    int      UseFichCmp = 1;
    wxString msg;

@@ -177,6 +178,7 @@ void WinEDA_NetlistFrame::ReadPcbNetlist( wxCommandEvent& event )

        if( *Text == '(' )
            State++;

        if( *Text == ')' )
            State--;

@@ -317,18 +319,22 @@ MODULE* WinEDA_NetlistFrame::ReadNetModule( char* Text, int* UseFichCmp,
    strcpy( Line, Text );

    TextValeur = wxT( "~" );

    if( ( text = strtok( Line, " ()\t\n" ) ) == NULL )
        Error = 1;
    else
        TextTimeStamp = CONV_FROM_UTF8( text );

    if( ( text = strtok( NULL, " ()\t\n" ) ) == NULL )
        Error = 1;
    else
        TextNameLibMod = CONV_FROM_UTF8( text );

    if( ( text = strtok( NULL, " ()\t\n" ) ) == NULL )
        Error = 1;
    else
        TextCmpName = CONV_FROM_UTF8( text );

    if( ( text = strtok( NULL, " ()\t\n" ) ) == NULL )
        Error = -1;
    else
@@ -440,8 +446,11 @@ MODULE* WinEDA_NetlistFrame::ReadNetModule( char* Text, int* UseFichCmp,
    Module->m_Value->m_Text = TextValeur;
    Module->m_TimeStamp = TimeStamp;
    Module->m_Path = TextTimeStamp;

#if defined(DEBUG)
    printf("in ReadNetModule() m_Path = %s\n",
           CONV_TO_UTF8(Module->m_Path) );
#endif

    return Module;  /* composant trouve */
}