# HG changeset patch # User jwe # Date 868934753 0 # Node ID ca9677cdb62e8ff0030457e8417b4b54369b9a16 # Parent 00ef82060ebc26c497e9a24f26a7a2572d975231 [project @ 1997-07-15 02:45:42 by jwe] diff -r 00ef82060ebc -r ca9677cdb62e liboctave/Makefile.in --- a/liboctave/Makefile.in Fri Jul 11 01:25:43 1997 +0000 +++ b/liboctave/Makefile.in Tue Jul 15 02:45:53 1997 +0000 @@ -47,8 +47,9 @@ data-conv.h dir-ops.h file-ops.h file-stat.h getopt.h \ glob-match.h idx-vector.h lo-ieee.h lo-mappers.h lo-sysdep.h \ lo-utils.h mach-info.h oct-alloc.h oct-cmplx.h oct-env.h \ - oct-math.h oct-group.h oct-passwd.h oct-syscalls.h pathsearch.h \ - prog-args.h statdefs.h str-vec.h sun-utils.h sysdir.h syswait.h \ + oct-math.h oct-group.h oct-passwd.h oct-syscalls.h pathlen.h \ + pathsearch.h prog-args.h statdefs.h str-vec.h sun-utils.h \ + sysdir.h syswait.h \ $(MATRIX_INC) \ $(MX_OP_INC) diff -r 00ef82060ebc -r ca9677cdb62e liboctave/glob-match.cc --- a/liboctave/glob-match.cc Fri Jul 11 01:25:43 1997 +0000 +++ b/liboctave/glob-match.cc Tue Jul 15 02:45:53 1997 +0000 @@ -104,7 +104,7 @@ { int n = glob_info.gl_pathc; - char **matches = glob_info.gl_pathv; + const char * const *matches = glob_info.gl_pathv; // XXX FIXME XXX -- we shouldn't have to check to see if // a single match exists, but it seems that glob() won't diff -r 00ef82060ebc -r ca9677cdb62e src/ChangeLog --- a/src/ChangeLog Fri Jul 11 01:25:43 1997 +0000 +++ b/src/ChangeLog Tue Jul 15 02:45:53 1997 +0000 @@ -1,3 +1,12 @@ +Mon Jul 14 12:54:23 1997 John W. Eaton + + * dynamic-ld.cc (octave_dynamic_loader::load_fcn_from_dot_oct_file): + If first attempt to load function fails, prepend and underscore + and try again. + + * Makefile.in (install-inc): If defaults.h, oct-conf.h, or + oct-gperf.h don't exist in the current directory, look in $(srcdir). + Mon Jul 7 21:14:07 1997 John W. Eaton * DLD-FUNCTIONS/qr.cc (Fqr): Correctly handle nargout == 0. diff -r 00ef82060ebc -r ca9677cdb62e src/Makefile.in --- a/src/Makefile.in Fri Jul 11 01:25:43 1997 +0000 +++ b/src/Makefile.in Tue Jul 15 02:45:53 1997 +0000 @@ -316,7 +316,11 @@ done for f in defaults.h oct-conf.h oct-gperf.h; do \ rm -f $(octincludedir)/$$f; \ - $(INSTALL_DATA) $$f $(octincludedir)/$$f; \ + if [ -f $$f ]; then \ + $(INSTALL_DATA) $$f $(octincludedir)/$$f ; \ + else \ + $(INSTALL_DATA) $(srcdir)/$$f $(octincludedir)/$$f ; \ + fi ; \ done $(mk-includedir-link) .PHONY: install-inc diff -r 00ef82060ebc -r ca9677cdb62e src/dynamic-ld.cc --- a/src/dynamic-ld.cc Fri Jul 11 01:25:43 1997 +0000 +++ b/src/dynamic-ld.cc Tue Jul 15 02:45:53 1997 +0000 @@ -233,6 +233,19 @@ builtin_fcn_installer f = instance->resolve_reference (mangled_name, oct_file); + + // XXX FIXME XXX -- this should probably be handled correctly by + // mangle_octave_oct_file_name using a configure test. + + if (! f) + { + string t = "_"; + + mangled_name = t.append (mangled_name); + + f = instance->resolve_reference (mangled_name, oct_file); + } + if (f) retval = f (); } diff -r 00ef82060ebc -r ca9677cdb62e src/utils.cc --- a/src/utils.cc Fri Jul 11 01:25:43 1997 +0000 +++ b/src/utils.cc Tue Jul 15 02:45:53 1997 +0000 @@ -110,7 +110,7 @@ // Ugh. int -keyword_almost_match (const char **std, int *min_len, const string& s, +keyword_almost_match (const char * const *std, int *min_len, const string& s, int min_toks_to_match, int max_toks) { int status = 0; @@ -138,9 +138,9 @@ return status; - char **to_match = new char * [max_toks + 1]; - const char **s1 = std; - char **s2 = to_match; + const char **to_match = new const char * [max_toks + 1]; + const char * const *s1 = std; + const char **s2 = to_match; if (! s1 || ! s2) goto done; diff -r 00ef82060ebc -r ca9677cdb62e src/utils.h --- a/src/utils.h Fri Jul 11 01:25:43 1997 +0000 +++ b/src/utils.h Tue Jul 15 02:45:53 1997 +0000 @@ -44,7 +44,7 @@ int min_match_len = 1, int case_sens = 1); extern int -keyword_almost_match (const char **std, int *min_len, +keyword_almost_match (const char * const *std, int *min_len, const string& s, int min_toks_to_match, int max_toks);