# HG changeset patch # User xitiomet@Xi01-XP.xi01.myftp.org. # Date 1251513994 14400 # Node ID cb79cc5c51759d33a213b667a3366d6d5803898d # Parent ee2b834af76620f8936352d40a0a6bbeabc79598 updated code for windows compatibility diff -r ee2b834af76620f8936352d40a0a6bbeabc79598 -r cb79cc5c51759d33a213b667a3366d6d5803898d nglog.cc --- a/nglog.cc Fri Aug 28 17:37:20 2009 -0400 +++ b/nglog.cc Fri Aug 28 22:46:34 2009 -0400 @@ -173,8 +173,8 @@ int main (int argc, char *argv[]) { int i; - bool stdin = false; - bool stdout = false; + bool std_in = false; + bool std_out = false; bool show_help = true; bool input_set = false; bool output_set = false; @@ -193,9 +193,9 @@ if (!thisParam.compare("--pipe")) { - stdin = true; + std_in = true; inFilename = ""; - stdout = true; + std_out = true; inFilename = ""; input_set = true; @@ -209,7 +209,7 @@ if (!thisParam.compare("--stdin")) { - stdin = true; + std_in = true; inFilename = ""; input_set = true; @@ -217,7 +217,7 @@ if (!thisParam.compare("--stdout")) { - stdout = true; + std_out = true; outFilename = ""; output_set = true; @@ -226,7 +226,7 @@ if (!thisParam.compare("-o")) { outFilename = argv[i+1]; - stdout = false; + std_out = false; output_set = true; } @@ -234,7 +234,7 @@ if (!thisParam.compare("-i")) { inFilename = argv[i+1]; - stdin = false; + std_in = false; input_set = true; } @@ -268,7 +268,7 @@ istream *input_stream; ifstream inFile; - if (!stdin) + if (!std_in) { inFile.open(inFilename.c_str()); input_stream = &inFile; @@ -285,7 +285,7 @@ cerr << finalize; } - if (!stdout) + if (!std_out) { ofstream outfile (outFilename.c_str()); write_csv(plog, outfile);