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
0cbe14c1
Commit
0cbe14c1
authored
Mar 27, 2013
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reference a test program in a comment
parent
50682ef2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
pcb_parser.h
pcbnew/pcb_parser.h
+8
-5
No files found.
pcbnew/pcb_parser.h
View file @
0cbe14c1
...
...
@@ -155,8 +155,8 @@ class PCB_PARSER : public PCB_LEXER
/**
* Function parseDouble
* parses the current token as an ASCII numeric string with possible leading
whitespace into
* a double precision floating point number.
* parses the current token as an ASCII numeric string with possible leading
*
whitespace into
a double precision floating point number.
*
* @throw IO_ERROR if an error occurs attempting to convert the current token.
* @return The result of the parsed token.
...
...
@@ -176,9 +176,12 @@ class PCB_PARSER : public PCB_LEXER
inline
int
parseBoardUnits
()
throw
(
IO_ERROR
)
{
// There should be no major rounding issues here,
// since the values in the file are in mm
// and get converted to nano-meters.
// There should be no major rounding issues here, since the values in
// the file are in mm and get converted to nano-meters.
// See test program tools/test-nm-biu-to-ascii-mm-round-tripping.cpp
// to confirm or experiment. Use a similar strategy in both places, here
// and in the test program. Make that program with:
// $ make test-nm-biu-to-ascii-mm-round-tripping
return
KiROUND
(
parseDouble
()
*
IU_PER_MM
);
}
...
...
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