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
3a618567
Commit
3a618567
authored
Feb 07, 2009
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netless zone support fix to specctra export
parent
d58296c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
specctra.h
pcbnew/specctra.h
+20
-20
No files found.
pcbnew/specctra.h
View file @
3a618567
...
...
@@ -2465,10 +2465,6 @@ struct PIN_REF : public ELEM
// the quotes unconditional on this one.
const
char
*
newline
=
nestLevel
?
"
\n
"
:
""
;
#if 0
return out->Print( nestLevel, "\"%s\"-\"%s\"%s",
component_id.c_str(), pin_id.c_str(), newline );
#else
const
char
*
cquote
=
out
->
GetQuoteChar
(
component_id
.
c_str
()
);
const
char
*
pquote
=
out
->
GetQuoteChar
(
pin_id
.
c_str
()
);
...
...
@@ -2476,7 +2472,6 @@ struct PIN_REF : public ELEM
cquote
,
component_id
.
c_str
(),
cquote
,
pquote
,
pin_id
.
c_str
(),
pquote
,
newline
);
#endif
}
};
typedef
std
::
vector
<
PIN_REF
>
PIN_REFS
;
...
...
@@ -2583,7 +2578,11 @@ public:
};
typedef
boost
::
ptr_vector
<
COMP_ORDER
>
COMP_ORDERS
;
/**
* Class NET
* corresponds to a <net_descriptor>
* in the DSN spec.
*/
class
NET
:
public
ELEM
{
friend
class
SPECCTRA_DB
;
...
...
@@ -2635,7 +2634,6 @@ public:
delete
comp_order
;
}
int
FindPIN_REF
(
const
std
::
string
&
aComponent
)
{
for
(
unsigned
i
=
0
;
i
<
pins
.
size
();
++
i
)
...
...
@@ -2646,7 +2644,6 @@ public:
return
-
1
;
}
void
Format
(
OUTPUTFORMATTER
*
out
,
int
nestLevel
)
throw
(
IOError
)
{
const
char
*
quote
=
out
->
GetQuoteChar
(
net_id
.
c_str
()
);
...
...
@@ -2669,22 +2666,25 @@ public:
out
->
Print
(
0
,
"
\n
"
);
const
int
RIGHTMARGIN
=
80
;
int
perLine
=
out
->
Print
(
nestLevel
+
1
,
"(%s"
,
LEXER
::
GetTokenText
(
pins_type
)
);
for
(
PIN_REFS
::
iterator
i
=
pins
.
begin
();
i
!=
pins
.
end
();
++
i
)
if
(
pins
.
size
()
)
{
if
(
perLine
>
RIGHTMARGIN
)
const
int
RIGHTMARGIN
=
80
;
int
perLine
=
out
->
Print
(
nestLevel
+
1
,
"(%s"
,
LEXER
::
GetTokenText
(
pins_type
)
);
for
(
PIN_REFS
::
iterator
i
=
pins
.
begin
();
i
!=
pins
.
end
();
++
i
)
{
out
->
Print
(
0
,
"
\n
"
);
perLine
=
out
->
Print
(
nestLevel
+
2
,
"%s"
,
""
);
}
else
perLine
+=
out
->
Print
(
0
,
" "
);
if
(
perLine
>
RIGHTMARGIN
)
{
out
->
Print
(
0
,
"
\n
"
);
perLine
=
out
->
Print
(
nestLevel
+
2
,
"%s"
,
""
);
}
else
perLine
+=
out
->
Print
(
0
,
" "
);
perLine
+=
i
->
FormatIt
(
out
,
0
);
perLine
+=
i
->
FormatIt
(
out
,
0
);
}
out
->
Print
(
0
,
")
\n
"
);
}
out
->
Print
(
0
,
")
\n
"
);
if
(
comp_order
)
comp_order
->
Format
(
out
,
nestLevel
+
1
);
...
...
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