Mercurial > octave-nkf
diff src/input.cc @ 12941:9a498efac5f1 stable
use gnulib::fseek and gnulib::fopen
* file-io.cc (do_stream_open): Use gnulib::fopen instead of fopen.
* input.cc (get_input_from_file): Likewise.
* c-file-ptr-stream.h (c_file_ptr_buf::seek):
Use gnulib::fseek instead of fseek.
* bootstrap.conf (gnulib_modules):
Include fopen, fflush, fseek, and ftell in the list.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 09 Aug 2011 22:16:06 -0400 |
parents | e116dd862879 |
children | 1be5f06d9fa7 |
line wrap: on
line diff
--- a/src/input.cc Mon Aug 08 21:30:36 2011 -0700 +++ b/src/input.cc Tue Aug 09 22:16:06 2011 -0400 @@ -428,7 +428,7 @@ FILE *instream = 0; if (name.length () > 0) - instream = fopen (name.c_str (), "rb"); + instream = gnulib::fopen (name.c_str (), "rb"); if (! instream && warn) warning ("%s: no such file or directory", name.c_str ());