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
c42af938
Commit
c42af938
authored
Jan 05, 2011
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oops
parent
62a4072c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
dsnlexer.cpp
common/dsnlexer.cpp
+3
-2
No files found.
common/dsnlexer.cpp
View file @
c42af938
...
...
@@ -346,17 +346,18 @@ int DSNLEXER::NextTok() throw( IO_ERROR )
if
(
cur
>=
limit
)
{
L_read
:
cur
=
start
;
// blank lines are returned as "\n" and will have a len of 1.
// EOF will have a len of 0 and so is detectable.
int
len
=
readLine
();
if
(
len
==
0
)
{
cur
=
start
;
// after readLine(), since start can change, set cur offset to start
curTok
=
DSN_EOF
;
goto
exit
;
}
cur
=
start
;
// after readLine() since start can change.
// skip leading whitespace
while
(
cur
<
limit
&&
isSpace
(
*
cur
)
)
++
cur
;
...
...
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