Added CMake scripts for other platforms\nFixed some bugs that gcc complained about\nFixed CR/LF vs LF bug

This commit is contained in:
jbeder
2008-08-07 03:30:56 +00:00
parent 2601f5fd49
commit 2d93b6ce58
30 changed files with 233 additions and 82 deletions

View File

@@ -3,7 +3,8 @@
#include "node.h"
#include "scanner.h"
#include "token.h"
#include "exceptions.h"
#include "exceptions.h"
#include <iostream>
namespace YAML
{
@@ -142,7 +143,7 @@ namespace YAML
void Map::Write(std::ostream& out, int indent, bool startedLine, bool onlyOneCharOnLine)
{
if(startedLine && !onlyOneCharOnLine)
out << std::endl;
out << "\n";
for(node_map::const_iterator it=m_data.begin();it!=m_data.end();++it) {
if((startedLine && !onlyOneCharOnLine) || it != m_data.begin()) {
@@ -160,12 +161,7 @@ namespace YAML
}
if(m_data.empty())
out << std::endl;
}
CONTENT_TYPE Map::GetType() const
{
return CT_MAP;
out << "\n";
}
int Map::Compare(Content *pContent)