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
f1f11cf6
Commit
f1f11cf6
authored
Mar 08, 2010
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revive target 'dsntest' from common, start exploring pasting text from clipboard, primitively.
parent
56ccc81b
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
903 additions
and
26 deletions
+903
-26
CMakeLists.txt
common/CMakeLists.txt
+11
-1
dsnlexer.cpp
common/dsnlexer.cpp
+885
-17
richio.cpp
common/richio.cpp
+2
-3
dsnlexer.h
include/dsnlexer.h
+4
-0
CMakeLists.txt
pcbnew/CMakeLists.txt
+0
-5
specctra.h
pcbnew/specctra.h
+1
-0
No files found.
common/CMakeLists.txt
View file @
f1f11cf6
...
...
@@ -88,3 +88,13 @@ set(PCB_COMMON_SRCS
)
add_library
(
pcbcommon
${
PCB_COMMON_SRCS
}
)
# The dsntest may not build properly using MS Visual Studio.
if
(
NOT MSVC
)
# This one gets made only when testing.
# to build it, first enable #define STAND_ALONE at top of dsnlexer.cpp
add_executable
(
dsntest EXCLUDE_FROM_ALL dsnlexer.cpp
)
target_link_libraries
(
dsntest common
${
wxWidgets_LIBRARIES
}
)
endif
(
NOT MSVC
)
common/dsnlexer.cpp
View file @
f1f11cf6
This diff is collapsed.
Click to expand it.
common/richio.cpp
View file @
f1f11cf6
...
...
@@ -91,19 +91,18 @@ int STRING_LINE_READER::ReadLine() throw (IOError)
if
(
advance
)
{
if
(
advance
>
=
maxLineLength
)
if
(
advance
>
maxLineLength
)
throw
IOError
(
_
(
"Line length exceeded"
)
);
wxASSERT
(
ndx
+
advance
<=
source
.
length
()
);
memcpy
(
line
,
&
source
[
ndx
],
advance
);
length
=
advance
;
++
lineNum
;
ndx
+=
advance
;
}
length
=
advance
;
line
[
advance
]
=
0
;
return
advance
;
...
...
include/dsnlexer.h
View file @
f1f11cf6
...
...
@@ -98,6 +98,7 @@ class DSNLEXER
const
KEYWORD
*
keywords
;
unsigned
keywordCount
;
void
init
();
int
readLine
()
throw
(
IOError
)
{
...
...
@@ -159,6 +160,9 @@ public:
DSNLEXER
(
FILE
*
aFile
,
const
wxString
&
aFilename
,
const
KEYWORD
*
aKeywordTable
,
unsigned
aKeywordCount
);
DSNLEXER
(
const
std
::
string
&
aClipboardTxt
,
const
KEYWORD
*
aKeywordTable
,
unsigned
aKeywordCount
);
~
DSNLEXER
()
{
delete
reader
;
...
...
pcbnew/CMakeLists.txt
View file @
f1f11cf6
...
...
@@ -233,14 +233,9 @@ install(TARGETS ${PCBNEW_NAME}
# The specctra test fails to build properly using MS Visual Studio.
if
(
NOT MSVC
)
# This one gets made only when testing.
#add_executable(dsntest EXCLUDE_FROM_ALL dsn.cpp)
#target_link_libraries(dsntest common ${wxWidgets_LIBRARIES})
# This one gets made only when testing.
add_executable
(
specctra_test EXCLUDE_FROM_ALL specctra.cpp
)
target_link_libraries
(
specctra_test common
${
wxWidgets_LIBRARIES
}
)
endif
(
NOT MSVC
)
# This one gets made only when testing.
...
...
pcbnew/specctra.h
View file @
f1f11cf6
...
...
@@ -71,6 +71,7 @@ enum DSN_T {
// these first few are negative special ones for syntax, and are
// inherited from DSNLEXER.
T_NONE
=
DSN_NONE
,
T_COMMENT
=
DSN_COMMENT
,
T_STRING_QUOTE
=
DSN_STRING_QUOTE
,
T_QUOTE_DEF
=
DSN_QUOTE_DEF
,
T_DASH
=
DSN_DASH
,
...
...
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