Mercurial > octave-nkf
comparison src/load-path.cc @ 6630:0fcc8d65b571
[project @ 2007-05-16 15:32:09 by jwe]
author | jwe |
---|---|
date | Wed, 16 May 2007 15:32:09 +0000 |
parents | af16354ea09c |
children | 004561c38e8f |
comparison
equal
deleted
inserted
replaced
6629:7e2b5d0cf7ad | 6630:0fcc8d65b571 |
---|---|
45 | 45 |
46 load_path *load_path::instance = 0; | 46 load_path *load_path::instance = 0; |
47 load_path::hook_function_ptr load_path::add_hook = execute_pkg_add; | 47 load_path::hook_function_ptr load_path::add_hook = execute_pkg_add; |
48 load_path::hook_function_ptr load_path::remove_hook = execute_pkg_del; | 48 load_path::hook_function_ptr load_path::remove_hook = execute_pkg_del; |
49 std::string load_path::command_line_path; | 49 std::string load_path::command_line_path; |
50 std::string load_path::sys_path; | |
50 | 51 |
51 void | 52 void |
52 load_path::dir_info::update (void) | 53 load_path::dir_info::update (void) |
53 { | 54 { |
54 if (is_relative) | 55 if (is_relative) |
1285 Return the default list of directories in which to search for function\n\ | 1286 Return the default list of directories in which to search for function\n\ |
1286 files.\n\ | 1287 files.\n\ |
1287 @seealso{path, addpath, rmpath, genpath, savepath, pathsep}\n\ | 1288 @seealso{path, addpath, rmpath, genpath, savepath, pathsep}\n\ |
1288 @end deftypefn") | 1289 @end deftypefn") |
1289 { | 1290 { |
1290 return load_path::system_path (); | 1291 return octave_value (load_path::system_path ()); |
1291 } | 1292 } |
1292 | 1293 |
1293 DEFUN (path, args, nargout, | 1294 DEFUN (path, args, nargout, |
1294 "-*- texinfo -*-\n\ | 1295 "-*- texinfo -*-\n\ |
1295 @deftypefn {Function File} {} path (@dots{})\n\ | 1296 @deftypefn {Function File} {} path (@dots{})\n\ |