Mercurial > hg > octave-nkf
diff src/load-path.h @ 6626:af16354ea09c
[project @ 2007-05-16 14:58:26 by jwe]
author | jwe |
---|---|
date | Wed, 16 May 2007 14:58:26 +0000 |
parents | 5d02dfacfc9e |
children | 7e2b5d0cf7ad |
line wrap: on
line diff
--- a/src/load-path.h +++ b/src/load-path.h @@ -173,6 +173,11 @@ command_line_path += dir_path::path_sep_str + p; } + static std::string system_path (void) + { + return instance_ok () ? do_system_path () : std::string (); + } + private: static const int M_FILE = 1; @@ -277,6 +282,8 @@ static std::string command_line_path; + static std::string sys_path; + static bool instance_ok (void); typedef std::list<dir_info>::const_iterator const_dir_info_list_iterator; @@ -332,6 +339,8 @@ void do_display (std::ostream& os) const; + std::string system_path (void) const { return sys_path; } + void add_to_fcn_map (const dir_info& di, bool at_end) const; }; @@ -341,8 +350,6 @@ extern void execute_pkg_add (const std::string& dir); extern void execute_pkg_del (const std::string& dir); -extern std::string octave_system_path (void); - #endif /*