47 #define STRINGIFY(s) STRINGIFY1(s)
48 #define STRINGIFY1(s) #s
55 typedef std::list<octave_shlib>::iterator
iterator;
62 static octave_shlib find_file (
const std::string& file_name);
64 static void display (
void);
76 octave_shlib do_find_file (
const std::string& file_name)
const;
78 void do_display (
void)
const;
84 static bool instance_ok (
void);
130 if (p->file_name () == file_name)
143 std::cerr <<
"current shared libraries:" << std::endl;
145 std::cerr <<
" " << p->file_name () << std::endl;
163 ::error (
"unable to create shared library list object!");
219 ::error (
"unable to create dynamic loader object!");
230 warning_with_id (
"Octave:reload-forces-clear",
" %s", fcn_name.c_str ());
241 "reloading %s clears the following functions:",
252 const std::string& file_name,
270 oct_file.
open (file_name);
295 retval =
f (oct_file, relative);
298 ::error (
"failed to install .oct file function '%s'",
303 ::error (
"%s is not a valid shared library",
312 const std::string& file_name,
330 mex_file.
open (file_name);
342 bool have_fmex =
false;
366 ::error (
"failed to install .mex file function '%s'",
370 ::error (
"%s is not a valid shared library",
388 retval = shl.
remove (fcn_name);
408 retval = shl.
remove (fcn_name);
419 const std::string& file_name,
428 const std::string& file_name,
464 return "mexFunction";
470 return "_mexFunction";