Commit 7898af97 authored by dickelbeck's avatar dickelbeck

printf conditional on defined(DEBUG)

parent eb4e6119
......@@ -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 */
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment