comparison 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
comparison
equal deleted inserted replaced
6625:5d02dfacfc9e 6626:af16354ea09c
169 { 169 {
170 if (command_line_path.empty ()) 170 if (command_line_path.empty ())
171 command_line_path = p; 171 command_line_path = p;
172 else 172 else
173 command_line_path += dir_path::path_sep_str + p; 173 command_line_path += dir_path::path_sep_str + p;
174 }
175
176 static std::string system_path (void)
177 {
178 return instance_ok () ? do_system_path () : std::string ();
174 } 179 }
175 180
176 private: 181 private:
177 182
178 static const int M_FILE = 1; 183 static const int M_FILE = 1;
275 280
276 static hook_function_ptr remove_hook; 281 static hook_function_ptr remove_hook;
277 282
278 static std::string command_line_path; 283 static std::string command_line_path;
279 284
285 static std::string sys_path;
286
280 static bool instance_ok (void); 287 static bool instance_ok (void);
281 288
282 typedef std::list<dir_info>::const_iterator const_dir_info_list_iterator; 289 typedef std::list<dir_info>::const_iterator const_dir_info_list_iterator;
283 typedef std::list<dir_info>::iterator dir_info_list_iterator; 290 typedef std::list<dir_info>::iterator dir_info_list_iterator;
284 291
330 337
331 std::string do_path (void) const; 338 std::string do_path (void) const;
332 339
333 void do_display (std::ostream& os) const; 340 void do_display (std::ostream& os) const;
334 341
342 std::string system_path (void) const { return sys_path; }
343
335 void add_to_fcn_map (const dir_info& di, bool at_end) const; 344 void add_to_fcn_map (const dir_info& di, bool at_end) const;
336 }; 345 };
337 346
338 extern std::string 347 extern std::string
339 genpath (const std::string& dir, const string_vector& skip = "private"); 348 genpath (const std::string& dir, const string_vector& skip = "private");
340 349
341 extern void execute_pkg_add (const std::string& dir); 350 extern void execute_pkg_add (const std::string& dir);
342 extern void execute_pkg_del (const std::string& dir); 351 extern void execute_pkg_del (const std::string& dir);
343
344 extern std::string octave_system_path (void);
345 352
346 #endif 353 #endif
347 354
348 /* 355 /*
349 ;;; Local Variables: *** 356 ;;; Local Variables: ***