1.1 --- a/src/ls-oct-ascii.h Mon Sep 08 12:45:53 2008 -0400
1.2 +++ b/src/ls-oct-ascii.h Wed Mar 18 15:23:14 2009 +0100
1.3 @@ -29,6 +29,7 @@
1.4 #include <string>
1.5
1.6 #include "str-vec.h"
1.7 +#include "ls-ascii-helper.h"
1.8
1.9 // Flag for cell elements
1.10 #define CELL_ELT_TAG "<cell-element>"
1.11 @@ -103,8 +104,8 @@
1.12 is >> value;
1.13 if (is)
1.14 status = true;
1.15 - while (is.get (c) && c != '\n' && c != '\r')
1.16 - ; // Skip to beginning of next line;
1.17 + // Skip to beginning of next line;
1.18 + skip_until_newline (is, false);
1.19 break;
1.20 }
1.21 else if (next_only)
1.22 @@ -165,8 +166,8 @@
1.23 is >> value;
1.24 if (is)
1.25 status = true;
1.26 - while (is.get (c) && c != '\n' && c != '\r')
1.27 - ; // Skip to beginning of next line;
1.28 + // Skip to beginning of next line;
1.29 + skip_until_newline (is, false);
1.30 return status;
1.31 }
1.32 }