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
6be7640c
Commit
6be7640c
authored
Jan 21, 2011
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix minor /new compile error, swig warnings
parent
907117aa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
7 deletions
+13
-7
TokenList2DsnLexer.cmake
CMakeModules/TokenList2DsnLexer.cmake
+1
-1
dsnlexer.h
include/dsnlexer.h
+4
-2
sch_lib_table.cpp
new/sch_lib_table.cpp
+1
-1
sch_part.cpp
new/sch_part.cpp
+2
-3
sweet.i
new/sweet.i
+5
-0
No files found.
CMakeModules/TokenList2DsnLexer.cmake
View file @
6be7640c
...
@@ -380,7 +380,7 @@ const char* ${LEXERCLASS}::TokenName( T aTok )
...
@@ -380,7 +380,7 @@ const char* ${LEXERCLASS}::TokenName( T aTok )
}
}
else if( aTok < 0 )
else if( aTok < 0 )
{
{
ret
urn
DSNLEXER::Syntax( aTok );
ret
=
DSNLEXER::Syntax( aTok );
}
}
else
else
ret =
\"
token too big
\"
;
ret =
\"
token too big
\"
;
...
...
include/dsnlexer.h
View file @
6be7640c
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#include "richio.h"
#include "richio.h"
#ifndef SWIG
/**
/**
* Struct KEYWORD
* Struct KEYWORD
* holds a keyword string and its unique integer token.
* holds a keyword string and its unique integer token.
...
@@ -41,6 +41,7 @@ struct KEYWORD
...
@@ -41,6 +41,7 @@ struct KEYWORD
const
char
*
name
;
///< unique keyword.
const
char
*
name
;
///< unique keyword.
int
token
;
///< a zero based index into an array of KEYWORDs
int
token
;
///< a zero based index into an array of KEYWORDs
};
};
#endif
// something like this macro can be used to help initialize a KEYWORD table.
// something like this macro can be used to help initialize a KEYWORD table.
// see SPECCTRA_DB::keywords[] as an example.
// see SPECCTRA_DB::keywords[] as an example.
...
@@ -76,6 +77,7 @@ enum DSN_SYNTAX_T {
...
@@ -76,6 +77,7 @@ enum DSN_SYNTAX_T {
*/
*/
class
DSNLEXER
class
DSNLEXER
{
{
#ifndef SWIG
protected
:
protected
:
bool
iOwnReaders
;
///< on readerStack, should I delete them?
bool
iOwnReaders
;
///< on readerStack, should I delete them?
const
char
*
start
;
const
char
*
start
;
...
@@ -155,7 +157,7 @@ protected:
...
@@ -155,7 +157,7 @@ protected:
return
false
;
return
false
;
}
}
#endif
public
:
public
:
...
...
new/sch_lib_table.cpp
View file @
6be7640c
...
@@ -97,7 +97,7 @@ void LIB_TABLE::Parse( SCH_LIB_TABLE_LEXER* in ) throw( IO_ERROR )
...
@@ -97,7 +97,7 @@ void LIB_TABLE::Parse( SCH_LIB_TABLE_LEXER* in ) throw( IO_ERROR )
strcmp
(
in
->
CurText
(),
"subversion"
)
&&
strcmp
(
in
->
CurText
(),
"subversion"
)
&&
strcmp
(
in
->
CurText
(),
"http"
)
)
strcmp
(
in
->
CurText
(),
"http"
)
)
{
{
in
->
Expecting
(
wxT
(
"dir|schematic|subversion|http"
)
);
in
->
Expecting
(
"dir|schematic|subversion|http"
);
}
}
row
->
SetType
(
in
->
CurText
()
);
row
->
SetType
(
in
->
CurText
()
);
...
...
new/sch_part.cpp
View file @
6be7640c
...
@@ -176,7 +176,7 @@ public:
...
@@ -176,7 +176,7 @@ public:
for
(
;
tok
!=
T_RIGHT
;
tok
=
in
->
NextTok
()
)
for
(
;
tok
!=
T_RIGHT
;
tok
=
in
->
NextTok
()
)
{
{
if
(
tok
==
T_EOF
)
if
(
tok
==
T_EOF
)
in
->
Unexpected
(
_
(
"end of input"
)
);
in
->
Unexpected
(
T_EOF
);
if
(
tok
==
T_LEFT
)
if
(
tok
==
T_LEFT
)
tok
=
in
->
NextTok
();
tok
=
in
->
NextTok
();
...
@@ -185,14 +185,13 @@ public:
...
@@ -185,14 +185,13 @@ public:
{
{
default
:
default
:
// describe what we expect at this level
// describe what we expect at this level
in
->
Expecting
(
wxT
(
in
->
Expecting
(
"anchor|value|footprint|model|keywords|alternates
\n
"
"anchor|value|footprint|model|keywords|alternates
\n
"
"|property
\n
"
"|property
\n
"
" |property_del
\n
"
" |property_del
\n
"
"|pin
\n
"
"|pin
\n
"
" |pin_merge|pin_swap|pin_renum|pin_rename|route_pin_swap
\n
"
" |pin_merge|pin_swap|pin_renum|pin_rename|route_pin_swap
\n
"
"|polyline|line|rectangle|circle|arc|bezier|text"
"|polyline|line|rectangle|circle|arc|bezier|text"
)
);
);
break
;
break
;
...
...
new/sweet.i
View file @
6be7640c
...
@@ -22,6 +22,10 @@
...
@@ -22,6 +22,10 @@
%ignore LINE_READER::operator char* () const;
%ignore LINE_READER::operator char* () const;
namespace SCH {
%ignore PART::operator=( const PART& other );
}
%include "richio.h"
%include "richio.h"
%include "dsnlexer.h"
%include "dsnlexer.h"
//%include "sch_lib_table_lexer.h"
//%include "sch_lib_table_lexer.h"
...
@@ -29,4 +33,5 @@
...
@@ -29,4 +33,5 @@
%include "sch_lib.h"
%include "sch_lib.h"
%include "sch_lib_table.h"
%include "sch_lib_table.h"
%include "sweet_lexer.h"
%include "sweet_lexer.h"
%include "sch_part.h"
%include "sch_part.h"
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