Mercurial > hg > octave-lyh
changeset 6335:de4ae354c831
[project @ 2007-02-21 18:19:07 by jwe]
author | jwe |
---|---|
date | Wed, 21 Feb 2007 18:19:07 +0000 |
parents | 877b80a8dee7 |
children | 44a14099a7a8 |
files | ChangeLog configure.in src/ChangeLog src/DLD-FUNCTIONS/urlwrite.cc src/oct-obj.h |
diffstat | 5 files changed, 34 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-02-21 John W. Eaton <jwe@octave.org> + + * configure.in: Also warn about missing functionality for + --without-glpk or --without-curl options. Print curl library + warning in summary. + 2007-02-20 Rafael Laboissiere <rafael@debian.org> * configure.in: Check for versions of GLPK prior to 4.15 and set
--- a/configure.in +++ b/configure.in @@ -29,7 +29,7 @@ EXTERN_CXXFLAGS="$CXXFLAGS" AC_INIT -AC_REVISION($Revision: 1.556 $) +AC_REVISION($Revision: 1.557 $) AC_PREREQ(2.57) AC_CONFIG_SRCDIR([src/octave.cc]) AC_CONFIG_HEADER(config.h) @@ -586,6 +586,8 @@ glpk_lib="glpk" elif test "$with_glpk" != no; then glpk_lib="$with_glpk" +else + glpk_missing=yes fi GLPK_LIBS= @@ -618,6 +620,8 @@ curl_lib="curl" elif test "$with_curl" != no; then curl_lib="$with_curl" +else + curl_missing=yes fi CURL_LIBS= @@ -2163,6 +2167,11 @@ warn_msg_printed=true fi +if test -n "$warn_curl"; then + AC_MSG_WARN($warn_curl) + warn_msg_printed=true +fi + if test -n "$warn_fftw"; then AC_MSG_WARN($warn_fftw) warn_msg_printed=true
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,12 @@ +2007-02-21 John W. Eaton <jwe@octave.org> + + * DLD-FUNCTIONS/urlwrite.cc (Furlwrite, Furlread): Return error + code and message instead of throwing error if functionality is + missing. + + * oct-obj.h (octave_value_list::splice): Set default for + replacement list argument. + 2007-02-20 Rafael Laboissiere <rafael@laboissiere.net> * DLD-FUNCTIONS/__glpk__.cc: Adapt code for changes in the GLPK
--- a/src/DLD-FUNCTIONS/urlwrite.cc +++ b/src/DLD-FUNCTIONS/urlwrite.cc @@ -314,7 +314,9 @@ error ("urlwrite: curl: %s", curl_easy_strerror (res)); #else - error ("urlwrite: not available in this version of Octave"); + retval(2) = "urlwrite: not available in this version of Octave"; + retval(1) = 0; + retval(0) = ""; #endif return retval; @@ -429,7 +431,9 @@ error ("urlread: curl: %s", curl_easy_strerror (res)); #else - error ("urlread: not available in this version of Octave"); + retval(2) = "urlread: not available in this version of Octave"; + retval(1) = 0; + retval(0) = ""; #endif return retval;
--- a/src/oct-obj.h +++ b/src/oct-obj.h @@ -107,8 +107,9 @@ octave_value_list& reverse (void); - octave_value_list splice (octave_idx_type offset, octave_idx_type length, - const octave_value_list& lst) const; + octave_value_list + splice (octave_idx_type offset, octave_idx_type len, + const octave_value_list& lst = octave_value_list ()) const; bool all_strings_p (void) const;