Mercurial > octave-nkf
comparison src/input.cc @ 12912:e116dd862879 stable
use gnulib:: qualifiers for more stdio functions
* input.cc (gnu_readline): Use gnulib::fflush instead of fflush.
* sparse-util.cc (SparseCholPrint): Likewise.
* kpse.cc (DEBUGF_END, hash_lookup, kpse_element_dirs): Likewise.
* cmd-edit.cc (default_command_editor::do_readline): Likewise.
* c-file-ptr-stream.cc (c_file_ptr_buf::flush): Likewise.
(c_file_ptr_buf::xsgetn): Use gnulib::fread instead of fread.
(c_file_ptr_buf::underflow_common): Use gnulib::fgetc instead of
fgetc.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 03 Aug 2011 13:56:53 -0400 |
parents | 232a90612254 |
children | 34e5434563df 9a498efac5f1 |
comparison
equal
deleted
inserted
replaced
12898:c68fe26745ae | 12912:e116dd862879 |
---|---|
211 if (! s.empty () && (interactive || forced_interactive)) | 211 if (! s.empty () && (interactive || forced_interactive)) |
212 { | 212 { |
213 FILE *stream = command_editor::get_output_stream (); | 213 FILE *stream = command_editor::get_output_stream (); |
214 | 214 |
215 gnulib::fputs (s.c_str (), stream); | 215 gnulib::fputs (s.c_str (), stream); |
216 fflush (stream); | 216 gnulib::fflush (stream); |
217 } | 217 } |
218 | 218 |
219 FILE *curr_stream = command_editor::get_input_stream (); | 219 FILE *curr_stream = command_editor::get_input_stream (); |
220 | 220 |
221 if (reading_fcn_file || reading_script_file || reading_classdef_file) | 221 if (reading_fcn_file || reading_script_file || reading_classdef_file) |