Unified line endings.

This commit is contained in:
Jesse Beder
2008-09-03 22:17:17 +00:00
parent 80db86e771
commit 5c0db0d21b
12 changed files with 60 additions and 60 deletions

View File

@@ -14,7 +14,7 @@ void run()
std::ifstream fin("tests/test.yaml");
try {
YAML::Parser parser(fin);
YAML::Parser parser(fin);
parser.PrintTokens(std::cout);
} catch(YAML::Exception&) {
std::cout << "Error parsing the yaml!\n";
@@ -22,15 +22,15 @@ void run()
}
int main(int argc, char **argv)
{
bool verbose = false;
for(int i=1;i<argc;i++) {
if(strcmp(argv[i], "-v") == 0)
verbose = true;
}
{
bool verbose = false;
for(int i=1;i<argc;i++) {
if(strcmp(argv[i], "-v") == 0)
verbose = true;
}
#ifdef WINDOWS
_CrtSetDbgFlag(_CRTDBG_LEAK_CHECK_DF|_CRTDBG_ALLOC_MEM_DF);
_CrtSetDbgFlag(_CRTDBG_LEAK_CHECK_DF|_CRTDBG_ALLOC_MEM_DF);
#endif // WINDOWS
Test::RunAll(verbose);
run();