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
5155c35a
Commit
5155c35a
authored
Nov 27, 2012
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reverse throw() clauses to quiet SWIG errors
parent
b065b37a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
kicad_plugin.cpp
pcbnew/kicad_plugin.cpp
+1
-1
kicad_plugin.h
pcbnew/kicad_plugin.h
+1
-1
pcb_plot_params.cpp
pcbnew/pcb_plot_params.cpp
+2
-2
pcb_plot_params.h
pcbnew/pcb_plot_params.h
+5
-2
No files found.
pcbnew/kicad_plugin.cpp
View file @
5155c35a
...
@@ -309,7 +309,7 @@ void PCB_IO::Save( const wxString& aFileName, BOARD* aBoard, PROPERTIES* aProper
...
@@ -309,7 +309,7 @@ void PCB_IO::Save( const wxString& aFileName, BOARD* aBoard, PROPERTIES* aProper
}
}
BOARD_ITEM
*
PCB_IO
::
Parse
(
const
wxString
&
aClipboardSourceInput
)
throw
(
IO_ERROR
,
PARSE
_ERROR
)
BOARD_ITEM
*
PCB_IO
::
Parse
(
const
wxString
&
aClipboardSourceInput
)
throw
(
PARSE_ERROR
,
IO
_ERROR
)
{
{
std
::
string
input
=
TO_UTF8
(
aClipboardSourceInput
);
std
::
string
input
=
TO_UTF8
(
aClipboardSourceInput
);
...
...
pcbnew/kicad_plugin.h
View file @
5155c35a
...
@@ -129,7 +129,7 @@ public:
...
@@ -129,7 +129,7 @@ public:
void
SetOutputFormatter
(
OUTPUTFORMATTER
*
aFormatter
)
{
m_out
=
aFormatter
;
}
void
SetOutputFormatter
(
OUTPUTFORMATTER
*
aFormatter
)
{
m_out
=
aFormatter
;
}
BOARD_ITEM
*
Parse
(
const
wxString
&
aClipboardSourceInput
)
BOARD_ITEM
*
Parse
(
const
wxString
&
aClipboardSourceInput
)
throw
(
IO_ERROR
,
PARSE
_ERROR
);
throw
(
PARSE_ERROR
,
IO
_ERROR
);
protected
:
protected
:
...
...
pcbnew/pcb_plot_params.cpp
View file @
5155c35a
...
@@ -186,7 +186,7 @@ void PCB_PLOT_PARAMS::Format( OUTPUTFORMATTER* aFormatter,
...
@@ -186,7 +186,7 @@ void PCB_PLOT_PARAMS::Format( OUTPUTFORMATTER* aFormatter,
void
PCB_PLOT_PARAMS
::
Parse
(
PCB_PLOT_PARAMS_PARSER
*
aParser
)
void
PCB_PLOT_PARAMS
::
Parse
(
PCB_PLOT_PARAMS_PARSER
*
aParser
)
throw
(
IO_ERROR
,
PARSE
_ERROR
)
throw
(
PARSE_ERROR
,
IO
_ERROR
)
{
{
aParser
->
Parse
(
this
);
aParser
->
Parse
(
this
);
}
}
...
@@ -310,7 +310,7 @@ PCB_PLOT_PARAMS_PARSER::PCB_PLOT_PARAMS_PARSER( char* aLine, const wxString& aSo
...
@@ -310,7 +310,7 @@ PCB_PLOT_PARAMS_PARSER::PCB_PLOT_PARAMS_PARSER( char* aLine, const wxString& aSo
void
PCB_PLOT_PARAMS_PARSER
::
Parse
(
PCB_PLOT_PARAMS
*
aPcbPlotParams
)
void
PCB_PLOT_PARAMS_PARSER
::
Parse
(
PCB_PLOT_PARAMS
*
aPcbPlotParams
)
throw
(
IO_ERROR
,
PARSE
_ERROR
)
throw
(
PARSE_ERROR
,
IO
_ERROR
)
{
{
T
token
;
T
token
;
while
(
(
token
=
NextTok
()
)
!=
T_RIGHT
)
while
(
(
token
=
NextTok
()
)
!=
T_RIGHT
)
...
...
pcbnew/pcb_plot_params.h
View file @
5155c35a
...
@@ -41,8 +41,10 @@ class PCB_PLOT_PARAMS_PARSER : public PCB_PLOT_PARAMS_LEXER
...
@@ -41,8 +41,10 @@ class PCB_PLOT_PARAMS_PARSER : public PCB_PLOT_PARAMS_LEXER
public
:
public
:
PCB_PLOT_PARAMS_PARSER
(
LINE_READER
*
aReader
);
PCB_PLOT_PARAMS_PARSER
(
LINE_READER
*
aReader
);
PCB_PLOT_PARAMS_PARSER
(
char
*
aLine
,
const
wxString
&
aSource
);
PCB_PLOT_PARAMS_PARSER
(
char
*
aLine
,
const
wxString
&
aSource
);
LINE_READER
*
GetReader
()
{
return
reader
;
};
LINE_READER
*
GetReader
()
{
return
reader
;
};
void
Parse
(
PCB_PLOT_PARAMS
*
aPcbPlotParams
)
throw
(
IO_ERROR
,
PARSE_ERROR
);
void
Parse
(
PCB_PLOT_PARAMS
*
aPcbPlotParams
)
throw
(
PARSE_ERROR
,
IO_ERROR
);
bool
ParseBool
();
bool
ParseBool
();
/**
/**
...
@@ -55,6 +57,7 @@ public:
...
@@ -55,6 +57,7 @@ public:
int
ParseInt
(
int
aMin
,
int
aMax
);
int
ParseInt
(
int
aMin
,
int
aMax
);
};
};
/**
/**
* Class PCB_PLOT_PARAMS
* Class PCB_PLOT_PARAMS
* handles plot parameters and options when plotting/printing a board.
* handles plot parameters and options when plotting/printing a board.
...
@@ -180,7 +183,7 @@ public:
...
@@ -180,7 +183,7 @@ public:
void
Format
(
OUTPUTFORMATTER
*
aFormatter
,
int
aNestLevel
,
int
aControl
=
0
)
void
Format
(
OUTPUTFORMATTER
*
aFormatter
,
int
aNestLevel
,
int
aControl
=
0
)
const
throw
(
IO_ERROR
);
const
throw
(
IO_ERROR
);
void
Parse
(
PCB_PLOT_PARAMS_PARSER
*
aParser
)
throw
(
IO_ERROR
,
PARSE
_ERROR
);
void
Parse
(
PCB_PLOT_PARAMS_PARSER
*
aParser
)
throw
(
PARSE_ERROR
,
IO
_ERROR
);
bool
operator
==
(
const
PCB_PLOT_PARAMS
&
aPcbPlotParams
)
const
;
bool
operator
==
(
const
PCB_PLOT_PARAMS
&
aPcbPlotParams
)
const
;
bool
operator
!=
(
const
PCB_PLOT_PARAMS
&
aPcbPlotParams
)
const
;
bool
operator
!=
(
const
PCB_PLOT_PARAMS
&
aPcbPlotParams
)
const
;
...
...
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