# HG changeset patch # User John W. Eaton # Date 1608098717 18000 # Wed Dec 16 01:05:17 2020 -0500 # Node ID 9e2c5371c145bdc5a9b840e34c4c597a497092dc # Parent c68edca73b7f0ed413ab58f5849d6dd13ff655a5 Mark symbols for export (patch #8919). diff -r c68edca73b7f -r 9e2c5371c145 libgui/liboctgui-build-info.h --- a/libgui/liboctgui-build-info.h Wed Dec 16 01:05:17 2020 -0500 +++ b/libgui/liboctgui-build-info.h Wed Dec 16 01:05:17 2020 -0500 @@ -32,6 +32,6 @@ #include -extern std::string liboctgui_hg_id (void); +extern OCTGUI_API std::string liboctgui_hg_id (void); #endif diff -r c68edca73b7f -r 9e2c5371c145 libinterp/build-env.h --- a/libinterp/build-env.h Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/build-env.h Wed Dec 16 01:05:17 2020 -0500 @@ -34,152 +34,152 @@ { namespace build_env { - extern OCTAVE_API octave_scalar_map features (void); + extern OCTINTERP_API octave_scalar_map features (void); - extern const char *AMD_CPPFLAGS; - extern const char *AMD_LDFLAGS; - extern const char *AMD_LIBS; - extern const char *ARFLAGS; - extern const char *AR; - extern const char *ARPACK_CPPFLAGS; - extern const char *ARPACK_LDFLAGS; - extern const char *ARPACK_LIBS; - extern const char *BLAS_LIBS; - extern const char *CAMD_CPPFLAGS; - extern const char *CAMD_LDFLAGS; - extern const char *CAMD_LIBS; - extern const char *CARBON_LIBS; - extern const char *CC; - extern const char *CCOLAMD_CPPFLAGS; - extern const char *CCOLAMD_LDFLAGS; - extern const char *CCOLAMD_LIBS; - extern const char *CFLAGS; - extern const char *CHOLMOD_CPPFLAGS; - extern const char *CHOLMOD_LDFLAGS; - extern const char *CHOLMOD_LIBS; - extern const char *COLAMD_CPPFLAGS; - extern const char *COLAMD_LDFLAGS; - extern const char *COLAMD_LIBS; - extern const char *CPICFLAG; - extern const char *CPPFLAGS; - extern const char *CURL_CPPFLAGS; - extern const char *CURL_LDFLAGS; - extern const char *CURL_LIBS; - extern const char *CXSPARSE_CPPFLAGS; - extern const char *CXSPARSE_LDFLAGS; - extern const char *CXSPARSE_LIBS; - extern const char *CXXCPP; - extern const char *CXXFLAGS; - extern const char *CXXPICFLAG; - extern const char *CXX; - extern const char *DEFAULT_PAGER; - extern const char *DEFS; - extern const char *DL_LDFLAGS; - extern const char *EXEEXT; - extern const char *GCC_VERSION; - extern const char *GXX_VERSION; - extern const char *F77; - extern const char *F77_FLOAT_STORE_FLAG; - extern const char *F77_INTEGER_8_FLAG; - extern const char *FFLAGS; - extern const char *FFTW3_CPPFLAGS; - extern const char *FFTW3_LDFLAGS; - extern const char *FFTW3_LIBS; - extern const char *FFTW3F_CPPFLAGS; - extern const char *FFTW3F_LDFLAGS; - extern const char *FFTW3F_LIBS; - extern const char *FLIBS; - extern const char *FLTK_CPPFLAGS; - extern const char *FLTK_LDFLAGS; - extern const char *FLTK_LIBS; - extern const char *FONTCONFIG_CPPFLAGS; - extern const char *FONTCONFIG_LIBS; - extern const char *FPICFLAG; - extern const char *FT2_CPPFLAGS; - extern const char *FT2_LIBS; - extern const char *GLPK_CPPFLAGS; - extern const char *GLPK_LDFLAGS; - extern const char *GLPK_LIBS; - extern const char *GNUPLOT; - extern const char *HDF5_CPPFLAGS; - extern const char *HDF5_LDFLAGS; - extern const char *HDF5_LIBS; - extern const char *INCLUDEDIR; - extern const char *KLU_CPPFLAGS; - extern const char *KLU_LDFLAGS; - extern const char *KLU_LIBS; - extern const char *LAPACK_LIBS; - extern const char *LDFLAGS; - extern const char *LD_STATIC_FLAG; - extern const char *LEXLIB; - extern const char *LEX; - extern const char *LFLAGS; - extern const char *LIBOCTAVE; - extern const char *LIBOCTINTERP; - extern const char *LIBS; - extern const char *LN_S; - extern const char *MAGICK_CPPFLAGS; - extern const char *MAGICK_LDFLAGS; - extern const char *MAGICK_LIBS; - extern const char *LLVM_CPPFLAGS; - extern const char *LLVM_LDFLAGS; - extern const char *LLVM_LIBS; - extern const char *MKOCTFILE_DL_LDFLAGS; - extern const char *OCTAVE_LINK_DEPS; - extern const char *OCTAVE_LINK_OPTS; - extern const char *OCTINCLUDEDIR; - extern const char *OCTLIBDIR; - extern const char *OCT_LINK_DEPS; - extern const char *OCT_LINK_OPTS; - extern const char *OPENGL_LIBS; - extern const char *PCRE_CPPFLAGS; - extern const char *PCRE_LDFLAGS; - extern const char *PCRE_LIBS; - extern const char *PREFIX; - extern const char *PTHREAD_CFLAGS; - extern const char *PTHREAD_LIBS; - extern const char *QHULL_CPPFLAGS; - extern const char *QHULL_LDFLAGS; - extern const char *QHULL_LIBS; - extern const char *QRUPDATE_CPPFLAGS; - extern const char *QRUPDATE_LDFLAGS; - extern const char *QRUPDATE_LIBS; - extern const char *QT_CPPFLAGS; - extern const char *QT_LDFLAGS; - extern const char *QT_LIBS; - extern const char *QT_OPENGL_LIBS; - extern const char *RANLIB; - extern const char *RDYNAMIC_FLAG; - extern const char *READLINE_LIBS; - extern const char *SHARED_LIBS; - extern const char *SH_LDFLAGS; - extern const char *STATIC_LIBS; - extern const char *SUITESPARSECONFIG_LIBS; - extern const char *SUNDIALS_IDA_CPPFLAGS; - extern const char *SUNDIALS_IDA_LDFLAGS; - extern const char *SUNDIALS_IDA_LIBS; - extern const char *SUNDIALS_NVECSERIAL_CPPFLAGS; - extern const char *SUNDIALS_NVECSERIAL_LDFLAGS; - extern const char *SUNDIALS_NVECSERIAL_LIBS; - extern const char *SUNDIALS_SUNLINSOLKLU_CPPFLAGS; - extern const char *SUNDIALS_SUNLINSOLKLU_LDFLAGS; - extern const char *SUNDIALS_SUNLINSOLKLU_LIBS; - extern const char *TERM_LIBS; - extern const char *UMFPACK_CPPFLAGS; - extern const char *UMFPACK_LDFLAGS; - extern const char *UMFPACK_LIBS; - extern const char *WARN_CFLAGS; - extern const char *WARN_CXXFLAGS; - extern const char *X11_INCFLAGS; - extern const char *X11_LIBS; - extern const char *XTRA_CFLAGS; - extern const char *XTRA_CXXFLAGS; - extern const char *YACC; - extern const char *YFLAGS; - extern const char *Z_CPPFLAGS; - extern const char *Z_LDFLAGS; - extern const char *Z_LIBS; - extern const char *config_opts; + extern OCTINTERP_API const char *AMD_CPPFLAGS; + extern OCTINTERP_API const char *AMD_LDFLAGS; + extern OCTINTERP_API const char *AMD_LIBS; + extern OCTINTERP_API const char *ARFLAGS; + extern OCTINTERP_API const char *AR; + extern OCTINTERP_API const char *ARPACK_CPPFLAGS; + extern OCTINTERP_API const char *ARPACK_LDFLAGS; + extern OCTINTERP_API const char *ARPACK_LIBS; + extern OCTINTERP_API const char *BLAS_LIBS; + extern OCTINTERP_API const char *CAMD_CPPFLAGS; + extern OCTINTERP_API const char *CAMD_LDFLAGS; + extern OCTINTERP_API const char *CAMD_LIBS; + extern OCTINTERP_API const char *CARBON_LIBS; + extern OCTINTERP_API const char *CC; + extern OCTINTERP_API const char *CCOLAMD_CPPFLAGS; + extern OCTINTERP_API const char *CCOLAMD_LDFLAGS; + extern OCTINTERP_API const char *CCOLAMD_LIBS; + extern OCTINTERP_API const char *CFLAGS; + extern OCTINTERP_API const char *CHOLMOD_CPPFLAGS; + extern OCTINTERP_API const char *CHOLMOD_LDFLAGS; + extern OCTINTERP_API const char *CHOLMOD_LIBS; + extern OCTINTERP_API const char *COLAMD_CPPFLAGS; + extern OCTINTERP_API const char *COLAMD_LDFLAGS; + extern OCTINTERP_API const char *COLAMD_LIBS; + extern OCTINTERP_API const char *CPICFLAG; + extern OCTINTERP_API const char *CPPFLAGS; + extern OCTINTERP_API const char *CURL_CPPFLAGS; + extern OCTINTERP_API const char *CURL_LDFLAGS; + extern OCTINTERP_API const char *CURL_LIBS; + extern OCTINTERP_API const char *CXSPARSE_CPPFLAGS; + extern OCTINTERP_API const char *CXSPARSE_LDFLAGS; + extern OCTINTERP_API const char *CXSPARSE_LIBS; + extern OCTINTERP_API const char *CXXCPP; + extern OCTINTERP_API const char *CXXFLAGS; + extern OCTINTERP_API const char *CXXPICFLAG; + extern OCTINTERP_API const char *CXX; + extern OCTINTERP_API const char *DEFAULT_PAGER; + extern OCTINTERP_API const char *DEFS; + extern OCTINTERP_API const char *DL_LDFLAGS; + extern OCTINTERP_API const char *EXEEXT; + extern OCTINTERP_API const char *GCC_VERSION; + extern OCTINTERP_API const char *GXX_VERSION; + extern OCTINTERP_API const char *F77; + extern OCTINTERP_API const char *F77_FLOAT_STORE_FLAG; + extern OCTINTERP_API const char *F77_INTEGER_8_FLAG; + extern OCTINTERP_API const char *FFLAGS; + extern OCTINTERP_API const char *FFTW3_CPPFLAGS; + extern OCTINTERP_API const char *FFTW3_LDFLAGS; + extern OCTINTERP_API const char *FFTW3_LIBS; + extern OCTINTERP_API const char *FFTW3F_CPPFLAGS; + extern OCTINTERP_API const char *FFTW3F_LDFLAGS; + extern OCTINTERP_API const char *FFTW3F_LIBS; + extern OCTINTERP_API const char *FLIBS; + extern OCTINTERP_API const char *FLTK_CPPFLAGS; + extern OCTINTERP_API const char *FLTK_LDFLAGS; + extern OCTINTERP_API const char *FLTK_LIBS; + extern OCTINTERP_API const char *FONTCONFIG_CPPFLAGS; + extern OCTINTERP_API const char *FONTCONFIG_LIBS; + extern OCTINTERP_API const char *FPICFLAG; + extern OCTINTERP_API const char *FT2_CPPFLAGS; + extern OCTINTERP_API const char *FT2_LIBS; + extern OCTINTERP_API const char *GLPK_CPPFLAGS; + extern OCTINTERP_API const char *GLPK_LDFLAGS; + extern OCTINTERP_API const char *GLPK_LIBS; + extern OCTINTERP_API const char *GNUPLOT; + extern OCTINTERP_API const char *HDF5_CPPFLAGS; + extern OCTINTERP_API const char *HDF5_LDFLAGS; + extern OCTINTERP_API const char *HDF5_LIBS; + extern OCTINTERP_API const char *INCLUDEDIR; + extern OCTINTERP_API const char *KLU_CPPFLAGS; + extern OCTINTERP_API const char *KLU_LDFLAGS; + extern OCTINTERP_API const char *KLU_LIBS; + extern OCTINTERP_API const char *LAPACK_LIBS; + extern OCTINTERP_API const char *LDFLAGS; + extern OCTINTERP_API const char *LD_STATIC_FLAG; + extern OCTINTERP_API const char *LEXLIB; + extern OCTINTERP_API const char *LEX; + extern OCTINTERP_API const char *LFLAGS; + extern OCTINTERP_API const char *LIBOCTAVE; + extern OCTINTERP_API const char *LIBOCTINTERP; + extern OCTINTERP_API const char *LIBS; + extern OCTINTERP_API const char *LN_S; + extern OCTINTERP_API const char *MAGICK_CPPFLAGS; + extern OCTINTERP_API const char *MAGICK_LDFLAGS; + extern OCTINTERP_API const char *MAGICK_LIBS; + extern OCTINTERP_API const char *LLVM_CPPFLAGS; + extern OCTINTERP_API const char *LLVM_LDFLAGS; + extern OCTINTERP_API const char *LLVM_LIBS; + extern OCTINTERP_API const char *MKOCTFILE_DL_LDFLAGS; + extern OCTINTERP_API const char *OCTAVE_LINK_DEPS; + extern OCTINTERP_API const char *OCTAVE_LINK_OPTS; + extern OCTINTERP_API const char *OCTINCLUDEDIR; + extern OCTINTERP_API const char *OCTLIBDIR; + extern OCTINTERP_API const char *OCT_LINK_DEPS; + extern OCTINTERP_API const char *OCT_LINK_OPTS; + extern OCTINTERP_API const char *OPENGL_LIBS; + extern OCTINTERP_API const char *PCRE_CPPFLAGS; + extern OCTINTERP_API const char *PCRE_LDFLAGS; + extern OCTINTERP_API const char *PCRE_LIBS; + extern OCTINTERP_API const char *PREFIX; + extern OCTINTERP_API const char *PTHREAD_CFLAGS; + extern OCTINTERP_API const char *PTHREAD_LIBS; + extern OCTINTERP_API const char *QHULL_CPPFLAGS; + extern OCTINTERP_API const char *QHULL_LDFLAGS; + extern OCTINTERP_API const char *QHULL_LIBS; + extern OCTINTERP_API const char *QRUPDATE_CPPFLAGS; + extern OCTINTERP_API const char *QRUPDATE_LDFLAGS; + extern OCTINTERP_API const char *QRUPDATE_LIBS; + extern OCTINTERP_API const char *QT_CPPFLAGS; + extern OCTINTERP_API const char *QT_LDFLAGS; + extern OCTINTERP_API const char *QT_LIBS; + extern OCTINTERP_API const char *QT_OPENGL_LIBS; + extern OCTINTERP_API const char *RANLIB; + extern OCTINTERP_API const char *RDYNAMIC_FLAG; + extern OCTINTERP_API const char *READLINE_LIBS; + extern OCTINTERP_API const char *SHARED_LIBS; + extern OCTINTERP_API const char *SH_LDFLAGS; + extern OCTINTERP_API const char *STATIC_LIBS; + extern OCTINTERP_API const char *SUITESPARSECONFIG_LIBS; + extern OCTINTERP_API const char *SUNDIALS_IDA_CPPFLAGS; + extern OCTINTERP_API const char *SUNDIALS_IDA_LDFLAGS; + extern OCTINTERP_API const char *SUNDIALS_IDA_LIBS; + extern OCTINTERP_API const char *SUNDIALS_NVECSERIAL_CPPFLAGS; + extern OCTINTERP_API const char *SUNDIALS_NVECSERIAL_LDFLAGS; + extern OCTINTERP_API const char *SUNDIALS_NVECSERIAL_LIBS; + extern OCTINTERP_API const char *SUNDIALS_SUNLINSOLKLU_CPPFLAGS; + extern OCTINTERP_API const char *SUNDIALS_SUNLINSOLKLU_LDFLAGS; + extern OCTINTERP_API const char *SUNDIALS_SUNLINSOLKLU_LIBS; + extern OCTINTERP_API const char *TERM_LIBS; + extern OCTINTERP_API const char *UMFPACK_CPPFLAGS; + extern OCTINTERP_API const char *UMFPACK_LDFLAGS; + extern OCTINTERP_API const char *UMFPACK_LIBS; + extern OCTINTERP_API const char *WARN_CFLAGS; + extern OCTINTERP_API const char *WARN_CXXFLAGS; + extern OCTINTERP_API const char *X11_INCFLAGS; + extern OCTINTERP_API const char *X11_LIBS; + extern OCTINTERP_API const char *XTRA_CFLAGS; + extern OCTINTERP_API const char *XTRA_CXXFLAGS; + extern OCTINTERP_API const char *YACC; + extern OCTINTERP_API const char *YFLAGS; + extern OCTINTERP_API const char *Z_CPPFLAGS; + extern OCTINTERP_API const char *Z_LDFLAGS; + extern OCTINTERP_API const char *Z_LIBS; + extern OCTINTERP_API const char *config_opts; } } diff -r c68edca73b7f -r 9e2c5371c145 libinterp/corefcn/cdisplay.h --- a/libinterp/corefcn/cdisplay.h Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/corefcn/cdisplay.h Wed Dec 16 01:05:17 2020 -0500 @@ -32,7 +32,7 @@ extern "C" { #endif -OCTINTERP_API extern const char * +extern OCTINTERP_API const char * octave_get_display_info (const char *dpy_name, int *ht, int *wd, int *dp, double *rx, double *ry, int *dpy_avail); diff -r c68edca73b7f -r 9e2c5371c145 libinterp/corefcn/error.h --- a/libinterp/corefcn/error.h Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/corefcn/error.h Wed Dec 16 01:05:17 2020 -0500 @@ -44,7 +44,9 @@ namespace octave { - class error_system + class + OCTINTERP_API + error_system { public: diff -r c68edca73b7f -r 9e2c5371c145 libinterp/corefcn/errwarn.h --- a/libinterp/corefcn/errwarn.h Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/corefcn/errwarn.h Wed Dec 16 01:05:17 2020 -0500 @@ -42,150 +42,150 @@ // Alphabetized list of common errors and warnings. //////////////////////////////////////////////////////////////////////////////// -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_2_or_3_dim_plot (void); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_data_conversion (const char *from, const char *to); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_disabled_feature (const std::string& fcn, const std::string& feature, const std::string& pkg = "Octave"); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_indexed_cs_list (void); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_invalid_conversion (const std::string& from, const std::string& to); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_invalid_inquiry_subscript (void); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_invalid_structure_assignment (void); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_nonbraced_cs_list_assignment (void); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_nonconformant (void); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_nonconformant (octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_not_implemented (const char *); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_range_invalid (void); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_square_matrix_required (const char *fcn, const char *name); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_string_invalid (void); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_unrecognized_data_fmt (const char *name); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_unrecognized_float_fmt (void); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_user_returned_invalid (const char *name); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_user_supplied_eval (const char *name); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_user_supplied_eval (octave::execution_exception& ee, const char *name); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_wrong_type_arg (const char *name, const char *s); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_wrong_type_arg (octave::execution_exception& ee, const char *name, const char *s); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_wrong_type_arg (const char *name, const std::string& s); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_wrong_type_arg (octave::execution_exception& ee, const char *name, const std::string& s); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_wrong_type_arg (const char *name, const octave_value& tc); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_wrong_type_arg (octave::execution_exception& ee, const char *name, const octave_value& tc); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_wrong_type_arg (const std::string& name, const octave_value& tc); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_wrong_type_arg (octave::execution_exception& ee, const std::string& name, const octave_value& tc); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_wrong_type_arg (const char *s); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_wrong_type_arg (octave::execution_exception& ee, const char *s); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_wrong_type_arg (const std::string& s); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_wrong_type_arg (octave::execution_exception& ee, const std::string& s); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_wrong_type_arg (const octave_value& tc); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_wrong_type_arg (octave::execution_exception& ee, const octave_value& tc); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_wrong_type_arg_for_binary_op (const octave_value& op); -OCTAVE_NORETURN OCTINTERP_API extern void +OCTAVE_NORETURN extern OCTINTERP_API void err_wrong_type_arg_for_unary_op (const octave_value& op); -OCTINTERP_API extern void +extern OCTINTERP_API void warn_array_as_logical (const dim_vector& dv); -OCTINTERP_API extern void +extern OCTINTERP_API void warn_complex_cmp (void); -OCTINTERP_API extern void +extern OCTINTERP_API void warn_data_file_in_path (const std::string& fcn, const std::string& file); -OCTINTERP_API extern void +extern OCTINTERP_API void warn_disabled_feature (const std::string& fcn, const std::string& feature, const std::string& pkg = "Octave"); -OCTINTERP_API extern void +extern OCTINTERP_API void warn_empty_arg (const char *name); -OCTINTERP_API extern void +extern OCTINTERP_API void warn_empty_index (const std::string& type_name); -OCTINTERP_API extern void +extern OCTINTERP_API void warn_implicit_conversion (const char *id, const char *from, const char *to); -OCTINTERP_API extern void +extern OCTINTERP_API void warn_implicit_conversion (const std::string& id, const std::string& from, const std::string& to); -OCTINTERP_API extern void +extern OCTINTERP_API void warn_invalid_value_specified (const char *name); -OCTINTERP_API extern void +extern OCTINTERP_API void warn_logical_conversion (void); -OCTINTERP_API extern void +extern OCTINTERP_API void warn_wrong_type_arg (const char *name, const octave_value& tc); #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS) diff -r c68edca73b7f -r 9e2c5371c145 libinterp/corefcn/event-manager.h --- a/libinterp/corefcn/event-manager.h Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/corefcn/event-manager.h Wed Dec 16 01:05:17 2020 -0500 @@ -73,7 +73,9 @@ // FIXME: audit this list of functions and determine whether they are // all necessary and whether there might be better names for them. - class interpreter_events + class + OCTINTERP_API + interpreter_events { public: @@ -251,7 +253,9 @@ //! This class provides thread-safe communication between the //! interpreter and a GUI. - class event_manager + class + OCTINTERP_API + event_manager { public: diff -r c68edca73b7f -r 9e2c5371c145 libinterp/corefcn/graphics.in.h --- a/libinterp/corefcn/graphics.in.h Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/corefcn/graphics.in.h Wed Dec 16 01:05:17 2020 -0500 @@ -1863,7 +1863,7 @@ children_list = val; } - Matrix do_get_children (bool return_hidden) const; + OCTINTERP_API Matrix do_get_children (bool return_hidden) const; Matrix do_get_all_children (void) const { @@ -2174,7 +2174,8 @@ return plist_map.find (go_name); } - octave_scalar_map as_struct (const std::string& prefix_arg) const; + OCTINTERP_API octave_scalar_map + as_struct (const std::string& prefix_arg) const; private: plist_map_type plist_map; @@ -3110,6 +3111,7 @@ class OCTINTERP_API figure : public base_graphics_object { public: + class OCTINTERP_API properties : public base_properties { public: @@ -3355,6 +3357,7 @@ class OCTINTERP_API graphics_xform { public: + graphics_xform (void) : xform (xform_eye ()), xform_inv (xform_eye ()), sx ("linear"), sy ("linear"), sz ("linear"), zlim (1, 2, 0.0) @@ -3443,9 +3446,11 @@ class OCTINTERP_API axes : public base_graphics_object { public: + class OCTINTERP_API properties : public base_properties { public: + void set_defaults (base_graphics_object& obj, const std::string& mode); void remove_child (const graphics_handle& h, bool from_root = false); @@ -4332,9 +4337,11 @@ class OCTINTERP_API line : public base_graphics_object { public: + class OCTINTERP_API properties : public base_properties { public: + // See the genprops.awk script for an explanation of the // properties declarations. // Programming note: Keep property list sorted if new ones are added. @@ -4413,9 +4420,11 @@ class OCTINTERP_API text : public base_graphics_object { public: + class OCTINTERP_API properties : public base_properties { public: + double get___fontsize_points__ (double box_pix_height = 0) const; void update_text_extent (void); @@ -4608,9 +4617,11 @@ class OCTINTERP_API image : public base_graphics_object { public: + class OCTINTERP_API properties : public base_properties { public: + bool is_aliminclude (void) const { return (aliminclude.is_on () && alphadatamapping.is ("scaled")); } std::string get_aliminclude (void) const @@ -4821,6 +4832,7 @@ class OCTINTERP_API light : public base_graphics_object { public: + class OCTINTERP_API properties : public base_properties { // See the genprops.awk script for an explanation of the @@ -4876,9 +4888,11 @@ class OCTINTERP_API patch : public base_graphics_object { public: + class OCTINTERP_API properties : public base_properties { public: + octave_value get_color_data (void) const; // Matlab allows incoherent data to be stored into patch properties. @@ -5147,9 +5161,11 @@ class OCTINTERP_API scatter : public base_graphics_object { public: + class OCTINTERP_API properties : public base_properties { public: + octave_value get_color_data (void) const; // Matlab allows incoherent data to be stored in scatter properties. @@ -5379,9 +5395,11 @@ class OCTINTERP_API surface : public base_graphics_object { public: + class OCTINTERP_API properties : public base_properties { public: + octave_value get_color_data (void) const; bool is_aliminclude (void) const @@ -5587,9 +5605,11 @@ class OCTINTERP_API hggroup : public base_graphics_object { public: + class OCTINTERP_API properties : public base_properties { public: + void remove_child (const graphics_handle& h, bool from_root = false); void adopt (const graphics_handle& h); @@ -5661,9 +5681,11 @@ class OCTINTERP_API uimenu : public base_graphics_object { public: + class OCTINTERP_API properties : public base_properties { public: + void remove_child (const graphics_handle& h, bool from_root = false) { base_properties::remove_child (h, from_root); @@ -5732,6 +5754,7 @@ class OCTINTERP_API uicontextmenu : public base_graphics_object { public: + class OCTINTERP_API properties : public base_properties { public: @@ -5803,9 +5826,11 @@ class OCTINTERP_API uicontrol : public base_graphics_object { public: + class OCTINTERP_API properties : public base_properties { public: + Matrix get_boundingbox (bool internal = false, const Matrix& parent_pix_size = Matrix ()) const; @@ -5911,9 +5936,11 @@ class OCTINTERP_API uibuttongroup : public base_graphics_object { public: + class OCTINTERP_API properties : public base_properties { public: + void remove_child (const graphics_handle& h, bool from_root = false); void adopt (const graphics_handle& h); @@ -6007,9 +6034,11 @@ class OCTINTERP_API uipanel : public base_graphics_object { public: + class OCTINTERP_API properties : public base_properties { public: + Matrix get_boundingbox (bool internal = false, const Matrix& parent_pix_size = Matrix ()) const; @@ -6087,9 +6116,11 @@ class OCTINTERP_API uitable : public base_graphics_object { public: + class OCTINTERP_API properties : public base_properties { public: + Matrix get_boundingbox (bool internal = false, const Matrix& parent_pix_size = Matrix ()) const; @@ -6191,9 +6222,11 @@ class OCTINTERP_API uitoolbar : public base_graphics_object { public: + class OCTINTERP_API properties : public base_properties { public: + // See the genprops.awk script for an explanation of the // properties declarations. // Programming note: Keep property list sorted if new ones are added. @@ -6292,9 +6325,11 @@ class OCTINTERP_API uipushtool : public base_graphics_object { public: + class OCTINTERP_API properties : public base_properties { public: + // See the genprops.awk script for an explanation of the // properties declarations. // Programming note: Keep property list sorted if new ones are added. @@ -6353,9 +6388,11 @@ class OCTINTERP_API uitoggletool : public base_graphics_object { public: + class OCTINTERP_API properties : public base_properties { public: + // See the genprops.awk script for an explanation of the // properties declarations. // Programming note: Keep property list sorted if new ones are added. diff -r c68edca73b7f -r 9e2c5371c145 libinterp/corefcn/gtk-manager.h --- a/libinterp/corefcn/gtk-manager.h Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/corefcn/gtk-manager.h Wed Dec 16 01:05:17 2020 -0500 @@ -37,7 +37,7 @@ namespace octave { - class gtk_manager + class OCTINTERP_API gtk_manager { public: diff -r c68edca73b7f -r 9e2c5371c145 libinterp/corefcn/interpreter-private.h --- a/libinterp/corefcn/interpreter-private.h Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/corefcn/interpreter-private.h Wed Dec 16 01:05:17 2020 -0500 @@ -54,45 +54,45 @@ class tree_evaluator; class type_info; - extern interpreter& __get_interpreter__ (const std::string& who); + extern OCTINTERP_API interpreter& __get_interpreter__ (const std::string& who); - extern dynamic_loader& __get_dynamic_loader__ (const std::string& who); + extern OCTINTERP_API dynamic_loader& __get_dynamic_loader__ (const std::string& who); - extern error_system& __get_error_system__ (const std::string& who); + extern OCTINTERP_API error_system& __get_error_system__ (const std::string& who); - extern gh_manager& __get_gh_manager__ (const std::string& who); + extern OCTINTERP_API gh_manager& __get_gh_manager__ (const std::string& who); - extern help_system& __get_help_system__ (const std::string& who); + extern OCTINTERP_API help_system& __get_help_system__ (const std::string& who); - extern input_system& __get_input_system__ (const std::string& who); + extern OCTINTERP_API input_system& __get_input_system__ (const std::string& who); - extern load_path& __get_load_path__ (const std::string& who); + extern OCTINTERP_API load_path& __get_load_path__ (const std::string& who); - extern load_save_system& __get_load_save_system__ (const std::string& who); + extern OCTINTERP_API load_save_system& __get_load_save_system__ (const std::string& who); - extern event_manager& __get_event_manager__ (const std::string& who); + extern OCTINTERP_API event_manager& __get_event_manager__ (const std::string& who); - extern output_system& __get_output_system__ (const std::string& who); + extern OCTINTERP_API output_system& __get_output_system__ (const std::string& who); - extern type_info& __get_type_info__ (const std::string& who); + extern OCTINTERP_API type_info& __get_type_info__ (const std::string& who); - extern symbol_table& __get_symbol_table__ (const std::string& who); + extern OCTINTERP_API symbol_table& __get_symbol_table__ (const std::string& who); - extern symbol_scope __get_current_scope__ (const std::string& who); + extern OCTINTERP_API symbol_scope __get_current_scope__ (const std::string& who); - extern symbol_scope __require_current_scope__ (const std::string& who); + extern OCTINTERP_API symbol_scope __require_current_scope__ (const std::string& who); - extern tree_evaluator& __get_evaluator__ (const std::string& who); + extern OCTINTERP_API tree_evaluator& __get_evaluator__ (const std::string& who); - extern bp_table& __get_bp_table__ (const std::string& who); + extern OCTINTERP_API bp_table& __get_bp_table__ (const std::string& who); - extern child_list& __get_child_list__ (const std::string& who); + extern OCTINTERP_API child_list& __get_child_list__ (const std::string& who); - extern cdef_manager& __get_cdef_manager__ (const std::string& who); + extern OCTINTERP_API cdef_manager& __get_cdef_manager__ (const std::string& who); - extern display_info& __get_display_info__ (const std::string& who); + extern OCTINTERP_API display_info& __get_display_info__ (const std::string& who); - extern gtk_manager& __get_gtk_manager__ (const std::string& who); + extern OCTINTERP_API gtk_manager& __get_gtk_manager__ (const std::string& who); // Functions that could be methods in the interpreter class but maybe // shouldn't be exposed as part of the public interface. @@ -102,10 +102,12 @@ // or the text of an inline function that has the given argument names // PARAMETER_NAMES. Use of the latter form is discouraged. + OCTINTERP_API octave_value get_function_handle (interpreter& interp, const octave_value& arg, const std::string& parameter_name); + OCTINTERP_API octave_value get_function_handle (interpreter& interp, const octave_value& arg, const std::list& parameter_names diff -r c68edca73b7f -r 9e2c5371c145 libinterp/corefcn/oct-hist.h --- a/libinterp/corefcn/oct-hist.h Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/corefcn/oct-hist.h Wed Dec 16 01:05:17 2020 -0500 @@ -38,7 +38,9 @@ { class interpreter; - class history_system + class + OCTINTERP_API + history_system { public: diff -r c68edca73b7f -r 9e2c5371c145 libinterp/corefcn/oct-process.h --- a/libinterp/corefcn/oct-process.h Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/corefcn/oct-process.h Wed Dec 16 01:05:17 2020 -0500 @@ -32,8 +32,8 @@ namespace octave { + class OCTINTERP_API - class process_execution_result { public: diff -r c68edca73b7f -r 9e2c5371c145 libinterp/corefcn/pager.h --- a/libinterp/corefcn/pager.h Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/corefcn/pager.h Wed Dec 16 01:05:17 2020 -0500 @@ -129,7 +129,7 @@ diary_buf *db; }; - extern OCTAVE_API void flush_stdout (void); + extern OCTINTERP_API void flush_stdout (void); class output_system { @@ -305,9 +305,9 @@ void do_sync (const char *msg, int len, bool bypass_pager); }; - extern std::ostream& __stdout__ (void); + extern OCTINTERP_API std::ostream& __stdout__ (void); - extern std::ostream& __diary__ (void); + extern OCTINTERP_API std::ostream& __diary__ (void); } #define octave_stdout (octave::__stdout__ ()) diff -r c68edca73b7f -r 9e2c5371c145 libinterp/corefcn/pr-flt-fmt.h --- a/libinterp/corefcn/pr-flt-fmt.h Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/corefcn/pr-flt-fmt.h Wed Dec 16 01:05:17 2020 -0500 @@ -40,11 +40,12 @@ template class pr_rational_float; -extern int output_precision (void); +extern OCTINTERP_API int output_precision (void); -extern void set_output_prec (int prec); +extern OCTINTERP_API void set_output_prec (int prec); class +OCTINTERP_API float_format { public: @@ -205,6 +206,7 @@ }; class +OCTINTERP_API float_display_format { public: diff -r c68edca73b7f -r 9e2c5371c145 libinterp/corefcn/syminfo.h --- a/libinterp/corefcn/syminfo.h Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/corefcn/syminfo.h Wed Dec 16 01:05:17 2020 -0500 @@ -50,7 +50,9 @@ std::string line; }; - class symbol_info + class + OCTINTERP_API + symbol_info { public: @@ -85,7 +87,9 @@ bool m_is_persistent; }; - class symbol_info_list : public base_list + class + OCTINTERP_API + symbol_info_list : public base_list { public: diff -r c68edca73b7f -r 9e2c5371c145 libinterp/liboctinterp-build-info.h --- a/libinterp/liboctinterp-build-info.h Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/liboctinterp-build-info.h Wed Dec 16 01:05:17 2020 -0500 @@ -32,6 +32,6 @@ #include -extern OCTAVE_API std::string liboctinterp_hg_id (void); +extern OCTINTERP_API std::string liboctinterp_hg_id (void); #endif diff -r c68edca73b7f -r 9e2c5371c145 libinterp/octave-value/ov-base.h --- a/libinterp/octave-value/ov-base.h Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/octave-value/ov-base.h Wed Dec 16 01:05:17 2020 -0500 @@ -50,7 +50,7 @@ // interpreter-private.h here and bringing in a lot of unnecessary // symbols that require even more header files. - extern type_info& __get_type_info__ (const std::string&); + extern OCTINTERP_API type_info& __get_type_info__ (const std::string&); } class Cell; diff -r c68edca73b7f -r 9e2c5371c145 libinterp/octave-value/ov-bool-sparse.cc --- a/libinterp/octave-value/ov-bool-sparse.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/octave-value/ov-bool-sparse.cc Wed Dec 16 01:05:17 2020 -0500 @@ -51,7 +51,7 @@ #include "ov-base-sparse.h" #include "ov-base-sparse.cc" -template class OCTINTERP_API octave_base_sparse; +template class octave_base_sparse; DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_sparse_bool_matrix, "sparse bool matrix", "logical"); diff -r c68edca73b7f -r 9e2c5371c145 libinterp/octave-value/ov-bool.cc --- a/libinterp/octave-value/ov-bool.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/octave-value/ov-bool.cc Wed Dec 16 01:05:17 2020 -0500 @@ -54,7 +54,7 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTINTERP_API octave_base_scalar; +extern template class octave_base_scalar; template class octave_base_scalar; diff -r c68edca73b7f -r 9e2c5371c145 libinterp/octave-value/ov-complex.cc --- a/libinterp/octave-value/ov-complex.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/octave-value/ov-complex.cc Wed Dec 16 01:05:17 2020 -0500 @@ -57,8 +57,8 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTINTERP_API octave_base_scalar; -extern template class OCTINTERP_API octave_base_scalar; +extern template class octave_base_scalar; +extern template class octave_base_scalar; template class octave_base_scalar; diff -r c68edca73b7f -r 9e2c5371c145 libinterp/octave-value/ov-cx-sparse.cc --- a/libinterp/octave-value/ov-cx-sparse.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/octave-value/ov-cx-sparse.cc Wed Dec 16 01:05:17 2020 -0500 @@ -52,7 +52,7 @@ #include "ov-bool-sparse.h" -template class OCTINTERP_API octave_base_sparse; +template class octave_base_sparse; DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_sparse_complex_matrix, "sparse complex matrix", "double"); diff -r c68edca73b7f -r 9e2c5371c145 libinterp/octave-value/ov-flt-complex.cc --- a/libinterp/octave-value/ov-flt-complex.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/octave-value/ov-flt-complex.cc Wed Dec 16 01:05:17 2020 -0500 @@ -56,7 +56,7 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTINTERP_API octave_base_scalar; +extern template class octave_base_scalar; template class octave_base_scalar; diff -r c68edca73b7f -r 9e2c5371c145 libinterp/octave-value/ov-int16.cc --- a/libinterp/octave-value/ov-int16.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/octave-value/ov-int16.cc Wed Dec 16 01:05:17 2020 -0500 @@ -62,7 +62,7 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTINTERP_API octave_base_scalar; +extern template class octave_base_scalar; template class octave_base_matrix; diff -r c68edca73b7f -r 9e2c5371c145 libinterp/octave-value/ov-int32.cc --- a/libinterp/octave-value/ov-int32.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/octave-value/ov-int32.cc Wed Dec 16 01:05:17 2020 -0500 @@ -62,7 +62,7 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTINTERP_API octave_base_scalar; +extern template class octave_base_scalar; template class octave_base_matrix; diff -r c68edca73b7f -r 9e2c5371c145 libinterp/octave-value/ov-int64.cc --- a/libinterp/octave-value/ov-int64.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/octave-value/ov-int64.cc Wed Dec 16 01:05:17 2020 -0500 @@ -62,7 +62,7 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTINTERP_API octave_base_scalar; +extern template class octave_base_scalar; template class octave_base_matrix; diff -r c68edca73b7f -r 9e2c5371c145 libinterp/octave-value/ov-int8.cc --- a/libinterp/octave-value/ov-int8.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/octave-value/ov-int8.cc Wed Dec 16 01:05:17 2020 -0500 @@ -62,7 +62,7 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTINTERP_API octave_base_scalar; +extern template class octave_base_scalar; template class octave_base_matrix; diff -r c68edca73b7f -r 9e2c5371c145 libinterp/octave-value/ov-re-sparse.cc --- a/libinterp/octave-value/ov-re-sparse.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/octave-value/ov-re-sparse.cc Wed Dec 16 01:05:17 2020 -0500 @@ -52,7 +52,7 @@ #include "ov-bool-sparse.h" -template class OCTINTERP_API octave_base_sparse; +template class octave_base_sparse; DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_sparse_matrix, "sparse matrix", "double"); diff -r c68edca73b7f -r 9e2c5371c145 libinterp/octave-value/ov-scalar.cc --- a/libinterp/octave-value/ov-scalar.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/octave-value/ov-scalar.cc Wed Dec 16 01:05:17 2020 -0500 @@ -61,7 +61,7 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTINTERP_API octave_base_scalar; +extern template class octave_base_scalar; template class octave_base_scalar; diff -r c68edca73b7f -r 9e2c5371c145 libinterp/octave-value/ov-typeinfo.h --- a/libinterp/octave-value/ov-typeinfo.h Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/octave-value/ov-typeinfo.h Wed Dec 16 01:05:17 2020 -0500 @@ -39,7 +39,9 @@ namespace octave { - class type_info + class + OCTINTERP_API + type_info { public: @@ -285,47 +287,49 @@ typedef octave::type_info::assignany_op_fcn assignany_op_fcn; - extern int register_type (const std::string& t_name, + extern OCTINTERP_API int register_type (const std::string& t_name, const std::string& c_name, const octave_value& val); - extern octave_value lookup_type (const std::string& nm); + extern OCTINTERP_API octave_value lookup_type (const std::string& nm); - extern unary_class_op_fcn lookup_unary_class_op (octave_value::unary_op op); + extern OCTINTERP_API unary_class_op_fcn + lookup_unary_class_op (octave_value::unary_op op); - extern unary_op_fcn lookup_unary_op (octave_value::unary_op op, int t); + extern OCTINTERP_API unary_op_fcn + lookup_unary_op (octave_value::unary_op op, int t); - extern non_const_unary_op_fcn + extern OCTINTERP_API non_const_unary_op_fcn lookup_non_const_unary_op (octave_value::unary_op op, int t); - extern binary_class_op_fcn + extern OCTINTERP_API binary_class_op_fcn lookup_binary_class_op (octave_value::binary_op op); - extern binary_op_fcn + extern OCTINTERP_API binary_op_fcn lookup_binary_op (octave_value::binary_op op, int t1, int t2); - extern binary_class_op_fcn + extern OCTINTERP_API binary_class_op_fcn lookup_binary_class_op (octave_value::compound_binary_op op); - extern binary_op_fcn + extern OCTINTERP_API binary_op_fcn lookup_binary_op (octave_value::compound_binary_op op, int t1, int t2); - extern cat_op_fcn lookup_cat_op (int t1, int t2); + extern OCTINTERP_API cat_op_fcn lookup_cat_op (int t1, int t2); - extern assign_op_fcn + extern OCTINTERP_API assign_op_fcn lookup_assign_op (octave_value::assign_op op, int t_lhs, int t_rhs); - extern assignany_op_fcn + extern OCTINTERP_API assignany_op_fcn lookup_assignany_op (octave_value::assign_op op, int t_lhs); - extern int lookup_pref_assign_conv (int t_lhs, int t_rhs); + extern OCTINTERP_API int lookup_pref_assign_conv (int t_lhs, int t_rhs); - extern octave_base_value::type_conv_fcn + extern OCTINTERP_API octave_base_value::type_conv_fcn lookup_widening_op (int t, int t_result); - extern string_vector installed_type_names (void); + extern OCTINTERP_API string_vector installed_type_names (void); - extern octave_scalar_map installed_type_info (void); + extern OCTINTERP_API octave_scalar_map installed_type_info (void); } #endif diff -r c68edca73b7f -r 9e2c5371c145 libinterp/octave-value/ov-uint16.cc --- a/libinterp/octave-value/ov-uint16.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/octave-value/ov-uint16.cc Wed Dec 16 01:05:17 2020 -0500 @@ -63,7 +63,7 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTINTERP_API octave_base_scalar; +extern template class octave_base_scalar; template class octave_base_matrix; diff -r c68edca73b7f -r 9e2c5371c145 libinterp/octave-value/ov-uint32.cc --- a/libinterp/octave-value/ov-uint32.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/octave-value/ov-uint32.cc Wed Dec 16 01:05:17 2020 -0500 @@ -62,7 +62,7 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTINTERP_API octave_base_scalar; +extern template class octave_base_scalar; template class octave_base_matrix; diff -r c68edca73b7f -r 9e2c5371c145 libinterp/octave-value/ov-uint64.cc --- a/libinterp/octave-value/ov-uint64.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/octave-value/ov-uint64.cc Wed Dec 16 01:05:17 2020 -0500 @@ -62,7 +62,7 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTINTERP_API octave_base_scalar; +extern template class octave_base_scalar; template class octave_base_matrix; diff -r c68edca73b7f -r 9e2c5371c145 libinterp/octave-value/ov-uint8.cc --- a/libinterp/octave-value/ov-uint8.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/octave-value/ov-uint8.cc Wed Dec 16 01:05:17 2020 -0500 @@ -62,7 +62,7 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTINTERP_API octave_base_scalar; +extern template class octave_base_scalar; template class octave_base_matrix; diff -r c68edca73b7f -r 9e2c5371c145 libinterp/parse-tree/parse.h --- a/libinterp/parse-tree/parse.h Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/parse-tree/parse.h Wed Dec 16 01:05:17 2020 -0500 @@ -97,7 +97,7 @@ namespace octave { - class base_parser + class OCTINTERP_API base_parser { private: @@ -591,14 +591,14 @@ // Publish externally used friend functions. - extern OCTAVE_API octave_value + extern OCTINTERP_API octave_value parse_fcn_file (interpreter& interp, const std::string& full_file, const std::string& file, const std::string& dir_name, const std::string& dispatch_type, const std::string& package_name, bool require_file, bool force_script, bool autoload, bool relative_lookup); - class parser : public base_parser + class OCTINTERP_API parser : public base_parser { public: @@ -637,7 +637,7 @@ int run (void); }; - class push_parser : public base_parser + class OCTINTERP_API push_parser : public base_parser { public: diff -r c68edca73b7f -r 9e2c5371c145 libinterp/template-inst/Array-jit.cc --- a/libinterp/template-inst/Array-jit.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/template-inst/Array-jit.cc Wed Dec 16 01:05:17 2020 -0500 @@ -37,8 +37,8 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTAVE_API Array; -extern template class OCTAVE_API Array; +extern template class Array; +extern template class Array; NO_INSTANTIATE_ARRAY_SORT (octave::jit_function); diff -r c68edca73b7f -r 9e2c5371c145 libinterp/template-inst/Array-tc.cc --- a/libinterp/template-inst/Array-tc.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/libinterp/template-inst/Array-tc.cc Wed Dec 16 01:05:17 2020 -0500 @@ -41,15 +41,15 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTAVE_API Array; -extern template class OCTAVE_API Array; -extern template class OCTAVE_API Array; -extern template class OCTAVE_API Array; -extern template class OCTAVE_API Array; -extern template class OCTAVE_API Array; -extern template class OCTAVE_API Array; -extern template class OCTAVE_API Array; -extern template class OCTAVE_API Array; +extern template class Array; +extern template class Array; +extern template class Array; +extern template class Array; +extern template class Array; +extern template class Array; +extern template class Array; +extern template class Array; +extern template class Array; NO_INSTANTIATE_ARRAY_SORT (octave_value); INSTANTIATE_ARRAY (octave_value, OCTINTERP_API); diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/Array-C.cc --- a/liboctave/array/Array-C.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/Array-C.cc Wed Dec 16 01:05:17 2020 -0500 @@ -39,8 +39,8 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTAVE_API Array; -extern template class OCTAVE_API Array; +extern template class Array; +extern template class Array; template <> inline bool @@ -92,7 +92,7 @@ return result; } -template class OCTAVE_API octave_sort; +template class octave_sort; INSTANTIATE_ARRAY (Complex, OCTAVE_API); @@ -102,4 +102,4 @@ #include "DiagArray2.h" #include "DiagArray2.cc" -template class OCTAVE_API DiagArray2; +template class DiagArray2; diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/Array-b.cc --- a/liboctave/array/Array-b.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/Array-b.cc Wed Dec 16 01:05:17 2020 -0500 @@ -39,8 +39,8 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTAVE_API Array; -extern template class OCTAVE_API Array; +extern template class Array; +extern template class Array; // Specialize bool sorting (aka stable partitioning). @@ -118,7 +118,7 @@ do_bool_partition (data, idx, nel); } -template class OCTAVE_API octave_sort; +template class octave_sort; INSTANTIATE_ARRAY (bool, OCTAVE_API); @@ -128,4 +128,4 @@ #include "DiagArray2.h" #include "DiagArray2.cc" -template class OCTAVE_API DiagArray2; +template class DiagArray2; diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/Array-ch.cc --- a/liboctave/array/Array-ch.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/Array-ch.cc Wed Dec 16 01:05:17 2020 -0500 @@ -39,10 +39,10 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTAVE_API Array; -extern template class OCTAVE_API Array; +extern template class Array; +extern template class Array; -template class OCTAVE_API octave_sort; +template class octave_sort; INSTANTIATE_ARRAY (char, OCTAVE_API); @@ -52,4 +52,4 @@ #include "DiagArray2.h" #include "DiagArray2.cc" -template class OCTAVE_API DiagArray2; +template class DiagArray2; diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/Array-d.cc --- a/liboctave/array/Array-d.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/Array-d.cc Wed Dec 16 01:05:17 2020 -0500 @@ -41,8 +41,8 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTAVE_API Array; -extern template class OCTAVE_API Array; +extern template class Array; +extern template class Array; template <> inline bool @@ -163,7 +163,7 @@ return mode; } -template class OCTAVE_API octave_sort; +template class octave_sort; INSTANTIATE_ARRAY (double, OCTAVE_API); @@ -173,4 +173,4 @@ #include "DiagArray2.h" #include "DiagArray2.cc" -template class OCTAVE_API DiagArray2; +template class DiagArray2; diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/Array-f.cc --- a/liboctave/array/Array-f.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/Array-f.cc Wed Dec 16 01:05:17 2020 -0500 @@ -41,8 +41,8 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTAVE_API Array; -extern template class OCTAVE_API Array; +extern template class Array; +extern template class Array; template <> inline bool @@ -163,7 +163,7 @@ return mode; } -template class OCTAVE_API octave_sort; +template class octave_sort; INSTANTIATE_ARRAY (float, OCTAVE_API); @@ -173,4 +173,4 @@ #include "DiagArray2.h" #include "DiagArray2.cc" -template class OCTAVE_API DiagArray2; +template class DiagArray2; diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/Array-fC.cc --- a/liboctave/array/Array-fC.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/Array-fC.cc Wed Dec 16 01:05:17 2020 -0500 @@ -39,8 +39,8 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTAVE_API Array; -extern template class OCTAVE_API Array; +extern template class Array; +extern template class Array; template <> inline bool @@ -92,7 +92,7 @@ return result; } -template class OCTAVE_API octave_sort; +template class octave_sort; INSTANTIATE_ARRAY (FloatComplex, OCTAVE_API); @@ -102,4 +102,4 @@ #include "DiagArray2.h" #include "DiagArray2.cc" -template class OCTAVE_API DiagArray2; +template class DiagArray2; diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/Array-i.cc --- a/liboctave/array/Array-i.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/Array-i.cc Wed Dec 16 01:05:17 2020 -0500 @@ -41,12 +41,12 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTAVE_API Array; +extern template class Array; -template class OCTAVE_API octave_sort; -template class OCTAVE_API octave_sort; +template class octave_sort; +template class octave_sort; #if defined (OCTAVE_HAVE_LONG_LONG_INT) -template class OCTAVE_API octave_sort; +template class octave_sort; #endif INSTANTIATE_ARRAY (int, OCTAVE_API); @@ -55,20 +55,20 @@ INSTANTIATE_ARRAY (long long, OCTAVE_API); #endif -template class OCTAVE_API octave_sort; -template class OCTAVE_API octave_sort; -template class OCTAVE_API octave_sort; -template class OCTAVE_API octave_sort; +template class octave_sort; +template class octave_sort; +template class octave_sort; +template class octave_sort; INSTANTIATE_ARRAY (octave_int8, OCTAVE_API); INSTANTIATE_ARRAY (octave_int16, OCTAVE_API); INSTANTIATE_ARRAY (octave_int32, OCTAVE_API); INSTANTIATE_ARRAY (octave_int64, OCTAVE_API); -template class OCTAVE_API octave_sort; -template class OCTAVE_API octave_sort; -template class OCTAVE_API octave_sort; -template class OCTAVE_API octave_sort; +template class octave_sort; +template class octave_sort; +template class octave_sort; +template class octave_sort; INSTANTIATE_ARRAY (octave_uint8, OCTAVE_API); INSTANTIATE_ARRAY (octave_uint16, OCTAVE_API); @@ -78,4 +78,4 @@ #include "DiagArray2.h" #include "DiagArray2.cc" -template class OCTAVE_API DiagArray2; +template class DiagArray2; diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/Array-idx-vec.cc --- a/liboctave/array/Array-idx-vec.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/Array-idx-vec.cc Wed Dec 16 01:05:17 2020 -0500 @@ -37,7 +37,7 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTAVE_API Array; +extern template class Array; NO_INSTANTIATE_ARRAY_SORT (idx_vector); diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/Array-s.cc --- a/liboctave/array/Array-s.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/Array-s.cc Wed Dec 16 01:05:17 2020 -0500 @@ -39,10 +39,10 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTAVE_API Array; -extern template class OCTAVE_API Array; +extern template class Array; +extern template class Array; -template class OCTAVE_API octave_sort; +template class octave_sort; INSTANTIATE_ARRAY (short, OCTAVE_API); diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/Array-str.cc --- a/liboctave/array/Array-str.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/Array-str.cc Wed Dec 16 01:05:17 2020 -0500 @@ -39,9 +39,9 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTAVE_API Array; -extern template class OCTAVE_API Array; +extern template class Array; +extern template class Array; -template class OCTAVE_API octave_sort; +template class octave_sort; INSTANTIATE_ARRAY (std::string, OCTAVE_API); diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/Array-voidp.cc --- a/liboctave/array/Array-voidp.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/Array-voidp.cc Wed Dec 16 01:05:17 2020 -0500 @@ -37,8 +37,8 @@ // Prevent implicit instantiations on some systems (Windows, others?) // that can lead to duplicate definitions of static data members. -extern template class OCTAVE_API Array; -extern template class OCTAVE_API Array; +extern template class Array; +extern template class Array; NO_INSTANTIATE_ARRAY_SORT (void *); diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/Array.cc --- a/liboctave/array/Array.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/Array.cc Wed Dec 16 01:05:17 2020 -0500 @@ -2766,7 +2766,7 @@ #define INSTANTIATE_ARRAY(T, API) \ template <> void Array::instantiation_guard () { } \ - template class API Array + template class Array // FIXME: is this used? diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/Array.h --- a/liboctave/array/Array.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/Array.h Wed Dec 16 01:05:17 2020 -0500 @@ -124,6 +124,7 @@ template class +OCTAVE_API Array { protected: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/DiagArray2.h --- a/liboctave/array/DiagArray2.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/DiagArray2.h Wed Dec 16 01:05:17 2020 -0500 @@ -38,6 +38,7 @@ template class +OCTAVE_API DiagArray2 : protected Array { protected: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/MArray-C.cc --- a/liboctave/array/MArray-C.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/MArray-C.cc Wed Dec 16 01:05:17 2020 -0500 @@ -34,13 +34,13 @@ #include "MArray.h" #include "MArray.cc" -template class OCTAVE_API MArray; +template class MArray; INSTANTIATE_MARRAY_FRIENDS (Complex, OCTAVE_API) #include "MDiagArray2.h" #include "MDiagArray2.cc" -template class OCTAVE_API MDiagArray2; +template class MDiagArray2; INSTANTIATE_MDIAGARRAY2_FRIENDS (Complex, OCTAVE_API) diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/MArray-d.cc --- a/liboctave/array/MArray-d.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/MArray-d.cc Wed Dec 16 01:05:17 2020 -0500 @@ -32,13 +32,13 @@ #include "MArray.h" #include "MArray.cc" -template class OCTAVE_API MArray; +template class MArray; INSTANTIATE_MARRAY_FRIENDS (double, OCTAVE_API) #include "MDiagArray2.h" #include "MDiagArray2.cc" -template class OCTAVE_API MDiagArray2; +template class MDiagArray2; INSTANTIATE_MDIAGARRAY2_FRIENDS (double, OCTAVE_API) diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/MArray-f.cc --- a/liboctave/array/MArray-f.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/MArray-f.cc Wed Dec 16 01:05:17 2020 -0500 @@ -32,13 +32,13 @@ #include "MArray.h" #include "MArray.cc" -template class OCTAVE_API MArray; +template class MArray; INSTANTIATE_MARRAY_FRIENDS (float, OCTAVE_API) #include "MDiagArray2.h" #include "MDiagArray2.cc" -template class OCTAVE_API MDiagArray2; +template class MDiagArray2; INSTANTIATE_MDIAGARRAY2_FRIENDS (float, OCTAVE_API) diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/MArray-fC.cc --- a/liboctave/array/MArray-fC.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/MArray-fC.cc Wed Dec 16 01:05:17 2020 -0500 @@ -34,13 +34,13 @@ #include "MArray.h" #include "MArray.cc" -template class OCTAVE_API MArray; +template class MArray; INSTANTIATE_MARRAY_FRIENDS (FloatComplex, OCTAVE_API) #include "MDiagArray2.h" #include "MDiagArray2.cc" -template class OCTAVE_API MDiagArray2; +template class MDiagArray2; INSTANTIATE_MDIAGARRAY2_FRIENDS (FloatComplex, OCTAVE_API) diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/MArray-i.cc --- a/liboctave/array/MArray-i.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/MArray-i.cc Wed Dec 16 01:05:17 2020 -0500 @@ -34,9 +34,9 @@ #include "MArray.h" #include "MArray.cc" -template class OCTAVE_API MArray; +template class MArray; #if defined (OCTAVE_ENABLE_64) -template class OCTAVE_API MArray; +template class MArray; #endif INSTANTIATE_MARRAY_FRIENDS (int, OCTAVE_API) @@ -44,20 +44,20 @@ INSTANTIATE_MARRAY_FRIENDS (int64_t, OCTAVE_API) #endif -template class OCTAVE_API MArray; -template class OCTAVE_API MArray; -template class OCTAVE_API MArray; -template class OCTAVE_API MArray; +template class MArray; +template class MArray; +template class MArray; +template class MArray; INSTANTIATE_MARRAY_FRIENDS (octave_int8, OCTAVE_API) INSTANTIATE_MARRAY_FRIENDS (octave_int16, OCTAVE_API) INSTANTIATE_MARRAY_FRIENDS (octave_int32, OCTAVE_API) INSTANTIATE_MARRAY_FRIENDS (octave_int64, OCTAVE_API) -template class OCTAVE_API MArray; -template class OCTAVE_API MArray; -template class OCTAVE_API MArray; -template class OCTAVE_API MArray; +template class MArray; +template class MArray; +template class MArray; +template class MArray; INSTANTIATE_MARRAY_FRIENDS (octave_uint8, OCTAVE_API) INSTANTIATE_MARRAY_FRIENDS (octave_uint16, OCTAVE_API) @@ -67,6 +67,6 @@ #include "MDiagArray2.h" #include "MDiagArray2.cc" -template class OCTAVE_API MDiagArray2; +template class MDiagArray2; INSTANTIATE_MDIAGARRAY2_FRIENDS (int, OCTAVE_API) diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/MArray-s.cc --- a/liboctave/array/MArray-s.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/MArray-s.cc Wed Dec 16 01:05:17 2020 -0500 @@ -32,13 +32,13 @@ #include "MArray.h" #include "MArray.cc" -template class OCTAVE_API MArray; +template class MArray; INSTANTIATE_MARRAY_FRIENDS (short, OCTAVE_API) #include "MDiagArray2.h" #include "MDiagArray2.cc" -template class OCTAVE_API MDiagArray2; +template class MDiagArray2; INSTANTIATE_MDIAGARRAY2_FRIENDS (short, OCTAVE_API) diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/MArray.h --- a/liboctave/array/MArray.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/MArray.h Wed Dec 16 01:05:17 2020 -0500 @@ -59,6 +59,7 @@ //! Template for N-dimensional array classes with like-type math operators. template class +OCTAVE_API MArray : public Array { protected: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/MDiagArray2.h --- a/liboctave/array/MDiagArray2.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/MDiagArray2.h Wed Dec 16 01:05:17 2020 -0500 @@ -51,6 +51,7 @@ //! Template for two dimensional diagonal array with math operators. template class +OCTAVE_API MDiagArray2 : public DiagArray2 { public: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/MSparse-C.cc --- a/liboctave/array/MSparse-C.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/MSparse-C.cc Wed Dec 16 01:05:17 2020 -0500 @@ -31,6 +31,6 @@ #include "MSparse.h" -template class OCTAVE_API MSparse; +template class MSparse; INSTANTIATE_SPARSE_FRIENDS (Complex, OCTAVE_API); diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/MSparse-d.cc --- a/liboctave/array/MSparse-d.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/MSparse-d.cc Wed Dec 16 01:05:17 2020 -0500 @@ -29,6 +29,6 @@ #include "MSparse.h" -template class OCTAVE_API MSparse; +template class MSparse; INSTANTIATE_SPARSE_FRIENDS (double, OCTAVE_API); diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/Range.h --- a/liboctave/array/Range.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/Range.h Wed Dec 16 01:05:17 2020 -0500 @@ -67,7 +67,9 @@ }; template - class range + class + OCTAVE_API + range { public: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/Sparse.h --- a/liboctave/array/Sparse.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/Sparse.h Wed Dec 16 01:05:17 2020 -0500 @@ -45,6 +45,7 @@ template class +OCTAVE_API Sparse { public: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/int16NDArray.cc --- a/liboctave/array/int16NDArray.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/int16NDArray.cc Wed Dec 16 01:05:17 2020 -0500 @@ -33,7 +33,7 @@ #include "bsxfun-defs.cc" -template class OCTAVE_API intNDArray; +template class intNDArray; template OCTAVE_API std::ostream& diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/int32NDArray.cc --- a/liboctave/array/int32NDArray.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/int32NDArray.cc Wed Dec 16 01:05:17 2020 -0500 @@ -33,7 +33,7 @@ #include "bsxfun-defs.cc" -template class OCTAVE_API intNDArray; +template class intNDArray; template OCTAVE_API std::ostream& diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/int64NDArray.cc --- a/liboctave/array/int64NDArray.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/int64NDArray.cc Wed Dec 16 01:05:17 2020 -0500 @@ -33,7 +33,7 @@ #include "bsxfun-defs.cc" -template class OCTAVE_API intNDArray; +template class intNDArray; template OCTAVE_API std::ostream& diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/int8NDArray.cc --- a/liboctave/array/int8NDArray.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/int8NDArray.cc Wed Dec 16 01:05:17 2020 -0500 @@ -33,7 +33,7 @@ #include "bsxfun-defs.cc" -template class OCTAVE_API intNDArray; +template class intNDArray; template OCTAVE_API std::ostream& diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/intNDArray.h --- a/liboctave/array/intNDArray.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/intNDArray.h Wed Dec 16 01:05:17 2020 -0500 @@ -35,6 +35,7 @@ template class +OCTAVE_API intNDArray : public MArray { public: @@ -130,9 +131,11 @@ // i/o template +OCTAVE_API std::ostream& operator << (std::ostream& os, const intNDArray& a); template +OCTAVE_API std::istream& operator >> (std::istream& is, intNDArray& a); #endif diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/uint16NDArray.cc --- a/liboctave/array/uint16NDArray.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/uint16NDArray.cc Wed Dec 16 01:05:17 2020 -0500 @@ -33,7 +33,7 @@ #include "bsxfun-defs.cc" -template class OCTAVE_API intNDArray; +template class intNDArray; template OCTAVE_API std::ostream& diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/uint32NDArray.cc --- a/liboctave/array/uint32NDArray.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/uint32NDArray.cc Wed Dec 16 01:05:17 2020 -0500 @@ -33,7 +33,7 @@ #include "bsxfun-defs.cc" -template class OCTAVE_API intNDArray; +template class intNDArray; template OCTAVE_API std::ostream& diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/uint64NDArray.cc --- a/liboctave/array/uint64NDArray.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/uint64NDArray.cc Wed Dec 16 01:05:17 2020 -0500 @@ -33,7 +33,7 @@ #include "bsxfun-defs.cc" -template class OCTAVE_API intNDArray; +template class intNDArray; template OCTAVE_API std::ostream& diff -r c68edca73b7f -r 9e2c5371c145 liboctave/array/uint8NDArray.cc --- a/liboctave/array/uint8NDArray.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/array/uint8NDArray.cc Wed Dec 16 01:05:17 2020 -0500 @@ -33,7 +33,7 @@ #include "bsxfun-defs.cc" -template class OCTAVE_API intNDArray; +template class intNDArray; template OCTAVE_API std::ostream& diff -r c68edca73b7f -r 9e2c5371c145 liboctave/numeric/aepbalance.h --- a/liboctave/numeric/aepbalance.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/numeric/aepbalance.h Wed Dec 16 01:05:17 2020 -0500 @@ -35,7 +35,9 @@ namespace math { template - class aepbalance + class + OCTAVE_API + aepbalance { public: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/numeric/chol.h --- a/liboctave/numeric/chol.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/numeric/chol.h Wed Dec 16 01:05:17 2020 -0500 @@ -34,6 +34,7 @@ { template class + OCTAVE_API chol { public: @@ -102,6 +103,7 @@ }; template + OCTAVE_API T chol2inv (const T& r); } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/numeric/eigs-base.h --- a/liboctave/numeric/eigs-base.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/numeric/eigs-base.h Wed Dec 16 01:05:17 2020 -0500 @@ -44,6 +44,7 @@ int& eigs_error); template +OCTAVE_API octave_idx_type EigsRealSymmetricMatrix (const M& m, const std::string typ, octave_idx_type k, octave_idx_type p, @@ -54,6 +55,7 @@ bool cholB, int disp, int maxit); template +OCTAVE_API octave_idx_type EigsRealSymmetricMatrixShift (const M& m, double sigma, octave_idx_type k, octave_idx_type p, @@ -64,7 +66,7 @@ bool cholB, int disp, int maxit); template -extern OCTAVE_API octave_idx_type +OCTAVE_API octave_idx_type EigsRealSymmetricFunc (EigsFunc fun, octave_idx_type n, const std::string& _typ, double sigma, octave_idx_type k, octave_idx_type p, @@ -75,6 +77,7 @@ bool cholB, int disp, int maxit); template +OCTAVE_API octave_idx_type EigsRealNonSymmetricMatrix (const M& m, const std::string typ, octave_idx_type k, octave_idx_type p, @@ -85,6 +88,7 @@ bool cholB, int disp, int maxit); template +OCTAVE_API octave_idx_type EigsRealNonSymmetricMatrixShift (const M& m, double sigmar, octave_idx_type k, octave_idx_type p, @@ -96,7 +100,7 @@ bool cholB, int disp, int maxit); template -extern OCTAVE_API octave_idx_type +OCTAVE_API octave_idx_type EigsRealNonSymmetricFunc (EigsFunc fun, octave_idx_type n, const std::string& _typ, double sigmar, octave_idx_type k, octave_idx_type p, @@ -107,6 +111,7 @@ bool cholB, int disp, int maxit); template +OCTAVE_API octave_idx_type EigsComplexNonSymmetricMatrix (const M& m, const std::string typ, octave_idx_type k, octave_idx_type p, @@ -118,6 +123,7 @@ bool cholB, int disp, int maxit); template +OCTAVE_API octave_idx_type EigsComplexNonSymmetricMatrixShift (const M& m, Complex sigma, octave_idx_type k, octave_idx_type p, @@ -130,7 +136,7 @@ bool cholB, int disp, int maxit); template -extern OCTAVE_API octave_idx_type +OCTAVE_API octave_idx_type EigsComplexNonSymmetricFunc (EigsComplexFunc fun, octave_idx_type n, const std::string& _typ, Complex sigma, octave_idx_type k, octave_idx_type p, diff -r c68edca73b7f -r 9e2c5371c145 liboctave/numeric/gepbalance.h --- a/liboctave/numeric/gepbalance.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/numeric/gepbalance.h Wed Dec 16 01:05:17 2020 -0500 @@ -36,6 +36,7 @@ { template class + OCTAVE_API gepbalance { public: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/numeric/gsvd.h --- a/liboctave/numeric/gsvd.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/numeric/gsvd.h Wed Dec 16 01:05:17 2020 -0500 @@ -34,6 +34,7 @@ { template class + OCTAVE_API gsvd { public: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/numeric/hess.h --- a/liboctave/numeric/hess.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/numeric/hess.h Wed Dec 16 01:05:17 2020 -0500 @@ -36,6 +36,7 @@ { template class + OCTAVE_API hess { public: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/numeric/lu.h --- a/liboctave/numeric/lu.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/numeric/lu.h Wed Dec 16 01:05:17 2020 -0500 @@ -39,6 +39,7 @@ { template class + OCTAVE_API lu { public: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/numeric/qr.h --- a/liboctave/numeric/qr.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/numeric/qr.h Wed Dec 16 01:05:17 2020 -0500 @@ -36,6 +36,7 @@ { template class + OCTAVE_API qr { public: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/numeric/qrp.h --- a/liboctave/numeric/qrp.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/numeric/qrp.h Wed Dec 16 01:05:17 2020 -0500 @@ -37,6 +37,7 @@ { template class + OCTAVE_API qrp : public qr { public: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/numeric/schur.h --- a/liboctave/numeric/schur.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/numeric/schur.h Wed Dec 16 01:05:17 2020 -0500 @@ -43,6 +43,7 @@ { template class + OCTAVE_API schur { public: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/numeric/sparse-chol.h --- a/liboctave/numeric/sparse-chol.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/numeric/sparse-chol.h Wed Dec 16 01:05:17 2020 -0500 @@ -45,6 +45,7 @@ template class + OCTAVE_API sparse_chol { public: @@ -94,6 +95,7 @@ }; template + OCTAVE_API chol_type chol2inv (const chol_type& r); diff -r c68edca73b7f -r 9e2c5371c145 liboctave/numeric/sparse-lu.h --- a/liboctave/numeric/sparse-lu.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/numeric/sparse-lu.h Wed Dec 16 01:05:17 2020 -0500 @@ -46,6 +46,7 @@ template class + OCTAVE_API sparse_lu { public: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/numeric/sparse-qr.h --- a/liboctave/numeric/sparse-qr.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/numeric/sparse-qr.h Wed Dec 16 01:05:17 2020 -0500 @@ -48,6 +48,7 @@ template class + OCTAVE_API sparse_qr { public: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/numeric/svd.h --- a/liboctave/numeric/svd.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/numeric/svd.h Wed Dec 16 01:05:17 2020 -0500 @@ -36,6 +36,7 @@ { template class + OCTAVE_API svd { public: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/system/file-ops.h --- a/liboctave/system/file-ops.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/system/file-ops.h Wed Dec 16 01:05:17 2020 -0500 @@ -48,7 +48,7 @@ // returns a malloc()'ed string which is the expansion, or a NULL // pointer if the expansion fails. - extern tilde_expansion_hook tilde_expansion_preexpansion_hook; + extern OCTAVE_API tilde_expansion_hook tilde_expansion_preexpansion_hook; // If non-null, this contains the address of a function to call if the // standard meaning for expanding a tilde fails. The function is @@ -56,61 +56,63 @@ // malloc()'ed string which is the expansion, or a NULL pointer if // there is no expansion. - extern tilde_expansion_hook tilde_expansion_failure_hook; + extern OCTAVE_API tilde_expansion_hook tilde_expansion_failure_hook; // When non-null, this is a NULL terminated array of strings which are // duplicates for a tilde prefix. Bash uses this to expand '=~' and // ':~'. - extern string_vector tilde_additional_prefixes; + extern OCTAVE_API string_vector tilde_additional_prefixes; // When non-null, this is a NULL terminated array of strings which // match the end of a username, instead of just "/". Bash sets this // to ':' and '=~'. - extern string_vector tilde_additional_suffixes; + extern OCTAVE_API string_vector tilde_additional_suffixes; // Find the start of a tilde expansion in S, and return the index // of the tilde which starts the expansion. Place the length of the // text which identified this tilde starter in LEN, excluding the // tilde itself. - char dev_sep_char (void); + extern OCTAVE_API char dev_sep_char (void); - bool is_dev_sep (char c); + extern OCTAVE_API bool is_dev_sep (char c); - char dir_sep_char (void); + extern OCTAVE_API char dir_sep_char (void); - std::string dir_sep_str (void); + extern OCTAVE_API std::string dir_sep_str (void); - std::string dir_sep_chars (void); + extern OCTAVE_API std::string dir_sep_chars (void); - bool is_dir_sep (char c); + extern OCTAVE_API bool is_dir_sep (char c); // If NAME has a leading ~ or ~user, Unix-style, expand it to the // user's home directory. If no ~, or no , just return NAME. - std::string tilde_expand (const std::string&); + extern OCTAVE_API std::string tilde_expand (const std::string&); // A vector version of the above. - string_vector tilde_expand (const string_vector&); + extern OCTAVE_API string_vector tilde_expand (const string_vector&); - std::string concat (const std::string&, const std::string&); + extern OCTAVE_API std::string concat (const std::string&, const std::string&); // Return the directory part of a filename or an empty string if // there is no directory component. Does not check to see // whether the file exists or is a directory. - std::string dirname (const std::string& path); + extern OCTAVE_API std::string dirname (const std::string& path); // Return the tail member of a filename. - std::string tail (const std::string& path); + extern OCTAVE_API std::string tail (const std::string& path); - // convert path from UNIX type separators to whatever is the system separators + // Convert path from UNIX type separators to whatever is the + // system separators. - std::string native_separator_path (const std::string& path); + extern OCTAVE_API std::string + native_separator_path (const std::string& path); } extern OCTAVE_API int diff -r c68edca73b7f -r 9e2c5371c145 liboctave/system/lo-sysdep.h --- a/liboctave/system/lo-sysdep.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/system/lo-sysdep.h Wed Dec 16 01:05:17 2020 -0500 @@ -41,40 +41,45 @@ { namespace sys { - extern int system (const std::string& cmd_str); + extern OCTAVE_API int system (const std::string& cmd_str); - extern std::string getcwd (void); + extern OCTAVE_API std::string getcwd (void); - extern int chdir (const std::string&); + extern OCTAVE_API int chdir (const std::string&); - extern bool get_dirlist (const std::string& dirname, string_vector& dirlist, - std::string& msg); + extern OCTAVE_API bool + get_dirlist (const std::string& dirname, string_vector& dirlist, + std::string& msg); - extern std::FILE * fopen (const std::string& name, const std::string& mode); + extern OCTAVE_API std::FILE * + fopen (const std::string& name, const std::string& mode); - extern std::fstream fstream (const std::string& name, - const std::ios::openmode mode = - std::ios::in | std::ios::out); + extern OCTAVE_API std::fstream + fstream (const std::string& name, + const std::ios::openmode mode = std::ios::in | std::ios::out); - extern std::ifstream ifstream (const std::string& name, - const std::ios::openmode mode = std::ios::in); + extern OCTAVE_API std::ifstream + ifstream (const std::string& name, + const std::ios::openmode mode = std::ios::in); - extern std::ofstream ofstream (const std::string& name, - const std::ios::openmode mode = std::ios::out); + extern OCTAVE_API std::ofstream + ofstream (const std::string& name, + const std::ios::openmode mode = std::ios::out); - extern void putenv_wrapper (const std::string& name, - const std::string& value); + extern OCTAVE_API void + putenv_wrapper (const std::string& name, const std::string& value); - extern std::string getenv_wrapper (const std::string&); + extern OCTAVE_API std::string getenv_wrapper (const std::string&); - extern int unsetenv_wrapper (const std::string&); + extern OCTAVE_API int unsetenv_wrapper (const std::string&); + + extern OCTAVE_API std::wstring u8_to_wstring (const std::string&); - extern std::wstring u8_to_wstring (const std::string&); + extern OCTAVE_API std::string u8_from_wstring (const std::wstring&); - extern std::string u8_from_wstring (const std::wstring&); - - extern std::string get_ASCII_filename (const std::string& long_file_name, - const bool allow_locale = false); + extern OCTAVE_API std::string + get_ASCII_filename (const std::string& long_file_name, + const bool allow_locale = false); } } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/system/lo-sysinfo.h --- a/liboctave/system/lo-sysinfo.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/system/lo-sysinfo.h Wed Dec 16 01:05:17 2020 -0500 @@ -34,9 +34,9 @@ { namespace sys { - extern std::string blas_version (void); + extern OCTAVE_API std::string blas_version (void); - extern std::string lapack_version (void); + extern OCTAVE_API std::string lapack_version (void); } } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/system/mach-info.h --- a/liboctave/system/mach-info.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/system/mach-info.h Wed Dec 16 01:05:17 2020 -0500 @@ -44,15 +44,15 @@ flt_fmt_ieee_big_endian = 2, }; - float_format native_float_format (void); + extern OCTAVE_API float_format native_float_format (void); - bool words_big_endian (void); + extern OCTAVE_API bool words_big_endian (void); - bool words_little_endian (void); + extern OCTAVE_API bool words_little_endian (void); - float_format string_to_float_format (const std::string&); + extern OCTAVE_API float_format string_to_float_format (const std::string&); - std::string float_format_as_string (float_format); + extern OCTAVE_API std::string float_format_as_string (float_format); } } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/system/oct-time.h --- a/liboctave/system/oct-time.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/system/oct-time.h Wed Dec 16 01:05:17 2020 -0500 @@ -449,6 +449,7 @@ }; class + OCTAVE_API resource_usage { public: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/util/action-container.cc --- a/liboctave/util/action-container.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/util/action-container.cc Wed Dec 16 01:05:17 2020 -0500 @@ -23,6 +23,10 @@ // //////////////////////////////////////////////////////////////////////// +#if defined (HAVE_CONFIG_H) +# include "config.h" +#endif + #include "action-container.h" #include "cmd-edit.h" diff -r c68edca73b7f -r 9e2c5371c145 liboctave/util/action-container.h --- a/liboctave/util/action-container.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/util/action-container.h Wed Dec 16 01:05:17 2020 -0500 @@ -39,6 +39,7 @@ namespace octave { class + OCTAVE_API action_container { public: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/util/f77-fcn.h --- a/liboctave/util/f77-fcn.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/util/f77-fcn.h Wed Dec 16 01:05:17 2020 -0500 @@ -328,7 +328,7 @@ memcpy (cs, F77_CHAR_ARG_USE (s), F77_CHAR_ARG_LEN_USE (s, len)); \ cs[F77_CHAR_ARG_LEN_USE(s, len)] = '\0' -OCTAVE_NORETURN OCTAVE_API extern +OCTAVE_NORETURN extern OCTAVE_API F77_RET_T F77_FUNC (xstopx, XSTOPX) (F77_CONST_CHAR_ARG_DECL F77_CHAR_ARG_LEN_DECL); diff -r c68edca73b7f -r 9e2c5371c145 liboctave/util/file-info.h --- a/liboctave/util/file-info.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/util/file-info.h Wed Dec 16 01:05:17 2020 -0500 @@ -37,7 +37,9 @@ namespace octave { - class file_info + class + OCTAVE_API + file_info { public: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/util/lo-array-errwarn.h --- a/liboctave/util/lo-array-errwarn.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/util/lo-array-errwarn.h Wed Dec 16 01:05:17 2020 -0500 @@ -41,7 +41,9 @@ // Typically, this should be caught after any call to // octave_value_list::index_vector() - class index_exception : public execution_exception + class + OCTAVE_API + index_exception : public execution_exception { public: @@ -108,57 +110,57 @@ std::string m_var; }; - OCTAVE_NORETURN OCTAVE_API extern void + OCTAVE_NORETURN extern OCTAVE_API void err_nan_to_logical_conversion (void); - OCTAVE_NORETURN OCTAVE_API extern void + OCTAVE_NORETURN extern OCTAVE_API void err_nan_to_character_conversion (void); - OCTAVE_NORETURN OCTAVE_API extern void + OCTAVE_NORETURN extern OCTAVE_API void err_nonconformant (const char *op, octave_idx_type op1_len, octave_idx_type op2_len); - OCTAVE_NORETURN OCTAVE_API extern void + OCTAVE_NORETURN extern OCTAVE_API void err_nonconformant (const char *op, octave_idx_type op1_nr, octave_idx_type op1_nc, octave_idx_type op2_nr, octave_idx_type op2_nc); - OCTAVE_NORETURN OCTAVE_API extern void + OCTAVE_NORETURN extern OCTAVE_API void err_nonconformant (const char *op, const dim_vector& op1_dims, const dim_vector& op2_dims); - OCTAVE_NORETURN OCTAVE_API extern void + OCTAVE_NORETURN extern OCTAVE_API void err_index_out_of_range (int ndims, int dim, octave_idx_type idx, octave_idx_type ext, const dim_vector& dv); OCTAVE_DEPRECATED (6, "use err_index_out_of_range (int, int, octave_idx_type, octave_idx_type, const dim_vector&) instead") - OCTAVE_NORETURN OCTAVE_API extern void + OCTAVE_NORETURN extern OCTAVE_API void err_index_out_of_range (int ndims, int dim, octave_idx_type idx, octave_idx_type ext); - OCTAVE_NORETURN OCTAVE_API extern void + OCTAVE_NORETURN extern OCTAVE_API void err_del_index_out_of_range (bool is1d, octave_idx_type iext, octave_idx_type ext); - OCTAVE_NORETURN OCTAVE_API extern void + OCTAVE_NORETURN extern OCTAVE_API void err_invalid_index (double n, octave_idx_type nd = 0, octave_idx_type dim = 0, const std::string& var = ""); - OCTAVE_NORETURN OCTAVE_API extern void + OCTAVE_NORETURN extern OCTAVE_API void err_invalid_index (octave_idx_type n, octave_idx_type nd = 0, octave_idx_type dim = 0, const std::string& var = ""); - OCTAVE_NORETURN OCTAVE_API extern void + OCTAVE_NORETURN extern OCTAVE_API void err_invalid_index (const std::string& idx, octave_idx_type nd = 0, octave_idx_type dim = 0, const std::string& var = ""); - OCTAVE_NORETURN OCTAVE_API extern void + OCTAVE_NORETURN extern OCTAVE_API void err_invalid_resize (void); - OCTAVE_API extern void + extern OCTAVE_API void warn_singular_matrix (double rcond = 0.0); } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/util/lo-error.h --- a/liboctave/util/lo-error.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/util/lo-error.h Wed Dec 16 01:05:17 2020 -0500 @@ -57,30 +57,30 @@ /* Would be nice to make these pointers private, but we want to share them among all the liboctave classes. */ OCTAVE_FORMAT_PRINTF (1, 2) -OCTAVE_NORETURN OCTAVE_API extern liboctave_error_handler +OCTAVE_NORETURN extern OCTAVE_API liboctave_error_handler current_liboctave_error_handler; OCTAVE_FORMAT_PRINTF (2, 3) -OCTAVE_NORETURN OCTAVE_API extern liboctave_error_with_id_handler +OCTAVE_NORETURN extern OCTAVE_API liboctave_error_with_id_handler current_liboctave_error_with_id_handler; OCTAVE_FORMAT_PRINTF (1, 2) -OCTAVE_API extern liboctave_warning_handler current_liboctave_warning_handler; +extern OCTAVE_API liboctave_warning_handler current_liboctave_warning_handler; OCTAVE_FORMAT_PRINTF (2, 3) -OCTAVE_API extern liboctave_warning_with_id_handler +extern OCTAVE_API liboctave_warning_with_id_handler current_liboctave_warning_with_id_handler; -OCTAVE_API extern void +extern OCTAVE_API void set_liboctave_error_handler (OCTAVE_NORETURN liboctave_error_handler f); -OCTAVE_API extern void +extern OCTAVE_API void set_liboctave_error_with_id_handler (OCTAVE_NORETURN liboctave_error_with_id_handler f); -OCTAVE_API extern void +extern OCTAVE_API void set_liboctave_warning_handler (liboctave_warning_handler f); -OCTAVE_API extern void +extern OCTAVE_API void set_liboctave_warning_with_id_handler (liboctave_warning_with_id_handler f); #if defined (__cplusplus) diff -r c68edca73b7f -r 9e2c5371c145 liboctave/util/lo-hash.h --- a/liboctave/util/lo-hash.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/util/lo-hash.h Wed Dec 16 01:05:17 2020 -0500 @@ -36,28 +36,29 @@ { typedef void * (hash_fptr) (const char *buffer, size_t len, void *res); - std::string + extern OCTAVE_API std::string hash (hash_fptr hash_fcn, const std::string& str, int result_buf_len); - int md2_digest_size (void); - int md4_digest_size (void); - int md5_digest_size (void); - int sha1_digest_size (void); - int sha224_digest_size (void); - int sha256_digest_size (void); - int sha384_digest_size (void); - int sha512_digest_size (void); + extern OCTAVE_API int md2_digest_size (void); + extern OCTAVE_API int md4_digest_size (void); + extern OCTAVE_API int md5_digest_size (void); + extern OCTAVE_API int sha1_digest_size (void); + extern OCTAVE_API int sha224_digest_size (void); + extern OCTAVE_API int sha256_digest_size (void); + extern OCTAVE_API int sha384_digest_size (void); + extern OCTAVE_API int sha512_digest_size (void); - std::string md2_hash (const std::string& str); - std::string md4_hash (const std::string& str); - std::string md5_hash (const std::string& str); - std::string sha1_hash (const std::string& str); - std::string sha224_hash (const std::string& str); - std::string sha256_hash (const std::string& str); - std::string sha384_hash (const std::string& str); - std::string sha512_hash (const std::string& str); + extern OCTAVE_API std::string md2_hash (const std::string& str); + extern OCTAVE_API std::string md4_hash (const std::string& str); + extern OCTAVE_API std::string md5_hash (const std::string& str); + extern OCTAVE_API std::string sha1_hash (const std::string& str); + extern OCTAVE_API std::string sha224_hash (const std::string& str); + extern OCTAVE_API std::string sha256_hash (const std::string& str); + extern OCTAVE_API std::string sha384_hash (const std::string& str); + extern OCTAVE_API std::string sha512_hash (const std::string& str); - std::string hash (const std::string& hash_type, const std::string& str); + extern OCTAVE_API std::string + hash (const std::string& hash_type, const std::string& str); } } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/util/lo-utils.h --- a/liboctave/util/lo-utils.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/util/lo-utils.h Wed Dec 16 01:05:17 2020 -0500 @@ -99,6 +99,7 @@ namespace octave { template + OCTAVE_API T read_value (std::istream& is) { @@ -113,6 +114,7 @@ template <> FloatComplex read_value (std::istream& is); template + OCTAVE_API void write_value (std::ostream& os, const T& value) { @@ -126,16 +128,24 @@ namespace math { - bool int_multiply_overflow (int a, int b); - bool int_multiply_overflow (long int a, long int b); + extern OCTAVE_API bool int_multiply_overflow (int a, int b); + + extern OCTAVE_API bool int_multiply_overflow (long int a, long int b); + #if defined (OCTAVE_HAVE_LONG_LONG_INT) - bool int_multiply_overflow (long long int a, long long int b); + extern OCTAVE_API bool + int_multiply_overflow (long long int a, long long int b); #endif - bool int_multiply_overflow (unsigned int a, unsigned int b); - bool int_multiply_overflow (unsigned long int a, unsigned long int b); + + extern OCTAVE_API bool + int_multiply_overflow (unsigned int a, unsigned int b); + + extern OCTAVE_API bool + int_multiply_overflow (unsigned long int a, unsigned long int b); + #if defined (OCTAVE_HAVE_UNSIGNED_LONG_LONG_INT) - bool int_multiply_overflow (unsigned long long int a, - unsigned long long int b); + extern OCTAVE_API bool + int_multiply_overflow (unsigned long long int a, unsigned long long int b); #endif } } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/util/oct-atomic.h --- a/liboctave/util/oct-atomic.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/util/oct-atomic.h Wed Dec 16 01:05:17 2020 -0500 @@ -32,9 +32,11 @@ extern "C" { #endif - extern octave_idx_type octave_atomic_increment (octave_idx_type *x); + extern OCTAVE_API octave_idx_type + octave_atomic_increment (octave_idx_type *x); - extern octave_idx_type octave_atomic_decrement (octave_idx_type *x); + extern OCTAVE_API octave_idx_type + octave_atomic_decrement (octave_idx_type *x); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/util/oct-glob.h --- a/liboctave/util/oct-glob.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/util/oct-glob.h Wed Dec 16 01:05:17 2020 -0500 @@ -34,14 +34,14 @@ { namespace sys { - extern bool + extern OCTAVE_API bool fnmatch (const string_vector& pat, const std::string& str, int fnmatch_flags); - extern string_vector + extern OCTAVE_API string_vector glob (const string_vector&); - extern string_vector + extern OCTAVE_API string_vector windows_glob (const string_vector&); } } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/util/oct-inttypes.cc --- a/liboctave/util/oct-inttypes.cc Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/util/oct-inttypes.cc Wed Dec 16 01:05:17 2020 -0500 @@ -793,7 +793,7 @@ } #define INSTANTIATE_INTTYPE(T) \ - template class OCTAVE_API octave_int; \ + template class octave_int; \ \ template OCTAVE_API octave_int \ pow (const octave_int&, const octave_int&); \ diff -r c68edca73b7f -r 9e2c5371c145 liboctave/util/oct-inttypes.h --- a/liboctave/util/oct-inttypes.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/util/oct-inttypes.h Wed Dec 16 01:05:17 2020 -0500 @@ -790,7 +790,7 @@ { }; template -class +class OCTAVE_API octave_int : public octave_int_base { public: diff -r c68edca73b7f -r 9e2c5371c145 liboctave/util/oct-sparse.h --- a/liboctave/util/oct-sparse.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/util/oct-sparse.h Wed Dec 16 01:05:17 2020 -0500 @@ -171,16 +171,16 @@ typedef int suitesparse_integer; # endif - extern suitesparse_integer * + extern OCTAVE_API suitesparse_integer * to_suitesparse_intptr (octave_idx_type *i); - extern const suitesparse_integer * + extern OCTAVE_API const suitesparse_integer * to_suitesparse_intptr (const octave_idx_type *i); - extern octave_idx_type* + extern OCTAVE_API octave_idx_type* to_octave_idx_type_ptr (suitesparse_integer *i); - extern const octave_idx_type* + extern OCTAVE_API const octave_idx_type* to_octave_idx_type_ptr (const suitesparse_integer *i); } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/util/oct-string.h --- a/liboctave/util/oct-string.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/util/oct-string.h Wed Dec 16 01:05:17 2020 -0500 @@ -57,7 +57,9 @@ //! char array, will still return false. template - bool strcmp (const T& str_a, const T& str_b); + OCTAVE_API + bool + strcmp (const T& str_a, const T& str_b); //! True if string is the same as character sequence. //! @@ -70,7 +72,9 @@ //! is considered to be a row vector. template - bool strcmp (const T& str_a, const typename T::value_type *str_b); + OCTAVE_API + bool + strcmp (const T& str_a, const typename T::value_type *str_b); //! True if strings are the same, ignoring case. //! @@ -81,7 +85,9 @@ //! char array, will still return false. template - bool strcmpi (const T& str_a, const T& str_b); + OCTAVE_API + bool + strcmpi (const T& str_a, const T& str_b); //! True if string is the same as character sequence, ignoring case. //! @@ -91,7 +97,9 @@ //! is considered to be a row vector. template - bool strcmpi (const T& str_a, const typename T::value_type *str_b); + OCTAVE_API + bool + strcmpi (const T& str_a, const typename T::value_type *str_b); //! True if the first N characters are the same. //! @@ -102,13 +110,17 @@ //! a column vector of the same still return true. template - bool strncmp (const T& str_a, const T& str_b, - const typename T::size_type n); + OCTAVE_API + bool + strncmp (const T& str_a, const T& str_b, + const typename T::size_type n); //! True if the first N characters are the same. template - bool strncmp (const T& str_a, const typename T::value_type *str_b, - const typename T::size_type n); + OCTAVE_API + bool + strncmp (const T& str_a, const typename T::value_type *str_b, + const typename T::size_type n); //! True if the first N characters are the same, ignoring case. //! @@ -119,13 +131,17 @@ //! a column vector of the same still return true. template - bool strncmpi (const T& str_a, const T& str_b, - const typename T::size_type n); + OCTAVE_API + bool + strncmpi (const T& str_a, const T& str_b, + const typename T::size_type n); //! True if the first N characters are the same, ignoring case. template - bool strncmpi (const T& str_a, const typename T::value_type *str_b, - const typename T::size_type n); + OCTAVE_API + bool + strncmpi (const T& str_a, const typename T::value_type *str_b, + const typename T::size_type n); extern OCTAVE_API Complex str2double (const std::string& str_arg); diff -r c68edca73b7f -r 9e2c5371c145 liboctave/util/quit.h --- a/liboctave/util/quit.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/util/quit.h Wed Dec 16 01:05:17 2020 -0500 @@ -44,7 +44,9 @@ namespace octave { - class frame_info + class + OCTAVE_API + frame_info { public: @@ -89,7 +91,9 @@ && a.column () == b.column ()); } - class execution_exception : public std::runtime_error + class + OCTAVE_API + execution_exception : public std::runtime_error { public: @@ -158,7 +162,9 @@ stack_info_type m_stack_info; }; - class exit_exception : public std::exception + class + OCTAVE_API + exit_exception : public std::exception { public: @@ -186,7 +192,9 @@ bool m_safe_to_return; }; - class interrupt_exception : public std::exception + class + OCTAVE_API + interrupt_exception : public std::exception { public: @@ -222,26 +230,26 @@ 0: no interrupt pending < 0: handling interrupt */ -OCTAVE_API extern sig_atomic_t octave_interrupt_state; +extern OCTAVE_API sig_atomic_t octave_interrupt_state; OCTAVE_DEPRECATED (6, "'octave_exception_state' is an obsolete internal variable; any uses should be removed") -OCTAVE_API extern sig_atomic_t octave_exception_state; +extern OCTAVE_API sig_atomic_t octave_exception_state; -OCTAVE_API extern volatile sig_atomic_t octave_signal_caught; +extern OCTAVE_API volatile sig_atomic_t octave_signal_caught; -OCTAVE_API extern void octave_handle_signal (void); +extern OCTAVE_API void octave_handle_signal (void); OCTAVE_DEPRECATED (6, "use 'throw octave::interrupt_exception' instead") -OCTAVE_NORETURN OCTAVE_API extern void octave_throw_interrupt_exception (void); +OCTAVE_NORETURN extern OCTAVE_API void octave_throw_interrupt_exception (void); OCTAVE_DEPRECATED (6, "use 'throw octave::execution_exception' instead") -OCTAVE_NORETURN OCTAVE_API extern void octave_throw_execution_exception (void); +OCTAVE_NORETURN extern OCTAVE_API void octave_throw_execution_exception (void); OCTAVE_DEPRECATED (6, "use 'throw std::bad_alloc' instead") -OCTAVE_NORETURN OCTAVE_API extern void octave_throw_bad_alloc (void); +OCTAVE_NORETURN extern OCTAVE_API void octave_throw_bad_alloc (void); OCTAVE_DEPRECATED (6, "use 'throw' instead") -OCTAVE_API extern void octave_rethrow_exception (void); +extern OCTAVE_API void octave_rethrow_exception (void); #if defined (__cplusplus) diff -r c68edca73b7f -r 9e2c5371c145 liboctave/version.in.h --- a/liboctave/version.in.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/version.in.h Wed Dec 16 01:05:17 2020 -0500 @@ -56,22 +56,22 @@ #include -extern OCTINTERP_API std::string octave_www_statement (bool html = false); +extern OCTAVE_API std::string octave_www_statement (bool html = false); -extern OCTINTERP_API std::string octave_contrib_statement (bool html = false); +extern OCTAVE_API std::string octave_contrib_statement (bool html = false); -extern OCTINTERP_API std::string octave_bugs_statement (bool html = false); +extern OCTAVE_API std::string octave_bugs_statement (bool html = false); -extern OCTINTERP_API std::string octave_name_version_and_copyright (void); +extern OCTAVE_API std::string octave_name_version_and_copyright (void); -extern OCTINTERP_API std::string +extern OCTAVE_API std::string octave_name_version_copyright_copying_and_warranty (bool html = false, const std::string& extra_info = ""); -extern OCTINTERP_API std::string +extern OCTAVE_API std::string octave_name_version_copyright_copying_warranty_and_bugs (bool html = false, const std::string& extra_info = ""); -extern OCTINTERP_API std::string octave_startup_message (bool html = false); +extern OCTAVE_API std::string octave_startup_message (bool html = false); #endif diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/areadlink-wrapper.h --- a/liboctave/wrappers/areadlink-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/areadlink-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -30,8 +30,7 @@ extern "C" { #endif -extern char * -octave_areadlink_wrapper (const char *name); +extern OCTAVE_API char * octave_areadlink_wrapper (const char *name); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/async-system-wrapper.h --- a/liboctave/wrappers/async-system-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/async-system-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -32,7 +32,7 @@ extern "C" { #endif -extern pid_t octave_async_system_wrapper (const char *cmd); +extern OCTAVE_API pid_t octave_async_system_wrapper (const char *cmd); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/base64-wrappers.h --- a/liboctave/wrappers/base64-wrappers.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/base64-wrappers.h Wed Dec 16 01:05:17 2020 -0500 @@ -37,10 +37,10 @@ extern "C" { #endif -extern size_t +extern OCTAVE_API size_t octave_base64_encode_alloc_wrapper (const char *in, size_t inlen, char **out); -extern bool +extern OCTAVE_API bool octave_base64_decode_alloc_wrapper (const char *in, size_t inlen, char **out, size_t *outlen); diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/canonicalize-file-name-wrapper.h --- a/liboctave/wrappers/canonicalize-file-name-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/canonicalize-file-name-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -30,7 +30,8 @@ extern "C" { #endif -extern char * octave_canonicalize_file_name_wrapper (const char *name); +extern OCTAVE_API char * +octave_canonicalize_file_name_wrapper (const char *name); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/dirent-wrappers.h --- a/liboctave/wrappers/dirent-wrappers.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/dirent-wrappers.h Wed Dec 16 01:05:17 2020 -0500 @@ -34,15 +34,15 @@ extern "C" { #endif -extern void * octave_opendir_wrapper (const char *dname); +extern OCTAVE_API void * octave_opendir_wrapper (const char *dname); -extern char * octave_readdir_wrapper (void *dir); +extern OCTAVE_API char * octave_readdir_wrapper (void *dir); -extern void octave_rewinddir_wrapper (void *dir); +extern OCTAVE_API void octave_rewinddir_wrapper (void *dir); -extern int octave_closedir_wrapper (void *dir); +extern OCTAVE_API int octave_closedir_wrapper (void *dir); -extern unsigned int octave_name_max_wrapper (void); +extern OCTAVE_API unsigned int octave_name_max_wrapper (void); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/fcntl-wrappers.h --- a/liboctave/wrappers/fcntl-wrappers.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/fcntl-wrappers.h Wed Dec 16 01:05:17 2020 -0500 @@ -32,39 +32,40 @@ extern "C" { #endif -extern int octave_fcntl_wrapper (int fd, int cmd, int arg); - -extern int octave_open_wrapper (const char *nm, int flags, mode_t mode); +extern OCTAVE_API int octave_fcntl_wrapper (int fd, int cmd, int arg); -extern int octave_f_dupfd_wrapper (void); +extern OCTAVE_API int +octave_open_wrapper (const char *nm, int flags, mode_t mode); -extern int octave_f_getfd_wrapper (void); +extern OCTAVE_API int octave_f_dupfd_wrapper (void); -extern int octave_f_getfl_wrapper (void); +extern OCTAVE_API int octave_f_getfd_wrapper (void); -extern int octave_f_setfd_wrapper (void); +extern OCTAVE_API int octave_f_getfl_wrapper (void); -extern int octave_f_setfl_wrapper (void); +extern OCTAVE_API int octave_f_setfd_wrapper (void); -extern int octave_o_append_wrapper (void); +extern OCTAVE_API int octave_f_setfl_wrapper (void); + +extern OCTAVE_API int octave_o_append_wrapper (void); -extern int octave_o_async_wrapper (void); +extern OCTAVE_API int octave_o_async_wrapper (void); -extern int octave_o_creat_wrapper (void); +extern OCTAVE_API int octave_o_creat_wrapper (void); -extern int octave_o_excl_wrapper (void); +extern OCTAVE_API int octave_o_excl_wrapper (void); -extern int octave_o_nonblock_wrapper (void); +extern OCTAVE_API int octave_o_nonblock_wrapper (void); -extern int octave_o_rdonly_wrapper (void); +extern OCTAVE_API int octave_o_rdonly_wrapper (void); -extern int octave_o_rdwr_wrapper (void); +extern OCTAVE_API int octave_o_rdwr_wrapper (void); -extern int octave_o_sync_wrapper (void); +extern OCTAVE_API int octave_o_sync_wrapper (void); -extern int octave_o_trunc_wrapper (void); +extern OCTAVE_API int octave_o_trunc_wrapper (void); -extern int octave_o_wronly_wrapper (void); +extern OCTAVE_API int octave_o_wronly_wrapper (void); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/filepos-wrappers.h --- a/liboctave/wrappers/filepos-wrappers.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/filepos-wrappers.h Wed Dec 16 01:05:17 2020 -0500 @@ -38,9 +38,10 @@ extern "C" { #endif -extern int octave_fseeko_wrapper (FILE *fp, off_t offset, int whence); +extern OCTAVE_API int +octave_fseeko_wrapper (FILE *fp, off_t offset, int whence); -extern off_t octave_ftello_wrapper (FILE *fp); +extern OCTAVE_API off_t octave_ftello_wrapper (FILE *fp); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/fpucw-wrappers.h --- a/liboctave/wrappers/fpucw-wrappers.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/fpucw-wrappers.h Wed Dec 16 01:05:17 2020 -0500 @@ -30,13 +30,13 @@ extern "C" { #endif -extern void octave_set_default_fpucw (void); +extern OCTAVE_API void octave_set_default_fpucw (void); // unsigned int must match the actual type of fpucw_t. -extern unsigned int octave_begin_long_double_rounding (void); +extern OCTAVE_API unsigned int octave_begin_long_double_rounding (void); -extern void octave_end_long_double_rounding (unsigned int); +extern OCTAVE_API void octave_end_long_double_rounding (unsigned int); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/gen-tempname-wrapper.h --- a/liboctave/wrappers/gen-tempname-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/gen-tempname-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -30,7 +30,7 @@ extern "C" { #endif -extern int octave_gen_tempname_wrapper (char *tmpl); +extern OCTAVE_API int octave_gen_tempname_wrapper (char *tmpl); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/getopt-wrapper.h --- a/liboctave/wrappers/getopt-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/getopt-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -42,15 +42,15 @@ #define octave_required_arg 1 #define octave_optional_arg 2 -extern int +extern OCTAVE_API int octave_getopt_long_wrapper (int argc, char **argv, const char *shortopts, const struct octave_getopt_options *longopts, int *longind); -extern char * octave_optarg_wrapper (void); +extern OCTAVE_API char * octave_optarg_wrapper (void); -extern int octave_optind_wrapper (void); +extern OCTAVE_API int octave_optind_wrapper (void); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/glob-wrappers.h --- a/liboctave/wrappers/glob-wrappers.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/glob-wrappers.h Wed Dec 16 01:05:17 2020 -0500 @@ -30,34 +30,34 @@ extern "C" { #endif -extern void * octave_create_glob_info_struct (void); +extern OCTAVE_API void * octave_create_glob_info_struct (void); // Does not call globfree. -extern void octave_destroy_glob_info_struct (void *glob_info); +extern OCTAVE_API void octave_destroy_glob_info_struct (void *glob_info); // We don't need the error function pointer that the system glob // function allows. -extern int +extern OCTAVE_API int octave_glob_wrapper (const char *pattern, int flags, void *glob_info); -extern int octave_glob_num_matches (void *glob_info); +extern OCTAVE_API int octave_glob_num_matches (void *glob_info); -extern char ** octave_glob_match_list (void *glob_info); +extern OCTAVE_API char ** octave_glob_match_list (void *glob_info); -extern void octave_globfree_wrapper (void *glob_info); +extern OCTAVE_API void octave_globfree_wrapper (void *glob_info); -extern int octave_glob_nosort_wrapper (void); +extern OCTAVE_API int octave_glob_nosort_wrapper (void); -extern int +extern OCTAVE_API int octave_fnmatch_wrapper (const char *pattern, const char *name, int flags); -extern int octave_fnm_nomatch_wrapper (void); +extern OCTAVE_API int octave_fnm_nomatch_wrapper (void); -extern int octave_fnm_pathname_wrapper (void); +extern OCTAVE_API int octave_fnm_pathname_wrapper (void); -extern int octave_fnm_noescape_wrapper (void); +extern OCTAVE_API int octave_fnm_noescape_wrapper (void); -extern int octave_fnm_period_wrapper (void); +extern OCTAVE_API int octave_fnm_period_wrapper (void); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/hash-wrappers.h --- a/liboctave/wrappers/hash-wrappers.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/hash-wrappers.h Wed Dec 16 01:05:17 2020 -0500 @@ -36,37 +36,37 @@ extern "C" { #endif -extern int octave_md2_digest_size (void); -extern int octave_md4_digest_size (void); -extern int octave_md5_digest_size (void); -extern int octave_sha1_digest_size (void); -extern int octave_sha224_digest_size (void); -extern int octave_sha256_digest_size (void); -extern int octave_sha384_digest_size (void); -extern int octave_sha512_digest_size (void); +extern OCTAVE_API int octave_md2_digest_size (void); +extern OCTAVE_API int octave_md4_digest_size (void); +extern OCTAVE_API int octave_md5_digest_size (void); +extern OCTAVE_API int octave_sha1_digest_size (void); +extern OCTAVE_API int octave_sha224_digest_size (void); +extern OCTAVE_API int octave_sha256_digest_size (void); +extern OCTAVE_API int octave_sha384_digest_size (void); +extern OCTAVE_API int octave_sha512_digest_size (void); -extern void * +extern OCTAVE_API void * octave_md2_buffer_wrapper (const char *buf, size_t len, void *res); -extern void * +extern OCTAVE_API void * octave_md4_buffer_wrapper (const char *buf, size_t len, void *res); -extern void * +extern OCTAVE_API void * octave_md5_buffer_wrapper (const char *buf, size_t len, void *res); -extern void * +extern OCTAVE_API void * octave_sha1_buffer_wrapper (const char *buf, size_t len, void *res); -extern void * +extern OCTAVE_API void * octave_sha224_buffer_wrapper (const char *buf, size_t len, void *res); -extern void * +extern OCTAVE_API void * octave_sha256_buffer_wrapper (const char *buf, size_t len, void *res); -extern void * +extern OCTAVE_API void * octave_sha384_buffer_wrapper (const char *buf, size_t len, void *res); -extern void * +extern OCTAVE_API void * octave_sha512_buffer_wrapper (const char *buf, size_t len, void *res); #if defined __cplusplus diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/iconv-wrappers.h --- a/liboctave/wrappers/iconv-wrappers.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/iconv-wrappers.h Wed Dec 16 01:05:17 2020 -0500 @@ -30,11 +30,10 @@ extern "C" { #endif -extern void * +extern OCTAVE_API void * octave_iconv_open_wrapper (const char *tocode, const char *fromcode); -extern int -octave_iconv_close_wrapper (void *cd); +extern OCTAVE_API int octave_iconv_close_wrapper (void *cd); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/intprops-wrappers.h --- a/liboctave/wrappers/intprops-wrappers.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/intprops-wrappers.h Wed Dec 16 01:05:17 2020 -0500 @@ -35,24 +35,26 @@ // These functions return 1 if the operation between the input arguments would // overflow. -extern int octave_i_multiply_overflow_wrapper (int a, int b); +extern OCTAVE_API int octave_i_multiply_overflow_wrapper (int a, int b); -extern int octave_li_multiply_overflow_wrapper (long int a, long int b); +extern OCTAVE_API int +octave_li_multiply_overflow_wrapper (long int a, long int b); # if defined (OCTAVE_HAVE_LONG_LONG_INT) -extern int octave_lli_multiply_overflow_wrapper (long long int a, - long long int b); +extern OCTAVE_API int +octave_lli_multiply_overflow_wrapper (long long int a, long long int b); # endif -extern int octave_ui_multiply_overflow_wrapper (unsigned int a, - unsigned int b); +extern OCTAVE_API int +octave_ui_multiply_overflow_wrapper (unsigned int a, unsigned int b); -extern int octave_uli_multiply_overflow_wrapper (unsigned long int a, - unsigned long int b); +extern OCTAVE_API int +octave_uli_multiply_overflow_wrapper (unsigned long int a, unsigned long int b); # if defined (OCTAVE_HAVE_UNSIGNED_LONG_LONG_INT) -extern int octave_ulli_multiply_overflow_wrapper (unsigned long long int a, - unsigned long long int b); +extern OCTAVE_API int +octave_ulli_multiply_overflow_wrapper (unsigned long long int a, + unsigned long long int b); # endif #if defined __cplusplus diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/localcharset-wrapper.h --- a/liboctave/wrappers/localcharset-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/localcharset-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -30,7 +30,7 @@ extern "C" { #endif -extern const char * octave_locale_charset_wrapper (void); +extern OCTAVE_API const char * octave_locale_charset_wrapper (void); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/math-wrappers.h --- a/liboctave/wrappers/math-wrappers.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/math-wrappers.h Wed Dec 16 01:05:17 2020 -0500 @@ -30,11 +30,9 @@ extern "C" { #endif -double -octave_frexp_wrapper (double x, int *expptr); +extern OCTAVE_API double octave_frexp_wrapper (double x, int *expptr); -float -octave_frexpf_wrapper (float x, int *expptr); +extern OCTAVE_API float octave_frexpf_wrapper (float x, int *expptr); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/mkostemp-wrapper.h --- a/liboctave/wrappers/mkostemp-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/mkostemp-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -30,7 +30,7 @@ extern "C" { #endif -extern int octave_mkostemp_wrapper (char *tmpl); +extern OCTAVE_API int octave_mkostemp_wrapper (char *tmpl); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/mkostemps-wrapper.h --- a/liboctave/wrappers/mkostemps-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/mkostemps-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -30,7 +30,7 @@ extern "C" { #endif -extern int octave_mkostemps_wrapper (char *tmpl, int suffixlen); +extern OCTAVE_API int octave_mkostemps_wrapper (char *tmpl, int suffixlen); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/module.mk --- a/liboctave/wrappers/module.mk Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/module.mk Wed Dec 16 01:05:17 2020 -0500 @@ -90,6 +90,8 @@ %canon_reldir%_libwrappers_la_SOURCES = $(WRAPPERS_SRC) %canon_reldir%_libwrappers_la_CPPFLAGS = \ + @OCTAVE_DLL_DEFS@ \ + @EXTERNAL_DLL_DEFS@ \ -Ilibgnu -I$(srcdir)/libgnu liboctave_liboctave_la_LIBADD += %reldir%/libwrappers.la diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/nanosleep-wrapper.h --- a/liboctave/wrappers/nanosleep-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/nanosleep-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -36,7 +36,7 @@ extern "C" { #endif -extern int +extern OCTAVE_API int octave_nanosleep_wrapper (const struct timespec *requested, struct timespec *remaining); diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/nproc-wrapper.h --- a/liboctave/wrappers/nproc-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/nproc-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -37,7 +37,7 @@ OCTAVE_NPROC_CURRENT_OVERRIDABLE }; -extern unsigned long int +extern OCTAVE_API unsigned long int octave_num_processors_wrapper (enum octave_nproc_query); #if defined __cplusplus diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/octave-popen2.h --- a/liboctave/wrappers/octave-popen2.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/octave-popen2.h Wed Dec 16 01:05:17 2020 -0500 @@ -36,7 +36,7 @@ extern "C" { #endif -extern pid_t +extern OCTAVE_API pid_t octave_popen2 (const char *cmd, char *const *args, bool sync_mode, int *fildes, const char **errmsg); diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/putenv-wrapper.h --- a/liboctave/wrappers/putenv-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/putenv-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -30,7 +30,7 @@ extern "C" { #endif -extern int octave_putenv_wrapper (char *str); +extern OCTAVE_API int octave_putenv_wrapper (char *str); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/set-program-name-wrapper.h --- a/liboctave/wrappers/set-program-name-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/set-program-name-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -30,7 +30,8 @@ extern "C" { #endif -extern const char * octave_set_program_name_wrapper (const char *pname); +extern OCTAVE_API const char * +octave_set_program_name_wrapper (const char *pname); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/signal-wrappers.h --- a/liboctave/wrappers/signal-wrappers.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/signal-wrappers.h Wed Dec 16 01:05:17 2020 -0500 @@ -38,66 +38,66 @@ typedef void octave_sig_handler (int); -extern int octave_kill_wrapper (pid_t pid, int signum); +extern OCTAVE_API int octave_kill_wrapper (pid_t pid, int signum); -extern char * octave_strsignal_wrapper (int signum); +extern OCTAVE_API char * octave_strsignal_wrapper (int signum); -extern bool octave_have_kill (void); +extern OCTAVE_API bool octave_have_kill (void); -extern bool octave_get_sig_number (const char *signame, int *signum); +extern OCTAVE_API bool octave_get_sig_number (const char *signame, int *signum); -octave_sig_handler * +extern OCTAVE_API octave_sig_handler * octave_set_signal_handler_internal (int sig, octave_sig_handler *handler, bool restart_syscalls); -extern octave_sig_handler * +extern OCTAVE_API octave_sig_handler * octave_set_signal_handler_by_name (const char *signame, octave_sig_handler *handler, bool restart_syscalls); -extern octave_sig_handler * +extern OCTAVE_API octave_sig_handler * octave_set_default_signal_handler (int sig); -extern octave_sig_handler * +extern OCTAVE_API octave_sig_handler * octave_set_default_signal_handler_by_name (const char *signame); -extern int octave_num_signals (void); +extern OCTAVE_API int octave_num_signals (void); -extern void * octave_block_child (void); +extern OCTAVE_API void * octave_block_child (void); -extern void octave_unblock_child (void *context); +extern OCTAVE_API void octave_unblock_child (void *context); -extern void octave_block_interrupt_signal (void); +extern OCTAVE_API void octave_block_interrupt_signal (void); -extern void octave_unblock_interrupt_signal (void); +extern OCTAVE_API void octave_unblock_interrupt_signal (void); -extern void octave_block_signal_by_name (const char *signame); +extern OCTAVE_API void octave_block_signal_by_name (const char *signame); -extern void octave_unblock_signal_by_name (const char *signame); +extern OCTAVE_API void octave_unblock_signal_by_name (const char *signame); -extern void octave_save_signal_mask (void); +extern OCTAVE_API void octave_save_signal_mask (void); -extern void octave_restore_signal_mask (void); +extern OCTAVE_API void octave_restore_signal_mask (void); -extern void * octave_alloc_signal_mask (void); +extern OCTAVE_API void * octave_alloc_signal_mask (void); -extern void octave_free_signal_mask (void *mask); +extern OCTAVE_API void octave_free_signal_mask (void *mask); -extern void octave_get_signal_mask (void *mask); +extern OCTAVE_API void octave_get_signal_mask (void *mask); -extern void octave_set_signal_mask (void *mask); +extern OCTAVE_API void octave_set_signal_mask (void *mask); -extern void octave_block_async_signals (void); +extern OCTAVE_API void octave_block_async_signals (void); -extern void octave_unblock_async_signals (void); +extern OCTAVE_API void octave_unblock_async_signals (void); -extern int octave_raise_wrapper (int signum); +extern OCTAVE_API int octave_raise_wrapper (int signum); -extern void +extern OCTAVE_API void octave_create_interrupt_watcher_thread (octave_sig_handler *handler); // This can be useful for debugging. -extern void octave_show_sigmask (const char *); +extern OCTAVE_API void octave_show_sigmask (const char *); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/stat-wrappers.h --- a/liboctave/wrappers/stat-wrappers.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/stat-wrappers.h Wed Dec 16 01:05:17 2020 -0500 @@ -39,44 +39,44 @@ extern "C" { #endif -extern int octave_mkdir_wrapper (const char *name, mode_t mode); +extern OCTAVE_API int octave_mkdir_wrapper (const char *name, mode_t mode); -extern int octave_mkfifo_wrapper (const char *name, mode_t mode); +extern OCTAVE_API int octave_mkfifo_wrapper (const char *name, mode_t mode); -extern int octave_umask_wrapper (mode_t mode); +extern OCTAVE_API int octave_umask_wrapper (mode_t mode); -extern int +extern OCTAVE_API int octave_stat_wrapper (const char *fname, mode_t *mode, ino_t *ino, dev_t *dev, nlink_t *nlink, uid_t *uid, gid_t *gid, off_t *size, time_t *atime, time_t *mtime, time_t *ctime, dev_t *rdev, long *blksize, long *blocks); -extern int +extern OCTAVE_API int octave_lstat_wrapper (const char *lname, mode_t *mode, ino_t *ino, dev_t *dev, nlink_t *nlink, uid_t *uid, gid_t *gid, off_t *size, time_t *atime, time_t *mtime, time_t *ctime, dev_t *rdev, long *blksize, long *blocks); -extern int +extern OCTAVE_API int octave_fstat_wrapper (int fid, mode_t *mode, ino_t *ino, dev_t *dev, nlink_t *nlink, uid_t *uid, gid_t *gid, off_t *size, time_t *atime, time_t *mtime, time_t *ctime, dev_t *rdev, long *blksize, long *blocks); -extern bool octave_is_blk_wrapper (mode_t mode); -extern bool octave_is_chr_wrapper (mode_t mode); -extern bool octave_is_dir_wrapper (mode_t mode); -extern bool octave_is_fifo_wrapper (mode_t mode); -extern bool octave_is_lnk_wrapper (mode_t mode); -extern bool octave_is_reg_wrapper (mode_t mode); -extern bool octave_is_sock_wrapper (mode_t mode); +extern OCTAVE_API bool octave_is_blk_wrapper (mode_t mode); +extern OCTAVE_API bool octave_is_chr_wrapper (mode_t mode); +extern OCTAVE_API bool octave_is_dir_wrapper (mode_t mode); +extern OCTAVE_API bool octave_is_fifo_wrapper (mode_t mode); +extern OCTAVE_API bool octave_is_lnk_wrapper (mode_t mode); +extern OCTAVE_API bool octave_is_reg_wrapper (mode_t mode); +extern OCTAVE_API bool octave_is_sock_wrapper (mode_t mode); -extern bool octave_have_struct_stat_st_rdev (void); -extern bool octave_have_struct_stat_st_blksize (void); -extern bool octave_have_struct_stat_st_blocks (void); +extern OCTAVE_API bool octave_have_struct_stat_st_rdev (void); +extern OCTAVE_API bool octave_have_struct_stat_st_blksize (void); +extern OCTAVE_API bool octave_have_struct_stat_st_blocks (void); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/strdup-wrapper.h --- a/liboctave/wrappers/strdup-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/strdup-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -30,7 +30,7 @@ extern "C" { #endif -extern char * octave_strdup_wrapper (const char *str); +extern OCTAVE_API char * octave_strdup_wrapper (const char *str); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/strftime-wrapper.h --- a/liboctave/wrappers/strftime-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/strftime-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -38,7 +38,7 @@ extern "C" { #endif -extern size_t +extern OCTAVE_API size_t octave_strftime_wrapper (char *buf, size_t len, const char *fmt, const struct tm *t); diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/strmode-wrapper.h --- a/liboctave/wrappers/strmode-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/strmode-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -34,7 +34,7 @@ // Expects a buffer with at least 12 characters. -extern void octave_strmode_wrapper (mode_t mode, char *buffer); +extern OCTAVE_API void octave_strmode_wrapper (mode_t mode, char *buffer); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/strptime-wrapper.h --- a/liboctave/wrappers/strptime-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/strptime-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -36,7 +36,7 @@ extern "C" { #endif -extern char * +extern OCTAVE_API char * octave_strptime_wrapper (const char *p, const char *fmt, struct tm *t); #if defined __cplusplus diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/time-wrappers.h --- a/liboctave/wrappers/time-wrappers.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/time-wrappers.h Wed Dec 16 01:05:17 2020 -0500 @@ -36,13 +36,13 @@ extern "C" { #endif -extern int octave_gettimeofday_wrapper (time_t *sec, long *usec); +extern OCTAVE_API int octave_gettimeofday_wrapper (time_t *sec, long *usec); -extern int +extern OCTAVE_API int octave_cpu_time (time_t *usr_sec, time_t *sys_sec, long *usr_usec, long *sys_usec); -extern int +extern OCTAVE_API int octave_getrusage_wrapper (time_t *usr_sec, time_t *sys_sec, long *usr_usec, long *sys_usec, long *maxrss, long *ixrss, long *idrss, @@ -51,7 +51,7 @@ long *msgsnd, long *msgrcv, long *nsignals, long *nvcsw, long *nivcsw); -extern time_t +extern OCTAVE_API time_t octave_mktime_wrapper (struct tm *tp); #if defined __cplusplus diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/tmpfile-wrapper.h --- a/liboctave/wrappers/tmpfile-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/tmpfile-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -39,7 +39,7 @@ // c++11 provides std::tmpfile but it appears to fail on 64-bit // Windows systems. -extern FILE * octave_tmpfile_wrapper (void); +extern OCTAVE_API FILE * octave_tmpfile_wrapper (void); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/uname-wrapper.h --- a/liboctave/wrappers/uname-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/uname-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -30,7 +30,7 @@ extern "C" { #endif -extern int +extern OCTAVE_API int octave_uname_wrapper (char **sysname, char **nodename, char **release, char **version, char **machine); diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/unicase-wrappers.h --- a/liboctave/wrappers/unicase-wrappers.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/unicase-wrappers.h Wed Dec 16 01:05:17 2020 -0500 @@ -30,12 +30,12 @@ extern "C" { #endif -extern uint8_t * +extern OCTAVE_API uint8_t * octave_u8_tolower_wrapper (const uint8_t *s, size_t n, const char *iso639_language, uint8_t *resultbuf, size_t *lengthp); -extern uint8_t * +extern OCTAVE_API uint8_t * octave_u8_toupper_wrapper (const uint8_t *s, size_t n, const char *iso639_language, uint8_t *resultbuf, size_t *lengthp); diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/uniconv-wrappers.h --- a/liboctave/wrappers/uniconv-wrappers.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/uniconv-wrappers.h Wed Dec 16 01:05:17 2020 -0500 @@ -41,27 +41,25 @@ // Since we omit arguments we don't care about in Octave, these aren't // named with the _wrapper suffix. -extern uint8_t * +extern OCTAVE_API uint8_t * octave_u8_conv_from_encoding (const char *fromcode, const char *src, size_t srclen, size_t *lengthp); -extern char * +extern OCTAVE_API char * octave_u8_conv_to_encoding (const char *tocode, const uint8_t *src, size_t srclen, size_t *lengthp); -extern char * +extern OCTAVE_API char * octave_u8_conv_to_encoding_strict (const char *tocode, const uint8_t *src, size_t srclen, size_t *lengthp); -extern char * +extern OCTAVE_API char * octave_u32_conv_to_encoding_strict (const char *tocode, const uint32_t *src, size_t srclen, size_t *lengthp); -extern char * -u8_from_wchar (const wchar_t *wc); +extern OCTAVE_API char * u8_from_wchar (const wchar_t *wc); -extern wchar_t * -u8_to_wchar (const char *u8_char); +extern OCTAVE_API wchar_t * u8_to_wchar (const char *u8_char); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/unictype-wrappers.h --- a/liboctave/wrappers/unictype-wrappers.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/unictype-wrappers.h Wed Dec 16 01:05:17 2020 -0500 @@ -32,41 +32,29 @@ extern "C" { #endif -extern bool -octave_uc_is_alnum_wrapper (ucs4_t uc); +extern OCTAVE_API bool octave_uc_is_alnum_wrapper (ucs4_t uc); -extern bool -octave_uc_is_alpha_wrapper (ucs4_t uc); +extern OCTAVE_API bool octave_uc_is_alpha_wrapper (ucs4_t uc); -extern bool -octave_uc_is_blank_wrapper (ucs4_t uc); +extern OCTAVE_API bool octave_uc_is_blank_wrapper (ucs4_t uc); -extern bool -octave_uc_is_cntrl_wrapper (ucs4_t uc); +extern OCTAVE_API bool octave_uc_is_cntrl_wrapper (ucs4_t uc); -extern bool -octave_uc_is_digit_wrapper (ucs4_t uc); +extern OCTAVE_API bool octave_uc_is_digit_wrapper (ucs4_t uc); -extern bool -octave_uc_is_graph_wrapper (ucs4_t uc); +extern OCTAVE_API bool octave_uc_is_graph_wrapper (ucs4_t uc); -extern bool -octave_uc_is_lower_wrapper (ucs4_t uc); +extern OCTAVE_API bool octave_uc_is_lower_wrapper (ucs4_t uc); -extern bool -octave_uc_is_print_wrapper (ucs4_t uc); +extern OCTAVE_API bool octave_uc_is_print_wrapper (ucs4_t uc); -extern bool -octave_uc_is_punct_wrapper (ucs4_t uc); +extern OCTAVE_API bool octave_uc_is_punct_wrapper (ucs4_t uc); -extern bool -octave_uc_is_space_wrapper (ucs4_t uc); +extern OCTAVE_API bool octave_uc_is_space_wrapper (ucs4_t uc); -extern bool -octave_uc_is_upper_wrapper (ucs4_t uc); +extern OCTAVE_API bool octave_uc_is_upper_wrapper (ucs4_t uc); -extern bool -octave_uc_is_xdigit_wrapper (ucs4_t uc); +extern OCTAVE_API bool octave_uc_is_xdigit_wrapper (ucs4_t uc); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/unistd-wrappers.h --- a/liboctave/wrappers/unistd-wrappers.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/unistd-wrappers.h Wed Dec 16 01:05:17 2020 -0500 @@ -36,73 +36,73 @@ extern "C" { #endif -extern int octave_access_f_ok (void); +extern OCTAVE_API int octave_access_f_ok (void); -extern int octave_access_r_ok (void); +extern OCTAVE_API int octave_access_r_ok (void); -extern int octave_access_w_ok (void); +extern OCTAVE_API int octave_access_w_ok (void); -extern int octave_access_x_ok (void); +extern OCTAVE_API int octave_access_x_ok (void); -extern int octave_access_wrapper (const char *nm, int mode); +extern OCTAVE_API int octave_access_wrapper (const char *nm, int mode); -extern int octave_chdir_wrapper (const char *nm); +extern OCTAVE_API int octave_chdir_wrapper (const char *nm); -extern int octave_close_wrapper (int fd); +extern OCTAVE_API int octave_close_wrapper (int fd); -extern const char * octave_ctermid_wrapper (void); +extern OCTAVE_API const char * octave_ctermid_wrapper (void); -extern int octave_dup2_wrapper (int fd1, int fd2); +extern OCTAVE_API int octave_dup2_wrapper (int fd1, int fd2); -extern int octave_execv_wrapper (const char *file, char *const *argv); +extern OCTAVE_API int octave_execv_wrapper (const char *file, char *const *argv); -extern int octave_execvp_wrapper (const char *file, char *const *argv); +extern OCTAVE_API int octave_execvp_wrapper (const char *file, char *const *argv); -extern pid_t octave_fork_wrapper (void); +extern OCTAVE_API pid_t octave_fork_wrapper (void); -extern int octave_ftruncate_wrapper (int fd, off_t sz); +extern OCTAVE_API int octave_ftruncate_wrapper (int fd, off_t sz); -extern char * octave_getcwd_wrapper (char *nm, size_t len); +extern OCTAVE_API char * octave_getcwd_wrapper (char *nm, size_t len); -extern gid_t octave_getegid_wrapper (void); +extern OCTAVE_API gid_t octave_getegid_wrapper (void); -extern uid_t octave_geteuid_wrapper (void); +extern OCTAVE_API uid_t octave_geteuid_wrapper (void); -extern gid_t octave_getgid_wrapper (void); +extern OCTAVE_API gid_t octave_getgid_wrapper (void); -extern int octave_gethostname_wrapper (char *nm, size_t len); +extern OCTAVE_API int octave_gethostname_wrapper (char *nm, size_t len); -extern pid_t octave_getpgrp_wrapper (void); +extern OCTAVE_API pid_t octave_getpgrp_wrapper (void); -extern pid_t octave_getpid_wrapper (void); +extern OCTAVE_API pid_t octave_getpid_wrapper (void); -extern pid_t octave_getppid_wrapper (void); +extern OCTAVE_API pid_t octave_getppid_wrapper (void); -extern uid_t octave_getuid_wrapper (void); +extern OCTAVE_API uid_t octave_getuid_wrapper (void); -extern int octave_isatty_wrapper (int fd); +extern OCTAVE_API int octave_isatty_wrapper (int fd); -extern int octave_link_wrapper (const char *nm1, const char *nm2); +extern OCTAVE_API int octave_link_wrapper (const char *nm1, const char *nm2); -extern int octave_pipe_wrapper (int *fd); +extern OCTAVE_API int octave_pipe_wrapper (int *fd); -extern int octave_rmdir_wrapper (const char *nm); +extern OCTAVE_API int octave_rmdir_wrapper (const char *nm); -extern pid_t octave_setsid_wrapper (void); +extern OCTAVE_API pid_t octave_setsid_wrapper (void); -extern int octave_stdin_fileno (void); +extern OCTAVE_API int octave_stdin_fileno (void); -extern int octave_stdout_fileno (void); +extern OCTAVE_API int octave_stdout_fileno (void); -extern int octave_symlink_wrapper (const char *nm1, const char *nm2); +extern OCTAVE_API int octave_symlink_wrapper (const char *nm1, const char *nm2); -extern int octave_unlink_wrapper (const char *nm); +extern OCTAVE_API int octave_unlink_wrapper (const char *nm); -extern pid_t octave_vfork_wrapper (void); +extern OCTAVE_API pid_t octave_vfork_wrapper (void); -extern bool octave_have_fork (void); +extern OCTAVE_API bool octave_have_fork (void); -extern bool octave_have_vfork (void); +extern OCTAVE_API bool octave_have_vfork (void); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/unistr-wrappers.h --- a/liboctave/wrappers/unistr-wrappers.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/unistr-wrappers.h Wed Dec 16 01:05:17 2020 -0500 @@ -30,28 +30,27 @@ extern "C" { #endif -const uint8_t * +extern OCTAVE_API const uint8_t * octave_u8_check_wrapper (const uint8_t *src, size_t n); -extern int -octave_u8_strmblen_wrapper (const uint8_t *src); +extern OCTAVE_API int octave_u8_strmblen_wrapper (const uint8_t *src); -extern int +extern OCTAVE_API int octave_u8_strmbtouc_wrapper (uint32_t *puc, const uint8_t *src); -extern uint8_t * +extern OCTAVE_API uint8_t * octave_u16_to_u8_wrapper (const uint16_t *src, size_t src_len, uint8_t *result_buf, size_t *lengthp); -extern uint8_t * +extern OCTAVE_API uint8_t * octave_u32_to_u8_wrapper (const uint32_t *src, size_t src_len, uint8_t *result_buf, size_t *lengthp); -extern uint16_t * +extern OCTAVE_API uint16_t * octave_u8_to_u16_wrapper (const uint8_t *src, size_t src_len, uint16_t *result_buf, size_t *lengthp); -extern uint32_t * +extern OCTAVE_API uint32_t * octave_u8_to_u32_wrapper (const uint8_t *src, size_t src_len, uint32_t *result_buf, size_t *lengthp); diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/unsetenv-wrapper.h --- a/liboctave/wrappers/unsetenv-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/unsetenv-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -30,7 +30,7 @@ extern "C" { #endif -extern int octave_unsetenv_wrapper (const char *name); +extern OCTAVE_API int octave_unsetenv_wrapper (const char *name); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/vasprintf-wrapper.h --- a/liboctave/wrappers/vasprintf-wrapper.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/vasprintf-wrapper.h Wed Dec 16 01:05:17 2020 -0500 @@ -36,7 +36,7 @@ extern "C" { #endif -extern int +extern OCTAVE_API int octave_vasprintf_wrapper (char **buf, const char *fmt, va_list args); #if defined __cplusplus diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/wait-for-input.h --- a/liboctave/wrappers/wait-for-input.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/wait-for-input.h Wed Dec 16 01:05:17 2020 -0500 @@ -30,7 +30,7 @@ extern "C" { #endif -extern int octave_wait_for_input (int fid); +extern OCTAVE_API int octave_wait_for_input (int fid); #if defined __cplusplus } diff -r c68edca73b7f -r 9e2c5371c145 liboctave/wrappers/wait-wrappers.h --- a/liboctave/wrappers/wait-wrappers.h Wed Dec 16 01:05:17 2020 -0500 +++ b/liboctave/wrappers/wait-wrappers.h Wed Dec 16 01:05:17 2020 -0500 @@ -36,29 +36,30 @@ extern "C" { #endif -extern pid_t octave_waitpid_wrapper (pid_t pid, int *statusp, int options); +extern OCTAVE_API pid_t +octave_waitpid_wrapper (pid_t pid, int *statusp, int options); -extern int octave_wcontinue_wrapper (void); - -extern int octave_wcoredump_wrapper (int status); +extern OCTAVE_API int octave_wcontinue_wrapper (void); -extern bool octave_wifcontinued_wrapper (int status); +extern OCTAVE_API int octave_wcoredump_wrapper (int status); -extern bool octave_wifexited_wrapper (int status); +extern OCTAVE_API bool octave_wifcontinued_wrapper (int status); -extern bool octave_wifsignaled_wrapper (int status); +extern OCTAVE_API bool octave_wifexited_wrapper (int status); -extern bool octave_wifstopped_wrapper (int status); +extern OCTAVE_API bool octave_wifsignaled_wrapper (int status); -extern int octave_wexitstatus_wrapper (int status); +extern OCTAVE_API bool octave_wifstopped_wrapper (int status); -extern int octave_wnohang_wrapper (void); +extern OCTAVE_API int octave_wexitstatus_wrapper (int status); -extern int octave_wstopsig_wrapper (int status); +extern OCTAVE_API int octave_wnohang_wrapper (void); + +extern OCTAVE_API int octave_wstopsig_wrapper (int status); -extern int octave_wtermsig_wrapper (int status); +extern OCTAVE_API int octave_wtermsig_wrapper (int status); -extern int octave_wuntraced_wrapper (void); +extern OCTAVE_API int octave_wuntraced_wrapper (void); #if defined __cplusplus }