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

This commit is contained in:
Jesse Beder
2008-08-07 03:30:56 +00:00
parent 813817f1ab
commit ec2ecad197
30 changed files with 233 additions and 82 deletions

View File

@@ -9,12 +9,12 @@ namespace YAML
{
Stream(std::istream& input_): input(input_), line(0), column(0) {}
int pos() const { return input.tellg(); }
operator std::istream& () { return input; }
operator bool() { return input.good(); }
bool operator !() { return !input; }
int pos() const;
operator bool();
bool operator !() { return !(*this); }
char peek() { return input.peek(); }
std::istream& stream() const { return input; }
char peek();
char get();
std::string get(int n);
void eat(int n = 1);