# HG changeset patch # User jwe # Date 845078130 0 # Node ID a45c7d64b5e30ed50b4680de3bdbb8db58e505d5 # Parent 5ece30fb2af6b9bbac809ac196c127c8b3e6427f [project @ 1996-10-11 23:51:15 by jwe] diff --git a/src/Array-tc.cc b/src/Array-tc.cc --- a/src/Array-tc.cc +++ b/src/Array-tc.cc @@ -29,7 +29,7 @@ #include "Array.h" #include "Array.cc" -#include "pt-const.h" +#include "ov.h" extern template class Array; extern template class Array2; diff --git a/src/Map-tc.cc b/src/Map-tc.cc --- a/src/Map-tc.cc +++ b/src/Map-tc.cc @@ -25,7 +25,7 @@ #include "Map.h" #include "Map.cc" -#include "pt-const.h" +#include "ov.h" template class Map; template class CHNode; diff --git a/src/SLList-misc.cc b/src/SLList-misc.cc --- a/src/SLList-misc.cc +++ b/src/SLList-misc.cc @@ -29,7 +29,7 @@ #include #include "pt-exp.h" -#include "pt-const.h" +#include "ov.h" #include "pt-misc.h" template class SLNode; diff --git a/src/SLList-tc.cc b/src/SLList-tc.cc --- a/src/SLList-tc.cc +++ b/src/SLList-tc.cc @@ -28,7 +28,7 @@ #include -#include "pt-const.h" +#include "ov.h" template class SLNode; template class SLList; diff --git a/src/dynamic-ld.cc b/src/dynamic-ld.cc --- a/src/dynamic-ld.cc +++ b/src/dynamic-ld.cc @@ -49,7 +49,7 @@ #include "error.h" #include "toplev.h" #include "pathsearch.h" -#include "pt-const.h" +#include "ov.h" #include "utils.h" #include "variables.h" diff --git a/src/error.cc b/src/error.cc --- a/src/error.cc +++ b/src/error.cc @@ -34,9 +34,10 @@ #include "defun.h" #include "error.h" #include "pager.h" -#include "pt-const.h" #include "oct-obj.h" #include "utils.h" +#include "ov.h" +#include "variables.h" // TRUE means that Octave will try to beep obnoxiously before printing // error messages. diff --git a/src/file-io.cc b/src/file-io.cc --- a/src/file-io.cc +++ b/src/file-io.cc @@ -63,6 +63,7 @@ #include "sysdep.h" #include "syswait.h" #include "utils.h" +#include "variables.h" void initialize_file_io (void) diff --git a/src/fn-cache.cc b/src/fn-cache.cc --- a/src/fn-cache.cc +++ b/src/fn-cache.cc @@ -73,6 +73,22 @@ return something_changed; } +string_vector +octave_fcn_file_name_cache::list (const string& path, bool no_suffix) +{ + string_vector retval; + + if (! instance) + instance = new octave_fcn_file_name_cache (); + + if (instance) + retval = instance->do_list (path, no_suffix); + else + panic_impossible (); + + return retval; +} + // Check to see if any of the elements in the cache need to be // updated, then return the list of names in the cache. @@ -148,22 +164,6 @@ return no_suffix ? fcn_file_names_no_suffix : fcn_file_names; } -string_vector -octave_fcn_file_name_cache::list (const string& path, bool no_suffix) -{ - string_vector retval; - - if (! instance) - instance = new octave_fcn_file_name_cache (); - - if (instance) - retval = instance->do_list (path, no_suffix); - else - panic_impossible (); - - return retval; -} - // Create a list of the function names in a given directory. Returns // TRUE if the cache element was out of date. diff --git a/src/fn-cache.h b/src/fn-cache.h --- a/src/fn-cache.h +++ b/src/fn-cache.h @@ -106,7 +106,7 @@ private: - static octave_fcn_file_name_cache *instance; + static octave_fcn_file_name_cache* instance; // An associative array of all the directory names in the load path // and the corresponding cache elements. diff --git a/src/sysdep.cc b/src/sysdep.cc --- a/src/sysdep.cc +++ b/src/sysdep.cc @@ -81,7 +81,7 @@ #include "mappers.h" #include "oct-obj.h" #include "pathlen.h" -#include "pt-const.h" +#include "ov.h" #include "sysdep.h" #include "toplev.h" #include "utils.h" diff --git a/src/toplev.cc b/src/toplev.cc --- a/src/toplev.cc +++ b/src/toplev.cc @@ -43,6 +43,7 @@ #endif #include "lo-error.h" +#include "lo-mappers.h" #include "str-vec.h" #include "builtins.h" @@ -61,7 +62,8 @@ #include "parse.h" #include "pathsearch.h" #include "procstream.h" -#include "pt-const.h" +#include "ov.h" +#include "pt-fvc.h" #include "pt-misc.h" #include "pt-plot.h" #include "sighandlers.h"