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 ) ...@@ -134,7 +134,8 @@ void WinEDA_NetlistFrame::ReadPcbNetlist( wxCommandEvent& event )
int LineNum, State, Comment; int LineNum, State, Comment;
MODULE* Module = NULL; MODULE* Module = NULL;
D_PAD* PtPad; D_PAD* PtPad;
char Line[256], * Text; char Line[256];
char* Text;
int UseFichCmp = 1; int UseFichCmp = 1;
wxString msg; wxString msg;
...@@ -177,6 +178,7 @@ void WinEDA_NetlistFrame::ReadPcbNetlist( wxCommandEvent& event ) ...@@ -177,6 +178,7 @@ void WinEDA_NetlistFrame::ReadPcbNetlist( wxCommandEvent& event )
if( *Text == '(' ) if( *Text == '(' )
State++; State++;
if( *Text == ')' ) if( *Text == ')' )
State--; State--;
...@@ -317,18 +319,22 @@ MODULE* WinEDA_NetlistFrame::ReadNetModule( char* Text, int* UseFichCmp, ...@@ -317,18 +319,22 @@ MODULE* WinEDA_NetlistFrame::ReadNetModule( char* Text, int* UseFichCmp,
strcpy( Line, Text ); strcpy( Line, Text );
TextValeur = wxT( "~" ); TextValeur = wxT( "~" );
if( ( text = strtok( Line, " ()\t\n" ) ) == NULL ) if( ( text = strtok( Line, " ()\t\n" ) ) == NULL )
Error = 1; Error = 1;
else else
TextTimeStamp = CONV_FROM_UTF8( text ); TextTimeStamp = CONV_FROM_UTF8( text );
if( ( text = strtok( NULL, " ()\t\n" ) ) == NULL ) if( ( text = strtok( NULL, " ()\t\n" ) ) == NULL )
Error = 1; Error = 1;
else else
TextNameLibMod = CONV_FROM_UTF8( text ); TextNameLibMod = CONV_FROM_UTF8( text );
if( ( text = strtok( NULL, " ()\t\n" ) ) == NULL ) if( ( text = strtok( NULL, " ()\t\n" ) ) == NULL )
Error = 1; Error = 1;
else else
TextCmpName = CONV_FROM_UTF8( text ); TextCmpName = CONV_FROM_UTF8( text );
if( ( text = strtok( NULL, " ()\t\n" ) ) == NULL ) if( ( text = strtok( NULL, " ()\t\n" ) ) == NULL )
Error = -1; Error = -1;
else else
...@@ -440,8 +446,11 @@ MODULE* WinEDA_NetlistFrame::ReadNetModule( char* Text, int* UseFichCmp, ...@@ -440,8 +446,11 @@ MODULE* WinEDA_NetlistFrame::ReadNetModule( char* Text, int* UseFichCmp,
Module->m_Value->m_Text = TextValeur; Module->m_Value->m_Text = TextValeur;
Module->m_TimeStamp = TimeStamp; Module->m_TimeStamp = TimeStamp;
Module->m_Path = TextTimeStamp; Module->m_Path = TextTimeStamp;
#if defined(DEBUG)
printf("in ReadNetModule() m_Path = %s\n", printf("in ReadNetModule() m_Path = %s\n",
CONV_TO_UTF8(Module->m_Path) ); CONV_TO_UTF8(Module->m_Path) );
#endif
return Module; /* composant trouve */ 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