Mercurial > hg > octave-nkf
changeset 19590:fb09907f4e49
Remove single line makro INSTANTIATE_ARRAY_SORT.
* Array.cc: removed makro INSTANTIATE_ARRAY_SORT definition.
* Array-*.cc: replaced makro INSTANTIATE_ARRAY_SORT with definition.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Thu, 11 Dec 2014 00:15:03 +0100 |
parents | b39cbe9f3bb0 |
children | 50d4fd16fb3a |
files | liboctave/array/Array-C.cc liboctave/array/Array-b.cc liboctave/array/Array-ch.cc liboctave/array/Array-d.cc liboctave/array/Array-f.cc liboctave/array/Array-fC.cc liboctave/array/Array-i.cc liboctave/array/Array-s.cc liboctave/array/Array-str.cc liboctave/array/Array.cc |
diffstat | 10 files changed, 19 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/array/Array-C.cc +++ b/liboctave/array/Array-C.cc @@ -88,7 +88,7 @@ return result; } -INSTANTIATE_ARRAY_SORT (Complex); +template class OCTAVE_API octave_sort<Complex>; INSTANTIATE_ARRAY (Complex, OCTAVE_API);
--- a/liboctave/array/Array-b.cc +++ b/liboctave/array/Array-b.cc @@ -104,7 +104,7 @@ do_bool_partition<true> (data, idx, nel); } -INSTANTIATE_ARRAY_SORT (bool); +template class OCTAVE_API octave_sort<bool>; INSTANTIATE_ARRAY (bool, OCTAVE_API);
--- a/liboctave/array/Array-ch.cc +++ b/liboctave/array/Array-ch.cc @@ -32,7 +32,7 @@ #define INLINE_DESCENDING_SORT #include "oct-sort.cc" -INSTANTIATE_ARRAY_SORT (char); +template class OCTAVE_API octave_sort<char>; INSTANTIATE_ARRAY (char, OCTAVE_API);
--- a/liboctave/array/Array-d.cc +++ b/liboctave/array/Array-d.cc @@ -155,7 +155,7 @@ return mode; } -INSTANTIATE_ARRAY_SORT (double); +template class OCTAVE_API octave_sort<double>; INSTANTIATE_ARRAY (double, OCTAVE_API);
--- a/liboctave/array/Array-f.cc +++ b/liboctave/array/Array-f.cc @@ -155,7 +155,7 @@ return mode; } -INSTANTIATE_ARRAY_SORT (float); +template class OCTAVE_API octave_sort<float>; INSTANTIATE_ARRAY (float, OCTAVE_API);
--- a/liboctave/array/Array-fC.cc +++ b/liboctave/array/Array-fC.cc @@ -88,7 +88,7 @@ return result; } -INSTANTIATE_ARRAY_SORT (FloatComplex); +template class OCTAVE_API octave_sort<FloatComplex>; INSTANTIATE_ARRAY (FloatComplex, OCTAVE_API);
--- a/liboctave/array/Array-i.cc +++ b/liboctave/array/Array-i.cc @@ -35,10 +35,10 @@ #define INLINE_DESCENDING_SORT #include "oct-sort.cc" -INSTANTIATE_ARRAY_SORT (int); -INSTANTIATE_ARRAY_SORT (long); +template class OCTAVE_API octave_sort<int>; +template class OCTAVE_API octave_sort<long>; #if defined (HAVE_LONG_LONG_INT) -INSTANTIATE_ARRAY_SORT (long long); +template class OCTAVE_API octave_sort<long long>; #endif INSTANTIATE_ARRAY (int, OCTAVE_API); @@ -47,20 +47,20 @@ INSTANTIATE_ARRAY (long long, OCTAVE_API); #endif -INSTANTIATE_ARRAY_SORT (octave_int8); -INSTANTIATE_ARRAY_SORT (octave_int16); -INSTANTIATE_ARRAY_SORT (octave_int32); -INSTANTIATE_ARRAY_SORT (octave_int64); +template class OCTAVE_API octave_sort<octave_int8>; +template class OCTAVE_API octave_sort<octave_int16>; +template class OCTAVE_API octave_sort<octave_int32>; +template class OCTAVE_API octave_sort<octave_int64>; INSTANTIATE_ARRAY (octave_int8, OCTAVE_API); INSTANTIATE_ARRAY (octave_int16, OCTAVE_API); INSTANTIATE_ARRAY (octave_int32, OCTAVE_API); INSTANTIATE_ARRAY (octave_int64, OCTAVE_API); -INSTANTIATE_ARRAY_SORT (octave_uint8); -INSTANTIATE_ARRAY_SORT (octave_uint16); -INSTANTIATE_ARRAY_SORT (octave_uint32); -INSTANTIATE_ARRAY_SORT (octave_uint64); +template class OCTAVE_API octave_sort<octave_uint8>; +template class OCTAVE_API octave_sort<octave_uint16>; +template class OCTAVE_API octave_sort<octave_uint32>; +template class OCTAVE_API octave_sort<octave_uint64>; INSTANTIATE_ARRAY (octave_uint8, OCTAVE_API); INSTANTIATE_ARRAY (octave_uint16, OCTAVE_API);
--- a/liboctave/array/Array-s.cc +++ b/liboctave/array/Array-s.cc @@ -33,7 +33,7 @@ #define INLINE_DESCENDING_SORT #include "oct-sort.cc" -INSTANTIATE_ARRAY_SORT (short); +template class OCTAVE_API octave_sort<short>; INSTANTIATE_ARRAY (short, OCTAVE_API);