Loading pcbnew/netlist.cpp +35 −26 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -177,6 +178,7 @@ void WinEDA_NetlistFrame::ReadPcbNetlist( wxCommandEvent& event ) if( *Text == '(' ) State++; if( *Text == ')' ) State--; Loading Loading @@ -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 Loading Loading @@ -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 */ } Loading Loading
pcbnew/netlist.cpp +35 −26 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -177,6 +178,7 @@ void WinEDA_NetlistFrame::ReadPcbNetlist( wxCommandEvent& event ) if( *Text == '(' ) State++; if( *Text == ')' ) State--; Loading Loading @@ -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 Loading Loading @@ -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 */ } Loading