Mercurial > octave
diff libinterp/octave-value/ov-base.h @ 29234:853e60367cb6
Set API tags in files in libinterp/octave-value (patch #8919).
Add API tag to (template) class definitions. Add API tag to (un-defined)
functions and member functions in headers.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 29 Dec 2020 18:21:12 +0100 |
parents | e26201931ea3 |
children | 715344f405f0 |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-base.h Tue Dec 29 18:15:36 2020 +0100 +++ b/libinterp/octave-value/ov-base.h Tue Dec 29 18:21:12 2020 +0100 @@ -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; @@ -876,9 +876,10 @@ // This should only be called for derived types. - octave_value numeric_assign (const std::string& type, - const std::list<octave_value_list>& idx, - const octave_value& rhs); + OCTINTERP_API octave_value + numeric_assign (const std::string& type, + const std::list<octave_value_list>& idx, + const octave_value& rhs); void reset_indent_level (void) const { curr_print_indent_level = 0; } @@ -892,11 +893,11 @@ int current_print_indent_level (void) const { return curr_print_indent_level; } - void indent (std::ostream& os) const; + OCTINTERP_API void indent (std::ostream& os) const; - void newline (std::ostream& os) const; + OCTINTERP_API void newline (std::ostream& os) const; - void reset (void) const; + OCTINTERP_API void reset (void) const; // A reference count. // NOTE: the declaration is octave_idx_type because with 64-bit indexing, @@ -904,14 +905,14 @@ // (think of an empty cell array with >2G elements). octave::refcount<octave_idx_type> count; - static const char * get_umap_name (unary_mapper_t); + OCTINTERP_API static const char * get_umap_name (unary_mapper_t); - void warn_load (const char *type) const; - void warn_save (const char *type) const; + OCTINTERP_API void warn_load (const char *type) const; + OCTINTERP_API void warn_save (const char *type) const; private: - void wrong_type_arg_error (void) const; + OCTINTERP_API void wrong_type_arg_error (void) const; static int curr_print_indent_level; static bool beginning_of_line;