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
8b351078
Commit
8b351078
authored
Nov 08, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comments and warning fixes
parent
a942b081
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
17 deletions
+5
-17
gerbview.h
gerbview/gerbview.h
+1
-1
rs274x.cpp
gerbview/rs274x.cpp
+4
-16
No files found.
gerbview/gerbview.h
View file @
8b351078
...
@@ -275,7 +275,7 @@ public:
...
@@ -275,7 +275,7 @@ public:
bool
m_PolygonFillMode
;
// Enbl polygon mode (read coord as a polygone descr)
bool
m_PolygonFillMode
;
// Enbl polygon mode (read coord as a polygone descr)
int
m_PolygonFillModeState
;
// In polygon mode: 0 = first segm, 1 = next segm
int
m_PolygonFillModeState
;
// In polygon mode: 0 = first segm, 1 = next segm
APERTURE_MACRO_SET
m_aperture_macros
;
APERTURE_MACRO_SET
m_aperture_macros
;
///< a collection of APERTURE_MACROS, sorted by name
public
:
public
:
GERBER
(
int
layer
);
GERBER
(
int
layer
);
...
...
gerbview/rs274x.cpp
View file @
8b351078
...
@@ -73,22 +73,16 @@ static int ReadXCommand( char*& text )
...
@@ -73,22 +73,16 @@ static int ReadXCommand( char*& text )
/**
/**
* Function ReadInt
* Function ReadInt
* reads an int from an ASCII character buffer.
* reads an int from an ASCII character buffer. If there is a comma after the
* int, then skip over that.
* @param text A reference to a character pointer from which bytes are read
* @param text A reference to a character pointer from which bytes are read
* and the pointer is advanced for each byte read.
* and the pointer is advanced for each byte read.
* @param int - The int read in.
* @param int - The int read in.
*/
*/
static
int
ReadInt
(
char
*&
text
)
static
int
ReadInt
(
char
*&
text
)
{
{
char
*
start
=
text
;
int
ret
=
(
int
)
strtol
(
text
,
&
text
,
10
);
int
ret
=
(
int
)
strtol
(
text
,
&
text
,
10
);
/*
if( text == start ) // no conversion was performed, skip one character forward
++text;
*/
if
(
*
text
==
','
)
if
(
*
text
==
','
)
++
text
;
++
text
;
...
@@ -98,22 +92,16 @@ static int ReadInt( char*& text )
...
@@ -98,22 +92,16 @@ static int ReadInt( char*& text )
/**
/**
* Function ReadDouble
* Function ReadDouble
* reads a double in from a character buffer.
* reads a double in from a character buffer. If there is a comma after the double,
* then skip over that.
* @param text A reference to a character pointer from which the ASCII double
* @param text A reference to a character pointer from which the ASCII double
* is read from and the pointer advanced for each character read.
* is read from and the pointer advanced for each character read.
* @return double
* @return double
*/
*/
static
double
ReadDouble
(
char
*&
text
)
static
double
ReadDouble
(
char
*&
text
)
{
{
char
*
start
=
text
;
double
ret
=
strtod
(
text
,
&
text
);
double
ret
=
strtod
(
text
,
&
text
);
/*
if( text == start ) // no conversion was performed, skip one character forward
++text;
*/
if
(
*
text
==
','
)
if
(
*
text
==
','
)
++
text
;
++
text
;
...
...
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