Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
7898af97
Commit
7898af97
authored
Feb 19, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
printf conditional on defined(DEBUG)
parent
eb4e6119
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
26 deletions
+35
-26
netlist.cpp
pcbnew/netlist.cpp
+35
-26
No files found.
pcbnew/netlist.cpp
View file @
7898af97
...
...
@@ -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 */
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment