diff src/c-file-ptr-stream.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 12df7854fa7c
children f9c1f7c1ead0
line wrap: on
line diff
--- a/src/c-file-ptr-stream.cc	Thu Jul 28 11:59:38 2011 -0400
+++ b/src/c-file-ptr-stream.cc	Wed Aug 03 13:56:53 2011 -0400
@@ -68,7 +68,7 @@
 {
   if (f)
     {
-      int_type c = fgetc (f);
+      int_type c = gnulib::fgetc (f);
 
       if (! bump
 #if defined (CXX_ISO_COMPLIANT_LIBRARY)
@@ -112,7 +112,7 @@
 c_file_ptr_buf::xsgetn (char *s, std::streamsize n)
 {
   if (f)
-    return fread (s, 1, n, f);
+    return gnulib::fread (s, 1, n, f);
   else
     return 0;
 }
@@ -173,7 +173,7 @@
 int
 c_file_ptr_buf::flush (void)
 {
-  return f ? fflush (f) : EOF;
+  return f ? gnulib::fflush (f) : EOF;
 }
 
 int