Mercurial > octave-libgccjit
comparison src/ls-mat-ascii.cc @ 8962:985792c9e0da
ls-mat-ascii.cc (get_mat_data_input_line): if looking at CR or LF, skip current line ending instead of skipping until the next
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 12 Mar 2009 12:45:38 -0400 |
parents | e7e928088e90 |
children | c6edba80dfae |
comparison
equal
deleted
inserted
replaced
8961:6b87f2f34fdd | 8962:985792c9e0da |
---|---|
79 char c; | 79 char c; |
80 while (is.get (c)) | 80 while (is.get (c)) |
81 { | 81 { |
82 if (c == '\n' || c == '\r') | 82 if (c == '\n' || c == '\r') |
83 { | 83 { |
84 skip_until_newline (is, false); | 84 is.putback (c); |
85 skip_preceeding_newline (is); | |
85 break; | 86 break; |
86 } | 87 } |
87 | 88 |
88 if (c == '%' || c == '#') | 89 if (c == '%' || c == '#') |
89 { | 90 { |