comparison src/defaults.cc @ 6114:a0dafb51dd06

[project @ 2006-10-27 14:02:16 by jwe]
author jwe
date Fri, 27 Oct 2006 14:02:16 +0000
parents a6a2423a9c25
children aa5df9ba98d5
comparison
equal deleted inserted replaced
6113:2dc8e7f1ee1e 6114:a0dafb51dd06
25 #include <config.h> 25 #include <config.h>
26 #endif 26 #endif
27 27
28 #include <cstdlib> 28 #include <cstdlib>
29 29
30 #include <algorithm>
30 #include <iostream> 31 #include <iostream>
31 #include <string> 32 #include <string>
32 33
33 #ifdef HAVE_UNISTD_H 34 #ifdef HAVE_UNISTD_H
34 #ifdef HAVE_SYS_TYPES_H 35 #ifdef HAVE_SYS_TYPES_H
116 retval.replace (start, len, Voctave_home); 117 retval.replace (start, len, Voctave_home);
117 start += len; 118 start += len;
118 } 119 }
119 } 120 }
120 121
122 if (file_ops::dir_sep_char != '/')
123 std::replace (retval.begin (), retval.end (), '/', file_ops::dir_sep_char);
124
121 return retval; 125 return retval;
122 } 126 }
123 127
124 static void 128 static void
125 set_octave_home (void) 129 set_octave_home (void)