Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libconfig
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
libconfig
Commits
6303eed9
Commit
6303eed9
authored
Dec 29, 2015
by
Jose Luis Tallon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code styling: apply fixes as per Mark's advice.
parent
e32f102e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/scanner.l
lib/scanner.l
+4
-4
No files found.
lib/scanner.l
View file @
6303eed9
...
...
@@ -237,15 +237,15 @@ include_dir_open ^[ \t]*@include_dir[ \t]+\"
int errsave = errno;
errno = 0;
llval = strtoll(yytext, &endptr, 0); /* base 10 or base 8 */
if(
'\0'!=*endptr || 0!=errno
)
if(
*endptr || errno
)
{
errno = 0;
return(TOK_ERROR); /* some error occured ... */
}
errno = errsave;
if(
'0'==*yytext && '\0'!=*(yytext+1)
)
{
/* it's octal... so INT we go */
yylval->ival
=
(int)(llval);
if(
(*yytext == '0') && (*(yytext+1) != '\0')
)
{
/* it's octal... so INT we go */
yylval->ival
=
(int)(llval);
return(TOK_INTEGER);
}
...
...
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