[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CVS Octave is now Pix-free
From: |
Andy Adler |
Subject: |
Re: CVS Octave is now Pix-free |
Date: |
Fri, 6 Dec 2002 16:15:50 -0600 |
Thanks for this work, John.
My only issue is that if we check in these changes now,
then octave-forge will not build with any "released" version
of octave.
I suppose we could always refer people to the released octave
forge packages - but I suspect we'll have many people
writing to the octave mailing list with complaints.
Comments?
Andy
--
Andy Adler,
Assistant Professor, School of Information Technology and Engineering,
University of Ottawa, Tel:1(613)562-5800 X 2345, Email:address@hidden
On Fri, 6 Dec 2002, John W. Eaton wrote:
> I've just checked in some changes that replace all uses of the old
> libg++ SLList, SLStack, CHMap, DLList, etc. classes with corresponding
> standard C++ STL classes. This probably means that g++ 3.2 or some
> simlarly capable compiler is now needed to build Octave.
>
> The sparse matrix code in octave-forge will also need the patch below.
> In this particular case, all that was required was substituting
> std::list for SLList, but it's not always that simple because the
> SLList interface is different from std::list.
>
> The mex compatibility code in octave-forge will also have to be
> changed because including <octave/SLList.h> will no longer work. For
> now, it might be best to just copy the files that are needed from
> octave-2.1.40. Longer term, we will probably want to switch to STL
> containers.
>
> jwe
>
>
>
> Index: complex_sparse_ops.cc
> ===================================================================
> RCS file: /cvsroot/octave/octave-forge/main/sparse/complex_sparse_ops.cc,v
> retrieving revision 1.10
> diff -u -r1.10 complex_sparse_ops.cc
> --- complex_sparse_ops.cc 27 Nov 2002 04:46:42 -0000 1.10
> +++ complex_sparse_ops.cc 6 Dec 2002 19:35:38 -0000
> @@ -460,7 +460,7 @@
>
> octave_value_list
> octave_complex_sparse::subsref( const std::string type,
> - const SLList<octave_value_list>& idx,
> + const std::list<octave_value_list>& idx,
> int nargout)
> {
> // octave_value retval;
> Index: make_sparse.h
> ===================================================================
> RCS file: /cvsroot/octave/octave-forge/main/sparse/make_sparse.h,v
> retrieving revision 1.10
> diff -u -r1.10 make_sparse.h
> --- make_sparse.h 27 Nov 2002 04:46:42 -0000 1.10
> +++ make_sparse.h 6 Dec 2002 19:35:38 -0000
> @@ -183,7 +183,7 @@
>
> octave_value extract (int r1, int c1, int r2, int c2) const ;
> octave_value_list subsref (const std::string type,
> - const SLList<octave_value_list>& idx,
> + const std::list<octave_value_list>& idx,
> int nargout);
> octave_value do_index_op ( const octave_value_list& idx);
>
> @@ -242,11 +242,11 @@
>
> octave_value extract (int r1, int c1, int r2, int c2) const ;
> octave_value_list subsref (const std::string type,
> - const SLList<octave_value_list>& idx,
> + const std::list<octave_value_list>& idx,
> int nargout);
> #if 0
> octave_value subsref( const std::string type,
> - const SLList<octave_value_list>& idx);
> + const std::list<octave_value_list>& idx);
> #endif
> octave_value do_index_op ( const octave_value_list& idx);
>
> Index: sparse_ops.cc
> ===================================================================
> RCS file: /cvsroot/octave/octave-forge/main/sparse/sparse_ops.cc,v
> retrieving revision 1.8
> diff -u -r1.8 sparse_ops.cc
> --- sparse_ops.cc 27 Nov 2002 04:46:42 -0000 1.8
> +++ sparse_ops.cc 6 Dec 2002 19:35:39 -0000
> @@ -412,7 +412,7 @@
>
> octave_value_list
> octave_sparse::subsref( const std::string type,
> - const SLList<octave_value_list>& idx,
> + const std::list<octave_value_list>& idx,
> int nargout)
> {
> // octave_value retval;
>