mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-08 12:21:17 +00:00
@@ -8,9 +8,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace YAML {
|
namespace YAML {
|
||||||
struct EmitterStyle {
|
namespace EmitterStyle {
|
||||||
enum value { Default, Block, Flow };
|
enum value { Default, Block, Flow };
|
||||||
};
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // EMITTERSTYLE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
|
#endif // EMITTERSTYLE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
|
||||||
|
@@ -8,9 +8,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace YAML {
|
namespace YAML {
|
||||||
struct NodeType {
|
namespace NodeType {
|
||||||
enum value { Undefined, Null, Scalar, Sequence, Map };
|
enum value { Undefined, Null, Scalar, Sequence, Map };
|
||||||
};
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // VALUE_TYPE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
|
#endif // VALUE_TYPE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
|
||||||
|
@@ -1,4 +1,3 @@
|
|||||||
#include <algorithm>
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
@@ -93,8 +92,8 @@ void SingleDocParser::HandleNode(EventHandler& eventHandler) {
|
|||||||
// add non-specific tags
|
// add non-specific tags
|
||||||
if (tag.empty())
|
if (tag.empty())
|
||||||
tag = (token.type == Token::NON_PLAIN_SCALAR ? "!" : "?");
|
tag = (token.type == Token::NON_PLAIN_SCALAR ? "!" : "?");
|
||||||
|
|
||||||
if (token.type == Token::PLAIN_SCALAR
|
if (token.type == Token::PLAIN_SCALAR
|
||||||
&& tag.compare("?") == 0 && IsNullString(token.value)) {
|
&& tag.compare("?") == 0 && IsNullString(token.value)) {
|
||||||
eventHandler.OnNull(mark, anchor);
|
eventHandler.OnNull(mark, anchor);
|
||||||
m_scanner.pop();
|
m_scanner.pop();
|
||||||
|
Reference in New Issue
Block a user