Mercurial > hg > octave-avbm
comparison src/utils.cc @ 1750:fd0d12493223
[project @ 1996-01-13 09:31:07 by jwe]
author | jwe |
---|---|
date | Sat, 13 Jan 1996 09:31:07 +0000 |
parents | a02f140ed897 |
children | 3a9462b655f1 |
comparison
equal
deleted
inserted
replaced
1749:c7f5599eb177 | 1750:fd0d12493223 |
---|---|
64 #include "gripes.h" | 64 #include "gripes.h" |
65 #include "help.h" | 65 #include "help.h" |
66 #include "input.h" | 66 #include "input.h" |
67 #include "mappers.h" | 67 #include "mappers.h" |
68 #include "oct-hist.h" | 68 #include "oct-hist.h" |
69 #include "toplev.h" | 69 #include "oct-obj.h" |
70 #include "pager.h" | 70 #include "pager.h" |
71 #include "pathsearch.h" | 71 #include "pathsearch.h" |
72 #include "sysdep.h" | 72 #include "sysdep.h" |
73 #include "sysdir.h" | 73 #include "sysdir.h" |
74 #include "pt-const.h" | 74 #include "toplev.h" |
75 #include "oct-obj.h" | |
76 #include "unwind-prot.h" | 75 #include "unwind-prot.h" |
77 #include "user-prefs.h" | 76 #include "user-prefs.h" |
78 #include "utils.h" | 77 #include "utils.h" |
79 #include "variables.h" | 78 #include "variables.h" |
80 | 79 |
229 while (i < nelem) | 228 while (i < nelem) |
230 { | 229 { |
231 char *end = strchr (ptr, SEPCHAR); | 230 char *end = strchr (ptr, SEPCHAR); |
232 if (end) | 231 if (end) |
233 *end = '\0'; | 232 *end = '\0'; |
234 char *result = tilde_expand (ptr); | 233 string result = oct_tilde_expand (ptr); |
235 path[i] = strsave (result); | 234 path[i] = strsave (result.c_str ()); |
236 free (result); | |
237 ptr = end + 1; | 235 ptr = end + 1; |
238 i++; | 236 i++; |
239 } | 237 } |
240 | 238 |
241 delete [] tmp_path; | 239 delete [] tmp_path; |