comparison src/dirfns.cc @ 5102:b04b30d30c66

[project @ 2004-12-28 01:59:05 by jwe]
author jwe
date Tue, 28 Dec 2004 01:59:05 +0000
parents 1cf16fb3459a
children 25b090e1be9f
comparison
equal deleted inserted replaced
5101:9b1af8135ecd 5102:b04b30d30c66
44 #include "glob-match.h" 44 #include "glob-match.h"
45 #include "lo-sstream.h" 45 #include "lo-sstream.h"
46 #include "oct-env.h" 46 #include "oct-env.h"
47 #include "str-vec.h" 47 #include "str-vec.h"
48 48
49 #include "Cell.h"
49 #include "defun.h" 50 #include "defun.h"
50 #include "dir-ops.h" 51 #include "dir-ops.h"
51 #include "dirfns.h" 52 #include "dirfns.h"
52 #include "error.h" 53 #include "error.h"
53 #include "gripes.h" 54 #include "gripes.h"
54 #include "oct-obj.h" 55 #include "oct-obj.h"
55 #include "pager.h" 56 #include "pager.h"
56 #include "procstream.h" 57 #include "procstream.h"
57 #include "pt-plot.h"
58 #include "sysdep.h" 58 #include "sysdep.h"
59 #include "toplev.h" 59 #include "toplev.h"
60 #include "unwind-prot.h" 60 #include "unwind-prot.h"
61 #include "utils.h" 61 #include "utils.h"
62 #include "variables.h" 62 #include "variables.h"
69 octave_change_to_directory (const std::string& newdir) 69 octave_change_to_directory (const std::string& newdir)
70 { 70 {
71 int cd_ok = octave_env::chdir (newdir); 71 int cd_ok = octave_env::chdir (newdir);
72 72
73 if (cd_ok) 73 if (cd_ok)
74 do_external_plotter_cd (newdir); 74 // XXX FIXME XXX -- this should be handled as a list of functions
75 // to call so users can add their own chdir handlers.
76 /* do_external_plotter_cd (newdir) */;
75 else 77 else
76 { 78 {
77 using namespace std; 79 using namespace std;
78 80
79 error ("%s: %s", newdir.c_str (), strerror (errno)); 81 error ("%s: %s", newdir.c_str (), strerror (errno));