Mercurial > hg > octave-max
comparison src/load-save.cc @ 4304:fd7d9a6e15ff
[project @ 2003-01-23 05:22:57 by jwe]
author | jwe |
---|---|
date | Thu, 23 Jan 2003 05:22:57 +0000 |
parents | 48fb5cec5d77 |
children | d53c33d93440 |
comparison
equal
deleted
inserted
replaced
4303:e15a96673976 | 4304:fd7d9a6e15ff |
---|---|
1840 retval = ""; | 1840 retval = ""; |
1841 | 1841 |
1842 char c; | 1842 char c; |
1843 while (is.get (c)) | 1843 while (is.get (c)) |
1844 { | 1844 { |
1845 if (c == '\n') | 1845 if (c == '\n' || c == '\r') |
1846 break; | 1846 break; |
1847 | 1847 |
1848 if (c == '%' || c == '#') | 1848 if (c == '%' || c == '#') |
1849 { | 1849 { |
1850 // skip to end of line | 1850 // skip to end of line |
1851 while (is.get (c) && c != '\n') | 1851 while (is.get (c)) |
1852 ; | 1852 if (c == '\n' || c == '\r') |
1853 break; | |
1853 | 1854 |
1854 break; | 1855 break; |
1855 } | 1856 } |
1856 | 1857 |
1857 if (! is.eof ()) | 1858 if (! is.eof ()) |