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

@@ -2,7 +2,8 @@
#include "sequence.h"
#include "node.h"
#include "scanner.h"
#include "token.h"
#include "token.h"
#include <iostream>
namespace YAML
{
@@ -134,7 +135,7 @@ namespace YAML
void Sequence::Write(std::ostream& out, int indent, bool startedLine, bool onlyOneCharOnLine)
{
if(startedLine && !onlyOneCharOnLine)
out << std::endl;
out << "\n";
for(unsigned i=0;i<m_data.size();i++) {
if((startedLine && !onlyOneCharOnLine) || i > 0) {
@@ -147,12 +148,7 @@ namespace YAML
}
if(m_data.empty())
out << std::endl;
}
CONTENT_TYPE Sequence::GetType() const
{
return CT_SEQUENCE;
out << "\n";
}
int Sequence::Compare(Content *pContent)