26 #if defined (HAVE_CONFIG_H)
49 #define STRINGIFY(s) STRINGIFY1(s)
50 #define STRINGIFY1(s) #s
60 std::list<std::string>
63 std::list<std::string> removed_fcns;
65 for (
auto p = m_lib_list.begin (); p != m_lib_list.end (); p++)
71 removed_fcns = shl.
close ();
85 for (
const auto& lib : m_lib_list)
87 if (lib.file_name () == file_name)
100 std::cerr <<
"current shared libraries:" << std::endl;
101 for (
const auto& lib : m_lib_list)
102 std::cerr <<
" " << lib.file_name () << std::endl;
108 warning_with_id (
"Octave:reload-forces-clear",
" %s", fcn_name.c_str ());
125 "reloading %s clears the following functions:",
130 for (
const auto& fcn_name : removed_fcns)
143 for (
const auto& fcn_name : removed_fcns)
150 const std::string& file_name,
168 oct_file.
open (file_name);
175 error (
"%s is not a valid shared library", file_name.c_str ());
192 retval =
f (oct_file, relative);
195 error (
"failed to install .oct file function '%s'",
204 const std::string& file_name,
222 mex_file.
open (file_name);
229 error (
"%s is not a valid shared library", file_name.c_str ());
231 bool have_fmex =
false;
251 error (
"failed to install .mex file function '%s'", fcn_name.c_str ());
301 return "mexFunction";
307 return "_mexFunction";
bool remove(const std::string &name)
std::list< std::string > close(void)
bool is_out_of_date(void) const
size_t number_of_functions_loaded(void) const
std::string file_name(void) const
void open(const std::string &f)
void * search(const std::string &nm, const name_mangler &mangler=name_mangler()) const
std::list< dynamic_library > m_lib_list
dynamic_library find_file(const std::string &file_name) const
std::list< std::string > remove(dynamic_library &shl)
void append(const dynamic_library &shl)
shlibs_list m_loaded_shlibs
void clear_function(const std::string &fcn_name)
static std::string mex_mangler(const std::string &name)
interpreter & m_interpreter
bool remove_mex(const std::string &fcn_name, dynamic_library &shl)
static std::string mex_f77_mangler(const std::string &name)
void clear(dynamic_library &oct_file)
static std::string name_mangler(const std::string &name)
static std::string name_uscore_mangler(const std::string &name)
static std::string mex_uscore_mangler(const std::string &name)
octave_function * load_oct(const std::string &fcn_name, const std::string &file_name="", bool relative=false)
octave_function * load_mex(const std::string &fcn_name, const std::string &file_name="", bool relative=false)
bool remove_oct(const std::string &fcn_name, dynamic_library &shl)
symbol_table & get_symbol_table(void)
void clear_dld_function(const std::string &name)
octave_function *(* octave_dld_fcn_getter)(const octave::dynamic_library &, bool relative)
void warning_with_id(const char *id, const char *fmt,...)
void error(const char *fmt,...)
static double f(double k, double l_nu, double c_pm)
octave_value::octave_value(const Array< char > &chm, char type) return retval
F77_RET_T F77_FUNC(xerbla, XERBLA)(F77_CONST_CHAR_ARG_DEF(s_arg