Mercurial > hg > octave-lyh
diff src/variables.cc @ 704:250fc1c93fe2
[project @ 1994-09-15 02:44:42 by jwe]
author | jwe |
---|---|
date | Thu, 15 Sep 1994 02:47:09 +0000 |
parents | 0faebdd7df57 |
children | 36ba0576bd1b |
line wrap: on
line diff
--- a/src/variables.cc +++ b/src/variables.cc @@ -42,6 +42,7 @@ #include "defaults.h" #include "version.h" +#include "dynamic-ld.h" #include "octave-hist.h" #include "unwind-prot.h" #include "variables.h" @@ -619,26 +620,22 @@ char *nm = sym_rec->name (); +// This is needed by yyparse. + curr_fcn_file_name = nm; - char *oct_file = oct_file_in_path (curr_fcn_file_name); - - int loaded_oct_file = 0; - - if (oct_file) - { - cerr << "found: " << oct_file << "\n"; +#ifdef WITH_DLD - delete [] oct_file; + if (load_octave_oct_file (nm)) + { + force_link_to_function (nm); + } + else -// XXX FIXME XXX -- this is where we try to link to an external -// object... - loaded_oct_file = 1; - } +#endif - if (! loaded_oct_file) { - char *ff = fcn_file_in_path (curr_fcn_file_name); + char *ff = fcn_file_in_path (nm); if (ff) {