Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
PhoenixToml
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CTA-LAPP
PHOENIX_LIBS2
PhoenixToml
Commits
e56d80fb
Commit
e56d80fb
authored
3 months ago
by
Pierre Aubert
Browse files
Options
Downloads
Patches
Plain Diff
Allow parsing of empty file
parent
dbf9326e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#372954
passed
3 months ago
Stage: BuildTestinstall
Stage: DocCoverage
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/parser_toml.cpp
+6
-3
6 additions, 3 deletions
src/parser_toml.cpp
with
6 additions
and
3 deletions
src/parser_toml.cpp
+
6
−
3
View file @
e56d80fb
...
...
@@ -257,9 +257,12 @@ bool parser_toml_fileParser(DicoValue & dico, PFileParser & parser){
else
if
(
parse_toml_table_def
(
dico
,
parser
,
data
)){}
else
if
(
parse_toml_dico_def
(
dico
,
parser
,
data
)){}
else
{
std
::
cerr
<<
"parser_toml_fileParser : error at "
<<
parser
.
getLocation
()
<<
std
::
endl
;
std
::
cerr
<<
"
\t
unexpected token '"
<<
parser
.
getNextToken
()
<<
"'"
<<
std
::
endl
;
parse_toml_stopParsing
(
data
);
PString
nextToken
(
parser
.
getNextToken
());
if
(
nextToken
.
size
()
!=
0lu
){
//If the token is empty, we are at the end of the file
std
::
cerr
<<
"parser_toml_fileParser : error at "
<<
parser
.
getLocation
()
<<
std
::
endl
;
std
::
cerr
<<
"
\t
unexpected token '"
<<
nextToken
<<
"'"
<<
std
::
endl
;
parse_toml_stopParsing
(
data
);
}
}
}
return
data
.
isRun
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment