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
39473ff0
Commit
39473ff0
authored
Sep 29, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle XX-1-1 as "XX-1"-1
parent
40e69c9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
specctra.cpp
pcbnew/specctra.cpp
+6
-9
No files found.
pcbnew/specctra.cpp
View file @
39473ff0
...
@@ -3477,7 +3477,7 @@ int SPECCTRA_DB::Print( int nestLevel, const char* fmt, ... ) throw( IOError )
...
@@ -3477,7 +3477,7 @@ int SPECCTRA_DB::Print( int nestLevel, const char* fmt, ... ) throw( IOError )
const
char
*
OUTPUTFORMATTER
::
GetQuoteChar
(
const
char
*
wrapee
,
const
char
*
quote_char
)
const
char
*
OUTPUTFORMATTER
::
GetQuoteChar
(
const
char
*
wrapee
,
const
char
*
quote_char
)
{
{
// I
i
nclude '#' so a symbol is not confused with a comment. We intend
// Include '#' so a symbol is not confused with a comment. We intend
// to wrap any symbol starting with a '#'.
// to wrap any symbol starting with a '#'.
// Our LEXER class handles comments, and comments appear to be an extension
// Our LEXER class handles comments, and comments appear to be an extension
// to the SPECCTRA DSN specification.
// to the SPECCTRA DSN specification.
...
@@ -3487,9 +3487,9 @@ const char* OUTPUTFORMATTER::GetQuoteChar( const char* wrapee, const char* quote
...
@@ -3487,9 +3487,9 @@ const char* OUTPUTFORMATTER::GetQuoteChar( const char* wrapee, const char* quote
if
(
strlen
(
wrapee
)
==
0
)
if
(
strlen
(
wrapee
)
==
0
)
return
quote_char
;
return
quote_char
;
// bool isNumber
= true;
bool
isFirst
=
true
;
for
(
;
*
wrapee
;
++
wrapee
)
for
(
;
*
wrapee
;
++
wrapee
,
isFirst
=
false
)
{
{
static
const
char
quoteThese
[]
=
"
\t
()"
static
const
char
quoteThese
[]
=
"
\t
()"
"%"
// per Alfons of freerouting.net, he does not like this unquoted as of 1-Feb-2008
"%"
// per Alfons of freerouting.net, he does not like this unquoted as of 1-Feb-2008
...
@@ -3501,14 +3501,11 @@ const char* OUTPUTFORMATTER::GetQuoteChar( const char* wrapee, const char* quote
...
@@ -3501,14 +3501,11 @@ const char* OUTPUTFORMATTER::GetQuoteChar( const char* wrapee, const char* quote
if
(
strchr
(
quoteThese
,
*
wrapee
)
)
if
(
strchr
(
quoteThese
,
*
wrapee
)
)
return
quote_char
;
return
quote_char
;
// if( !strchr( "01234567890.-+", *wrapee )
)
if
(
!
isFirst
&&
'-'
==
*
wrapee
)
// isNumber = false
;
return
quote_char
;
}
}
// if( isNumber )
return
""
;
// caller does not need to wrap, can use an unwrapped string.
// return quote_char;
return
""
;
// can use an unwrapped string.
}
}
...
...
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