comparison src/oct-stream.cc @ 4888:4a796c5fc7a3

[project @ 2004-04-30 18:27:07 by jwe]
author jwe
date Fri, 30 Apr 2004 18:27:07 +0000
parents c69a6a16932b
children 658aad1c1b05
comparison
equal deleted inserted replaced
4887:bbddd4339cf2 4888:4a796c5fc7a3
933 } 933 }
934 934
935 void 935 void
936 octave_base_stream::clear (void) 936 octave_base_stream::clear (void)
937 { 937 {
938 std::istream *is = input_stream ();
939 std::ostream *os = output_stream ();
940
941 if (is)
942 is->clear ();
943
944 if (os)
945 os->clear ();
946
938 fail = false; 947 fail = false;
939 errmsg = ""; 948 errmsg = "";
940 } 949 }
941 950
942 // Functions that are defined for all input streams (input streams 951 // Functions that are defined for all input streams (input streams