Mercurial > octave-libgccjit
diff src/ls-oct-ascii.h @ 8946:e7e928088e90
fix CRLF issues with text-mode reading in windows when loading ascii data
author | Benjamin Lindner <lindnerb@users.sourceforge.net> |
---|---|
date | Tue, 10 Mar 2009 01:01:50 -0400 |
parents | eb63fbe60fab |
children | aabf7a8c2e57 |
line wrap: on
line diff
--- a/src/ls-oct-ascii.h Mon Mar 09 17:13:58 2009 -0400 +++ b/src/ls-oct-ascii.h Tue Mar 10 01:01:50 2009 -0400 @@ -30,6 +30,8 @@ #include "str-vec.h" +#include "ls-ascii-helper.h" + // Flag for cell elements #define CELL_ELT_TAG "<cell-element>" @@ -103,8 +105,7 @@ is >> value; if (is) status = true; - while (is.get (c) && c != '\n' && c != '\r') - ; // Skip to beginning of next line; + skip_until_newline (is, false); break; } else if (next_only) @@ -165,8 +166,7 @@ is >> value; if (is) status = true; - while (is.get (c) && c != '\n' && c != '\r') - ; // Skip to beginning of next line; + skip_until_newline (is, false); return status; } }