Mercurial > octave-libgccjit
comparison src/file-io.cc @ 11586:12df7854fa7c
strip trailing whitespace from source files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:24:59 -0500 |
parents | 7d6d8c1e471f |
children | 5ec6aa05638d |
comparison
equal
deleted
inserted
replaced
11585:1473d0cf86d2 | 11586:12df7854fa7c |
---|---|
468 "fopen: file found in load path"); | 468 "fopen: file found in load path"); |
469 fname = tmp; | 469 fname = tmp; |
470 } | 470 } |
471 } | 471 } |
472 } | 472 } |
473 | 473 |
474 if (! fs.is_dir ()) | 474 if (! fs.is_dir ()) |
475 { | 475 { |
476 std::string tmode = mode; | 476 std::string tmode = mode; |
477 | 477 |
478 // Use binary mode if 't' is not specified, but don't add | 478 // Use binary mode if 't' is not specified, but don't add |
864 if (nargin > 1 || (nargin > 0 && args(0).is_string ())) | 864 if (nargin > 1 || (nargin > 0 && args(0).is_string ())) |
865 { | 865 { |
866 octave_stream os; | 866 octave_stream os; |
867 int fmt_n = 0; | 867 int fmt_n = 0; |
868 | 868 |
869 if (args(0).is_string ()) | 869 if (args(0).is_string ()) |
870 { | 870 { |
871 os = octave_stream_list::lookup (1, who); | 871 os = octave_stream_list::lookup (1, who); |
872 } | 872 } |
873 else | 873 else |
874 { | 874 { |