mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Major switch from Value -> Node. The library compiles with the new API, but tests are still oldies, and don't compile
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
#include "yaml-cpp/eventhandler.h"
|
||||
#include "yaml-cpp/exceptions.h"
|
||||
#include "yaml-cpp/node.h"
|
||||
#include "nodebuilder.h"
|
||||
#include "scanner.h"
|
||||
#include "singledocparser.h"
|
||||
#include "tag.h"
|
||||
@@ -11,6 +10,10 @@
|
||||
#include <sstream>
|
||||
#include <cstdio>
|
||||
|
||||
#if YAML_CPP_OLD_API
|
||||
#include "old-api/nodebuilder.h"
|
||||
#endif
|
||||
|
||||
namespace YAML
|
||||
{
|
||||
Parser::Parser()
|
||||
@@ -55,6 +58,7 @@ namespace YAML
|
||||
return true;
|
||||
}
|
||||
|
||||
#if YAML_CPP_OLD_API
|
||||
// GetNextDocument
|
||||
// . Reads the next document in the queue (of tokens).
|
||||
// . Throws a ParserException on error.
|
||||
@@ -63,6 +67,7 @@ namespace YAML
|
||||
NodeBuilder builder(document);
|
||||
return HandleNextDocument(builder);
|
||||
}
|
||||
#endif
|
||||
|
||||
// ParseDirectives
|
||||
// . Reads any directives that are next in the queue.
|
||||
|
Reference in New Issue
Block a user