Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaml-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yaml-cpp
Commits
de1c6171
Commit
de1c6171
authored
May 22, 2009
by
Jesse Beder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed excessive stderr logging
parent
9245f925
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
22 deletions
+0
-22
src/emitter.cpp
+0
-22
No files found.
src/emitter.cpp
View file @
de1c6171
...
@@ -147,39 +147,31 @@ namespace YAML
...
@@ -147,39 +147,31 @@ namespace YAML
switch
(
curState
)
{
switch
(
curState
)
{
// document-level
// document-level
case
ES_WAITING_FOR_DOC
:
case
ES_WAITING_FOR_DOC
:
std
::
cerr
<<
"waiting for doc (pre)
\n
"
;
m_pState
->
SwitchState
(
ES_WRITING_DOC
);
m_pState
->
SwitchState
(
ES_WRITING_DOC
);
return
true
;
return
true
;
case
ES_WRITING_DOC
:
case
ES_WRITING_DOC
:
std
::
cerr
<<
"writing doc (pre)
\n
"
;
return
true
;
return
true
;
// block sequence
// block sequence
case
ES_WAITING_FOR_BLOCK_SEQ_ENTRY
:
case
ES_WAITING_FOR_BLOCK_SEQ_ENTRY
:
std
::
cerr
<<
"waiting for block seq entry (pre)
\n
"
;
m_stream
<<
IndentTo
(
curIndent
)
<<
"-"
;
m_stream
<<
IndentTo
(
curIndent
)
<<
"-"
;
m_pState
->
RequireSeparation
();
m_pState
->
RequireSeparation
();
m_pState
->
SwitchState
(
ES_WRITING_BLOCK_SEQ_ENTRY
);
m_pState
->
SwitchState
(
ES_WRITING_BLOCK_SEQ_ENTRY
);
return
true
;
return
true
;
case
ES_WRITING_BLOCK_SEQ_ENTRY
:
case
ES_WRITING_BLOCK_SEQ_ENTRY
:
std
::
cerr
<<
"writing block seq entry (pre)
\n
"
;
return
true
;
return
true
;
case
ES_DONE_WITH_BLOCK_SEQ_ENTRY
:
case
ES_DONE_WITH_BLOCK_SEQ_ENTRY
:
std
::
cerr
<<
"done with block seq entry (pre)
\n
"
;
m_stream
<<
'\n'
;
m_stream
<<
'\n'
;
m_pState
->
SwitchState
(
ES_WAITING_FOR_BLOCK_SEQ_ENTRY
);
m_pState
->
SwitchState
(
ES_WAITING_FOR_BLOCK_SEQ_ENTRY
);
return
false
;
return
false
;
// flow sequence
// flow sequence
case
ES_WAITING_FOR_FLOW_SEQ_ENTRY
:
case
ES_WAITING_FOR_FLOW_SEQ_ENTRY
:
std
::
cerr
<<
"waiting for flow seq entry (pre)
\n
"
;
m_pState
->
SwitchState
(
ES_WRITING_FLOW_SEQ_ENTRY
);
m_pState
->
SwitchState
(
ES_WRITING_FLOW_SEQ_ENTRY
);
return
true
;
return
true
;
case
ES_WRITING_FLOW_SEQ_ENTRY
:
case
ES_WRITING_FLOW_SEQ_ENTRY
:
std
::
cerr
<<
"writing flow seq entry (pre)
\n
"
;
return
true
;
return
true
;
case
ES_DONE_WITH_FLOW_SEQ_ENTRY
:
case
ES_DONE_WITH_FLOW_SEQ_ENTRY
:
std
::
cerr
<<
"done with flow seq entry (pre)
\n
"
;
m_stream
<<
','
;
m_stream
<<
','
;
m_pState
->
RequireSeparation
();
m_pState
->
RequireSeparation
();
m_pState
->
SwitchState
(
ES_WAITING_FOR_FLOW_SEQ_ENTRY
);
m_pState
->
SwitchState
(
ES_WAITING_FOR_FLOW_SEQ_ENTRY
);
...
@@ -187,11 +179,9 @@ namespace YAML
...
@@ -187,11 +179,9 @@ namespace YAML
// block map
// block map
case
ES_WAITING_FOR_BLOCK_MAP_ENTRY
:
case
ES_WAITING_FOR_BLOCK_MAP_ENTRY
:
std
::
cerr
<<
"waiting for block map entry (pre)
\n
"
;
m_pState
->
SetError
(
ErrorMsg
::
EXPECTED_KEY_TOKEN
);
m_pState
->
SetError
(
ErrorMsg
::
EXPECTED_KEY_TOKEN
);
return
true
;
return
true
;
case
ES_WAITING_FOR_BLOCK_MAP_KEY
:
case
ES_WAITING_FOR_BLOCK_MAP_KEY
:
std
::
cerr
<<
"waiting for block map key (pre)
\n
"
;
if
(
m_pState
->
CurrentlyInLongKey
())
{
if
(
m_pState
->
CurrentlyInLongKey
())
{
m_stream
<<
IndentTo
(
curIndent
)
<<
'?'
;
m_stream
<<
IndentTo
(
curIndent
)
<<
'?'
;
m_pState
->
RequireSeparation
();
m_pState
->
RequireSeparation
();
...
@@ -199,14 +189,11 @@ namespace YAML
...
@@ -199,14 +189,11 @@ namespace YAML
m_pState
->
SwitchState
(
ES_WRITING_BLOCK_MAP_KEY
);
m_pState
->
SwitchState
(
ES_WRITING_BLOCK_MAP_KEY
);
return
true
;
return
true
;
case
ES_WRITING_BLOCK_MAP_KEY
:
case
ES_WRITING_BLOCK_MAP_KEY
:
std
::
cerr
<<
"writing block map key (pre)
\n
"
;
return
true
;
return
true
;
case
ES_DONE_WITH_BLOCK_MAP_KEY
:
case
ES_DONE_WITH_BLOCK_MAP_KEY
:
std
::
cerr
<<
"done with block map key (pre)
\n
"
;
m_pState
->
SetError
(
ErrorMsg
::
EXPECTED_VALUE_TOKEN
);
m_pState
->
SetError
(
ErrorMsg
::
EXPECTED_VALUE_TOKEN
);
return
true
;
return
true
;
case
ES_WAITING_FOR_BLOCK_MAP_VALUE
:
case
ES_WAITING_FOR_BLOCK_MAP_VALUE
:
std
::
cerr
<<
"waiting for block map value (pre)
\n
"
;
if
(
m_pState
->
CurrentlyInLongKey
())
if
(
m_pState
->
CurrentlyInLongKey
())
m_stream
<<
IndentTo
(
curIndent
);
m_stream
<<
IndentTo
(
curIndent
);
m_stream
<<
':'
;
m_stream
<<
':'
;
...
@@ -214,20 +201,16 @@ namespace YAML
...
@@ -214,20 +201,16 @@ namespace YAML
m_pState
->
SwitchState
(
ES_WRITING_BLOCK_MAP_VALUE
);
m_pState
->
SwitchState
(
ES_WRITING_BLOCK_MAP_VALUE
);
return
true
;
return
true
;
case
ES_WRITING_BLOCK_MAP_VALUE
:
case
ES_WRITING_BLOCK_MAP_VALUE
:
std
::
cerr
<<
"writing block map value (pre)
\n
"
;
return
true
;
return
true
;
case
ES_DONE_WITH_BLOCK_MAP_VALUE
:
case
ES_DONE_WITH_BLOCK_MAP_VALUE
:
std
::
cerr
<<
"done with block map value (pre)
\n
"
;
m_pState
->
SetError
(
ErrorMsg
::
EXPECTED_KEY_TOKEN
);
m_pState
->
SetError
(
ErrorMsg
::
EXPECTED_KEY_TOKEN
);
return
true
;
return
true
;
// flow map
// flow map
case
ES_WAITING_FOR_FLOW_MAP_ENTRY
:
case
ES_WAITING_FOR_FLOW_MAP_ENTRY
:
std
::
cerr
<<
"waiting for flow map entry (pre)
\n
"
;
m_pState
->
SetError
(
ErrorMsg
::
EXPECTED_KEY_TOKEN
);
m_pState
->
SetError
(
ErrorMsg
::
EXPECTED_KEY_TOKEN
);
return
true
;
return
true
;
case
ES_WAITING_FOR_FLOW_MAP_KEY
:
case
ES_WAITING_FOR_FLOW_MAP_KEY
:
std
::
cerr
<<
"waiting for flow map key (pre)
\n
"
;
m_pState
->
SwitchState
(
ES_WRITING_FLOW_MAP_KEY
);
m_pState
->
SwitchState
(
ES_WRITING_FLOW_MAP_KEY
);
if
(
m_pState
->
CurrentlyInLongKey
())
{
if
(
m_pState
->
CurrentlyInLongKey
())
{
EmitSeparationIfNecessary
();
EmitSeparationIfNecessary
();
...
@@ -236,23 +219,18 @@ namespace YAML
...
@@ -236,23 +219,18 @@ namespace YAML
}
}
return
true
;
return
true
;
case
ES_WRITING_FLOW_MAP_KEY
:
case
ES_WRITING_FLOW_MAP_KEY
:
std
::
cerr
<<
"writing flow map key (pre)
\n
"
;
return
true
;
return
true
;
case
ES_DONE_WITH_FLOW_MAP_KEY
:
case
ES_DONE_WITH_FLOW_MAP_KEY
:
std
::
cerr
<<
"done with flow map key (pre)
\n
"
;
m_pState
->
SetError
(
ErrorMsg
::
EXPECTED_VALUE_TOKEN
);
m_pState
->
SetError
(
ErrorMsg
::
EXPECTED_VALUE_TOKEN
);
return
true
;
return
true
;
case
ES_WAITING_FOR_FLOW_MAP_VALUE
:
case
ES_WAITING_FOR_FLOW_MAP_VALUE
:
std
::
cerr
<<
"waiting for flow map value (pre)
\n
"
;
m_stream
<<
':'
;
m_stream
<<
':'
;
m_pState
->
RequireSeparation
();
m_pState
->
RequireSeparation
();
m_pState
->
SwitchState
(
ES_WRITING_FLOW_MAP_VALUE
);
m_pState
->
SwitchState
(
ES_WRITING_FLOW_MAP_VALUE
);
return
true
;
return
true
;
case
ES_WRITING_FLOW_MAP_VALUE
:
case
ES_WRITING_FLOW_MAP_VALUE
:
std
::
cerr
<<
"writing flow map value (pre)
\n
"
;
return
true
;
return
true
;
case
ES_DONE_WITH_FLOW_MAP_VALUE
:
case
ES_DONE_WITH_FLOW_MAP_VALUE
:
std
::
cerr
<<
"done with flow map value (pre)
\n
"
;
m_pState
->
SetError
(
ErrorMsg
::
EXPECTED_KEY_TOKEN
);
m_pState
->
SetError
(
ErrorMsg
::
EXPECTED_KEY_TOKEN
);
return
true
;
return
true
;
default
:
default
:
...
...
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