Collected pos, line, and column into a Mark struct

This commit is contained in:
Jesse Beder
2009-07-27 02:56:18 +00:00
parent 9b78bd459b
commit b1ce042535
17 changed files with 145 additions and 137 deletions

View File

@@ -48,12 +48,13 @@ namespace YAML
bool IsWhitespaceToBeEaten(char ch);
struct SimpleKey {
SimpleKey(int pos_, int line_, int column_, int flowLevel_);
SimpleKey(const Mark& mark_, int flowLevel_);
void Validate();
void Invalidate();
int pos, line, column, flowLevel;
Mark mark;
int flowLevel;
Token *pMapStart, *pKey;
};