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
8c2d3d12
Commit
8c2d3d12
authored
Jul 09, 2013
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comment improvements
parent
e44fa937
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
dsnlexer.cpp
common/dsnlexer.cpp
+1
-1
dsnlexer.h
include/dsnlexer.h
+5
-7
No files found.
common/dsnlexer.cpp
View file @
8c2d3d12
...
...
@@ -396,7 +396,7 @@ static bool isSpace( char cc )
// Treat negative as large positive to exclude rapidly.
if
(
(
unsigned
char
)
cc
<=
' '
)
{
switch
(
cc
)
switch
(
(
unsigned
char
)
cc
)
{
case
' '
:
case
'\n'
:
...
...
include/dsnlexer.h
View file @
8c2d3d12
...
...
@@ -136,15 +136,13 @@ protected:
/**
* Function findToken
* takes a string and looks up the string in the list of expected
* tokens.
* takes aToken string and looks up the string in the keywords table.
*
* @param tok A string holding the token text to lookup, in an
* unpredictable case: uppercase or lowercase
* @return int - DSN_T matching the keyword text, or DSN_SYMBOL if argument
* string is not a recognized token.
* @param aToken is a string to lookup in the keywords table.
* @return int - with a value from the enum DSN_T matching the keyword text,
* or DSN_SYMBOL if @a aToken is not in the kewords table.
*/
int
findToken
(
const
std
::
string
&
tok
);
int
findToken
(
const
std
::
string
&
aToken
);
bool
isStringTerminator
(
char
cc
)
{
...
...
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