Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
bce845bb
"...composable_kernel.git" did not exist on "627054b941166aedd08724575b036ffe0ad74ca8"
Commit
bce845bb
authored
Oct 19, 2009
by
Jesse Beder
Browse files
Fixed little bug in parser commit
parent
ed570b9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/parser.cpp
src/parser.cpp
+6
-0
No files found.
src/parser.cpp
View file @
bce845bb
...
@@ -37,6 +37,9 @@ namespace YAML
...
@@ -37,6 +37,9 @@ namespace YAML
// . Throws a ParserException on error.
// . Throws a ParserException on error.
bool
Parser
::
GetNextDocument
(
Node
&
document
)
bool
Parser
::
GetNextDocument
(
Node
&
document
)
{
{
if
(
!
m_pScanner
.
get
())
return
false
;
// clear node
// clear node
document
.
Clear
();
document
.
Clear
();
...
@@ -130,6 +133,9 @@ namespace YAML
...
@@ -130,6 +133,9 @@ namespace YAML
void
Parser
::
PrintTokens
(
std
::
ostream
&
out
)
void
Parser
::
PrintTokens
(
std
::
ostream
&
out
)
{
{
if
(
!
m_pScanner
.
get
())
return
;
while
(
1
)
{
while
(
1
)
{
if
(
m_pScanner
->
empty
())
if
(
m_pScanner
->
empty
())
break
;
break
;
...
...
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