Mercurial > octave
view liboctave/array/Array-s.cc @ 29246:1b2845593788
Export Array template specializations (patch #8919).
* liboctave/array/Array.cc (NO_INSTANTIATE_ARRAY_SORT, INSTANTIATE_ARRAY): Add
API tag to template specializations.
* libinterp/template-inst/Array-jit.cc, libinterp/template-inst/Array-tc.cc,
liboctave/array/Array-b.cc, liboctave/array/Array-C.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-idx-vec.cc,
liboctave/array/Array-str.cc, liboctave/array/Array-voidp.cc: Pass API tags
to function macros instantiating Array template class.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sat, 02 Jan 2021 15:46:16 +0100 |
parents | a65ff1d4f75b |
children | 7854d5752dd2 |
line wrap: on
line source
//////////////////////////////////////////////////////////////////////// // // Copyright (C) 1995-2020 The Octave Project Developers // // See the file COPYRIGHT.md in the top-level directory of this // distribution or <https://octave.org/copyright/>. // // This file is part of Octave. // // Octave is free software: you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Octave is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Octave; see the file COPYING. If not, see // <https://www.gnu.org/licenses/>. // //////////////////////////////////////////////////////////////////////// #if defined (HAVE_CONFIG_H) # include "config.h" #endif // Instantiate Arrays of short int values. #include "Array.h" #include "Array.cc" #define INLINE_ASCENDING_SORT 1 #define INLINE_DESCENDING_SORT 1 #include "oct-sort.cc" // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. extern template class Array<idx_vector>; extern template class Array<octave_idx_type>; template class octave_sort<short>; INSTANTIATE_ARRAY (short, OCTAVE_API); #include "DiagArray2.h" #include "DiagArray2.cc" template class DiagArray2<short>;