Mercurial > hg > octave-lyh
view liboctave/link-deps.mk @ 16590:2d968b7830d6
handle A, R, and W fopen modes correctly (bug #38851)
* file-io.cc (normalize_fopen_mode): New function. Handle 'A'. Also
handle 'b' and 't' suffixes here. Use Octave:fopen-mode warning id.
(fopen_mode_to_ios_mode): Only convert from mode string to ios mode.
(do_stream_open): Call normalize_fopen_mode before calling
fopen_mode_to_ios_mode. Don't process mode string directly.
* io.tst: Update test for fopen modes.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 29 Apr 2013 13:46:55 -0400 |
parents | c898dbe14e1d |
children |
line wrap: on
line source
GNULIB_LINK_DEPS = \ $(COPYSIGNF_LIBM)\ $(COPYSIGN_LIBM)\ $(FLOORF_LIBM)\ $(FLOOR_LIBM)\ $(GETHOSTNAME_LIB)\ $(LIBSOCKET)\ $(LIB_NANOSLEEP)\ $(LIB_SELECT)\ $(LTLIBINTL)\ $(ROUNDF_LIBM)\ $(ROUND_LIBM)\ $(TRUNCF_LIBM)\ $(TRUNC_LIBM) LIBOCTAVE_LINK_DEPS = \ $(GNULIB_LINK_DEPS) \ $(SPARSE_XLIBS) \ $(ARPACK_LIBS) \ $(QRUPDATE_LIBS) \ $(FFTW_XLIBS) \ $(LAPACK_LIBS) \ $(BLAS_LIBS) \ $(READLINE_LIBS) \ $(TERM_LIBS) \ $(LIBGLOB) \ $(REGEX_LIBS) \ $(DL_LIBS) \ $(PTHREAD_LIBS) \ $(FLIBS) \ $(LIBS) LIBOCTAVE_LINK_OPTS = \ $(SPARSE_XLDFLAGS) \ $(ARPACK_LDFLAGS) \ $(QRUPDATE_LDFLAGS) \ $(FFTW_XLDFLAGS)