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
cc559956
"...composable_kernel.git" did not exist on "29e1829f498da08cb7f8a0e392a35a9417c52a04"
Commit
cc559956
authored
May 22, 2012
by
Jesse Beder
Browse files
Added bool, char, binary
parent
879f96d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/emitter.cpp
src/emitter.cpp
+7
-1
No files found.
src/emitter.cpp
View file @
cc559956
...
@@ -369,7 +369,6 @@ namespace YAML
...
@@ -369,7 +369,6 @@ namespace YAML
void
Emitter
::
BlockMapPrepareKey
(
EmitterNodeType
::
value
child
)
void
Emitter
::
BlockMapPrepareKey
(
EmitterNodeType
::
value
child
)
{
{
const
unsigned
curIndent
=
m_pState
->
CurIndent
();
const
unsigned
curIndent
=
m_pState
->
CurIndent
();
const
unsigned
nextIndent
=
curIndent
+
m_pState
->
CurGroupIndent
();
const
std
::
size_t
childCount
=
m_pState
->
CurGroupChildCount
();
const
std
::
size_t
childCount
=
m_pState
->
CurGroupChildCount
();
if
(
child
==
EmitterNodeType
::
None
)
if
(
child
==
EmitterNodeType
::
None
)
...
@@ -520,6 +519,8 @@ namespace YAML
...
@@ -520,6 +519,8 @@ namespace YAML
if
(
!
good
())
if
(
!
good
())
return
*
this
;
return
*
this
;
PrepareNode
(
EmitterNodeType
::
Scalar
);
m_stream
<<
ComputeFullBoolName
(
b
);
m_pState
->
StartedScalar
();
m_pState
->
StartedScalar
();
return
*
this
;
return
*
this
;
...
@@ -530,6 +531,8 @@ namespace YAML
...
@@ -530,6 +531,8 @@ namespace YAML
if
(
!
good
())
if
(
!
good
())
return
*
this
;
return
*
this
;
PrepareNode
(
EmitterNodeType
::
Scalar
);
m_stream
<<
ch
;
m_pState
->
StartedScalar
();
m_pState
->
StartedScalar
();
return
*
this
;
return
*
this
;
...
@@ -635,6 +638,7 @@ namespace YAML
...
@@ -635,6 +638,7 @@ namespace YAML
if
(
!
good
())
if
(
!
good
())
return
*
this
;
return
*
this
;
// TODO
m_pState
->
StartedScalar
();
m_pState
->
StartedScalar
();
return
*
this
;
return
*
this
;
...
@@ -647,6 +651,8 @@ namespace YAML
...
@@ -647,6 +651,8 @@ namespace YAML
if
(
!
good
())
if
(
!
good
())
return
*
this
;
return
*
this
;
PrepareNode
(
EmitterNodeType
::
Scalar
);
Utils
::
WriteBinary
(
m_stream
,
binary
);
m_pState
->
StartedScalar
();
m_pState
->
StartedScalar
();
return
*
this
;
return
*
this
;
...
...
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