523
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
523
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
1315
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
523
|
20 |
|
21 */ |
|
22 |
|
23 #ifdef HAVE_CONFIG_H |
1192
|
24 #include <config.h> |
523
|
25 #endif |
|
26 |
1341
|
27 #include <cerrno> |
|
28 #include <cstdio> |
|
29 #include <cstddef> |
|
30 #include <cstdlib> |
|
31 #include <cstring> |
|
32 |
1728
|
33 #include <string> |
|
34 |
1832
|
35 #ifdef HAVE_UNISTD_H |
2442
|
36 #ifdef HAVE_SYS_TYPES_H |
1832
|
37 #include <sys/types.h> |
2442
|
38 #endif |
1832
|
39 #include <unistd.h> |
|
40 #endif |
|
41 |
2926
|
42 #include "file-ops.h" |
|
43 #include "file-stat.h" |
|
44 #include "glob-match.h" |
4051
|
45 #include "lo-sstream.h" |
2926
|
46 #include "oct-env.h" |
1755
|
47 #include "str-vec.h" |
|
48 |
1355
|
49 #include "defun.h" |
1781
|
50 #include "dir-ops.h" |
1355
|
51 #include "dirfns.h" |
|
52 #include "error.h" |
1402
|
53 #include "gripes.h" |
1750
|
54 #include "oct-obj.h" |
1355
|
55 #include "pager.h" |
|
56 #include "procstream.h" |
1750
|
57 #include "pt-plot.h" |
1355
|
58 #include "sysdep.h" |
1750
|
59 #include "toplev.h" |
1449
|
60 #include "unwind-prot.h" |
523
|
61 #include "utils.h" |
1742
|
62 #include "variables.h" |
523
|
63 |
2926
|
64 // XXX FIXME XXX -- changing the plotter directory should be handled |
|
65 // by registering a function for octave_env::chdir to call so that |
|
66 // this function can be eliminated. |
523
|
67 |
1328
|
68 static int |
3523
|
69 octave_change_to_directory (const std::string& newdir) |
1328
|
70 { |
2926
|
71 int cd_ok = octave_env::chdir (newdir); |
1328
|
72 |
|
73 if (cd_ok) |
|
74 do_external_plotter_cd (newdir); |
|
75 else |
3531
|
76 { |
|
77 using namespace std; |
|
78 |
|
79 error ("%s: %s", newdir.c_str (), strerror (errno)); |
|
80 } |
1328
|
81 |
|
82 return cd_ok; |
|
83 } |
|
84 |
4208
|
85 DEFCMD (cd, args, , |
3301
|
86 "-*- texinfo -*-\n\ |
|
87 @deffn {Command} cd dir\n\ |
|
88 @deffnx {Command} chdir dir\n\ |
|
89 Change the current working directory to @var{dir}. If @var{dir} is\n\ |
|
90 omitted, the current directory is changed to the users home\n\ |
|
91 directory. For example,\n\ |
523
|
92 \n\ |
3301
|
93 @example\n\ |
|
94 cd ~/octave\n\ |
|
95 @end example\n\ |
|
96 \n\ |
|
97 @noindent\n\ |
|
98 Changes the current working directory to @file{~/octave}. If the\n\ |
|
99 directory does not exist, an error message is printed and the working\n\ |
|
100 directory is not changed.\n\ |
|
101 @end deffn") |
523
|
102 { |
2086
|
103 octave_value_list retval; |
523
|
104 |
1755
|
105 int argc = args.length () + 1; |
|
106 |
1965
|
107 string_vector argv = args.make_argv ("cd"); |
1755
|
108 |
|
109 if (error_state) |
|
110 return retval; |
523
|
111 |
|
112 if (argc > 1) |
|
113 { |
3523
|
114 std::string dirname = file_ops::tilde_expand (argv[1]); |
523
|
115 |
1750
|
116 if (dirname.length () > 0 |
1755
|
117 && ! octave_change_to_directory (dirname)) |
523
|
118 { |
|
119 return retval; |
|
120 } |
|
121 } |
|
122 else |
|
123 { |
3523
|
124 std::string home_dir = octave_env::get_home_directory (); |
2926
|
125 |
|
126 if (home_dir.empty () || ! octave_change_to_directory (home_dir)) |
|
127 return retval; |
523
|
128 } |
|
129 |
|
130 return retval; |
|
131 } |
|
132 |
611
|
133 DEFALIAS (chdir, cd); |
|
134 |
661
|
135 // Get a directory listing. |
|
136 |
1965
|
137 static void |
|
138 cleanup_iprocstream (void *p) |
|
139 { |
2800
|
140 delete static_cast <iprocstream *> (p); |
1965
|
141 } |
|
142 |
4691
|
143 DEFCMD (ls, args, nargout, |
3301
|
144 "-*- texinfo -*-\n\ |
|
145 @deffn {Command} ls options\n\ |
|
146 List directory contents. For example,\n\ |
523
|
147 \n\ |
3301
|
148 @example\n\ |
|
149 ls -l\n\ |
|
150 @print{} total 12\n\ |
|
151 @print{} -rw-r--r-- 1 jwe users 4488 Aug 19 04:02 foo.m\n\ |
|
152 @print{} -rw-r--r-- 1 jwe users 1315 Aug 17 23:14 bar.m\n\ |
|
153 @end example\n\ |
|
154 \n\ |
|
155 The @code{dir} and @code{ls} commands are implemented by calling your\n\ |
|
156 system's directory listing command, so the available options may vary\n\ |
|
157 from system to system.\n\ |
|
158 @end deffn") |
523
|
159 { |
4691
|
160 octave_value retval; |
523
|
161 |
1755
|
162 int argc = args.length () + 1; |
|
163 |
1965
|
164 string_vector argv = args.make_argv ("ls"); |
1755
|
165 |
|
166 if (error_state) |
|
167 return retval; |
523
|
168 |
4051
|
169 OSSTREAM ls_buf; |
523
|
170 |
|
171 ls_buf << "ls -C "; |
|
172 for (int i = 1; i < argc; i++) |
2926
|
173 ls_buf << file_ops::tilde_expand (argv[i]) << " "; |
523
|
174 |
4051
|
175 ls_buf << OSSTREAM_ENDS; |
523
|
176 |
4051
|
177 iprocstream *cmd = new iprocstream (OSSTREAM_STR (ls_buf)); |
523
|
178 |
4051
|
179 OSSTREAM_FREEZE (ls_buf); |
1469
|
180 |
2985
|
181 unwind_protect::add (cleanup_iprocstream, cmd); |
523
|
182 |
4489
|
183 // XXX FIXME XXX -- Perhaps we should read more than one character |
|
184 // at a time and find a way to avoid the call to octave_usleep as |
|
185 // well? |
3147
|
186 |
1449
|
187 if (cmd && *cmd) |
|
188 { |
4494
|
189 // This is a bit of a kluge... |
|
190 |
|
191 octave_usleep (100); |
|
192 |
3147
|
193 char ch; |
|
194 |
4691
|
195 OSSTREAM output_buf; |
|
196 |
4489
|
197 for (;;) |
|
198 { |
|
199 if (cmd->get (ch)) |
4691
|
200 { |
|
201 octave_stdout << ch; |
|
202 output_buf << ch; |
|
203 } |
4489
|
204 else |
|
205 { |
|
206 if (! cmd->eof () && errno == EAGAIN) |
|
207 { |
|
208 cmd->clear (); |
3147
|
209 |
4489
|
210 octave_usleep (100); |
|
211 } |
|
212 else |
|
213 break; |
|
214 } |
|
215 } |
4691
|
216 |
|
217 output_buf << OSSTREAM_ENDS; |
|
218 |
|
219 if (nargout > 0) |
|
220 retval = OSSTREAM_STR (output_buf); |
|
221 |
|
222 OSSTREAM_FREEZE (output_buf); |
1449
|
223 } |
|
224 else |
|
225 error ("couldn't start process for ls!"); |
523
|
226 |
2985
|
227 unwind_protect::run (); |
523
|
228 |
|
229 return retval; |
|
230 } |
|
231 |
1957
|
232 DEFUN (pwd, , nargout, |
3301
|
233 "-*- texinfo -*-\n\ |
|
234 @deftypefn {Built-in Function} {} pwd ()\n\ |
|
235 Return the current working directory.\n\ |
|
236 @end deftypefn") |
523
|
237 { |
4233
|
238 octave_value retval; |
523
|
239 |
3523
|
240 std::string directory = octave_env::getcwd (); |
523
|
241 |
2926
|
242 if (directory.empty ()) |
|
243 warning ("pwd: can't find working directory!"); |
523
|
244 else |
|
245 { |
1592
|
246 if (nargout == 0) |
2095
|
247 octave_stdout << directory << "\n"; |
1592
|
248 else |
|
249 retval = directory; |
523
|
250 } |
1592
|
251 |
523
|
252 return retval; |
|
253 } |
|
254 |
1957
|
255 DEFUN (readdir, args, , |
3301
|
256 "-*- texinfo -*-\n\ |
|
257 @deftypefn {Built-in Function} {[@var{files}, @var{err}, @var{msg}] =} readdir (@var{dir})\n\ |
4691
|
258 Return names of the files in the directory @var{dir} as a cell array of\n\ |
|
259 strings. If an error occurs, return an empty cell array in @var{files}.\n\ |
1389
|
260 \n\ |
3301
|
261 If successful, @var{err} is 0 and @var{msg} is an empty string.\n\ |
|
262 Otherwise, @var{err} is nonzero and @var{msg} contains a\n\ |
|
263 system-dependent error message.\n\ |
|
264 @end deftypefn") |
1389
|
265 { |
2086
|
266 octave_value_list retval; |
1389
|
267 |
3523
|
268 retval(2) = std::string (); |
2669
|
269 retval(1) = -1.0; |
4691
|
270 retval(0) = Cell (); |
2669
|
271 |
1401
|
272 if (args.length () == 1) |
1389
|
273 { |
3523
|
274 std::string dirname = args(0).string_value (); |
1389
|
275 |
1401
|
276 if (error_state) |
1781
|
277 gripe_wrong_type_arg ("readdir", args(0)); |
1401
|
278 else |
|
279 { |
2926
|
280 dir_entry dir (file_ops::tilde_expand (dirname)); |
1389
|
281 |
1401
|
282 if (dir) |
1389
|
283 { |
1781
|
284 string_vector dirlist = dir.read (); |
4691
|
285 retval(0) = Cell (dirlist.qsort ()); |
2669
|
286 retval(1) = 0.0; |
1401
|
287 } |
|
288 else |
|
289 { |
2669
|
290 retval(2) = dir.error (); |
1401
|
291 } |
1389
|
292 } |
|
293 } |
|
294 else |
|
295 print_usage ("readdir"); |
|
296 |
1401
|
297 return retval; |
|
298 } |
|
299 |
|
300 // XXX FIXME XXX -- should probably also allow second arg to specify |
|
301 // mode. |
|
302 |
1957
|
303 DEFUN (mkdir, args, , |
3301
|
304 "-*- texinfo -*-\n\ |
|
305 @deftypefn {Built-in Function} {[@var{err}, @var{msg}] =} mkdir (@var{dir})\\n\ |
|
306 Create a directory named @var{dir}.\n\ |
1401
|
307 \n\ |
3301
|
308 If successful, @var{err} is 0 and @var{msg} is an empty string.\n\ |
|
309 Otherwise, @var{err} is nonzero and @var{msg} contains a\n\ |
|
310 system-dependent error message.\n\ |
|
311 @end deftypefn") |
1401
|
312 { |
2086
|
313 octave_value_list retval; |
1401
|
314 |
3523
|
315 retval(1) = std::string (); |
2669
|
316 retval(0) = -1.0; |
1401
|
317 |
|
318 if (args.length () == 1) |
|
319 { |
3523
|
320 std::string dirname = args(0).string_value (); |
1401
|
321 |
|
322 if (error_state) |
1402
|
323 gripe_wrong_type_arg ("mkdir", args(0)); |
1489
|
324 else |
1401
|
325 { |
3523
|
326 std::string msg; |
2669
|
327 |
2926
|
328 int status = file_ops::mkdir (file_ops::tilde_expand (dirname), |
|
329 0777, msg); |
1489
|
330 |
4233
|
331 retval(0) = status; |
2669
|
332 |
|
333 if (status < 0) |
|
334 retval(1) = msg; |
1401
|
335 } |
|
336 } |
|
337 else |
|
338 print_usage ("mkdir"); |
|
339 |
|
340 return retval; |
|
341 } |
|
342 |
1957
|
343 DEFUN (rmdir, args, , |
3301
|
344 "-*- texinfo -*-\n\ |
|
345 @deftypefn {Built-in Function} {[@var{err}, @var{msg}] =} rmdir (@var{dir})\n\ |
|
346 Remove the directory named @var{dir}.\n\ |
1401
|
347 \n\ |
3301
|
348 If successful, @var{err} is 0 and @var{msg} is an empty string.\n\ |
|
349 Otherwise, @var{err} is nonzero and @var{msg} contains a\n\ |
|
350 system-dependent error message.\n\ |
|
351 @end deftypefn") |
1401
|
352 { |
2086
|
353 octave_value_list retval; |
1401
|
354 |
3523
|
355 retval(1) = std::string (); |
2669
|
356 retval(0) = -1.0; |
1401
|
357 |
|
358 if (args.length () == 1) |
|
359 { |
3523
|
360 std::string dirname = args(0).string_value (); |
1401
|
361 |
|
362 if (error_state) |
1402
|
363 gripe_wrong_type_arg ("rmdir", args(0)); |
1489
|
364 else |
1401
|
365 { |
3523
|
366 std::string msg; |
2669
|
367 |
2926
|
368 int status = file_ops::rmdir (file_ops::tilde_expand (dirname), msg); |
1489
|
369 |
4233
|
370 retval(0) = status; |
2669
|
371 |
|
372 if (status < 0) |
|
373 retval(1) = msg; |
1401
|
374 } |
|
375 } |
1389
|
376 else |
1401
|
377 print_usage ("rmdir"); |
|
378 |
|
379 return retval; |
|
380 } |
|
381 |
3710
|
382 DEFUN (link, args, , |
|
383 "-*- texinfo -*-\n\ |
|
384 @deftypefn {Built-in Function} {[@var{err}, @var{msg}] =} link (@var{old}, @var{new})\n\ |
|
385 Create a new link (also known as a hard link) to an existing file.\n\ |
|
386 \n\ |
|
387 If successful, @var{err} is 0 and @var{msg} is an empty string.\n\ |
|
388 Otherwise, @var{err} is nonzero and @var{msg} contains a\n\ |
|
389 system-dependent error message.\n\ |
|
390 @end deftypefn") |
|
391 { |
|
392 octave_value_list retval; |
|
393 |
|
394 retval(1) = std::string (); |
|
395 retval(0) = -1.0; |
|
396 |
|
397 if (args.length () == 2) |
|
398 { |
|
399 std::string from = args(0).string_value (); |
|
400 |
|
401 if (error_state) |
|
402 gripe_wrong_type_arg ("link", args(0)); |
|
403 else |
|
404 { |
|
405 std::string to = args(1).string_value (); |
|
406 |
|
407 if (error_state) |
|
408 gripe_wrong_type_arg ("link", args(1)); |
|
409 else |
|
410 { |
|
411 std::string msg; |
|
412 |
|
413 int status = file_ops::link (from, to, msg); |
|
414 |
4233
|
415 retval(0) = status; |
3710
|
416 |
|
417 if (status < 0) |
|
418 retval(1) = msg; |
|
419 } |
|
420 } |
|
421 } |
|
422 else |
|
423 print_usage ("link"); |
|
424 |
|
425 return retval; |
|
426 } |
|
427 |
|
428 DEFUN (symlink, args, , |
|
429 "-*- texinfo -*-\n\ |
|
430 @deftypefn {Built-in Function} {[@var{err}, @var{msg}] =} symlink (@var{old}, @var{new})\n\ |
|
431 Create a symbolic link @var{new} which contains the string @var{old}.\n\ |
|
432 \n\ |
|
433 If successful, @var{err} is 0 and @var{msg} is an empty string.\n\ |
|
434 Otherwise, @var{err} is nonzero and @var{msg} contains a\n\ |
|
435 system-dependent error message.\n\ |
|
436 @end deftypefn") |
|
437 { |
|
438 octave_value_list retval; |
|
439 |
|
440 retval(1) = std::string (); |
|
441 retval(0) = -1.0; |
|
442 |
|
443 if (args.length () == 2) |
|
444 { |
|
445 std::string from = args(0).string_value (); |
|
446 |
|
447 if (error_state) |
|
448 gripe_wrong_type_arg ("symlink", args(0)); |
|
449 else |
|
450 { |
|
451 std::string to = args(1).string_value (); |
|
452 |
|
453 if (error_state) |
|
454 gripe_wrong_type_arg ("symlink", args(1)); |
|
455 else |
|
456 { |
|
457 std::string msg; |
|
458 |
|
459 int status = file_ops::symlink (from, to, msg); |
|
460 |
4233
|
461 retval(0) = status; |
3710
|
462 |
|
463 if (status < 0) |
|
464 retval(1) = msg; |
|
465 } |
|
466 } |
|
467 } |
|
468 else |
|
469 print_usage ("symlink"); |
|
470 |
|
471 return retval; |
|
472 } |
|
473 |
|
474 DEFUN (readlink, args, , |
|
475 "-*- texinfo -*-\n\ |
4169
|
476 @deftypefn {Built-in Function} {[@var{result}, @var{err}, @var{msg}] =} readlink (@var{symlink})\n\ |
3710
|
477 Read the value of the symbolic link @var{symlink}.\n\ |
|
478 \n\ |
|
479 If successful, @var{result} contains the contents of the symbolic link\n\ |
|
480 @var{symlink}, @var{err} is 0 and @var{msg} is an empty string.\n\ |
|
481 Otherwise, @var{err} is nonzero and @var{msg} contains a\n\ |
|
482 system-dependent error message.\n\ |
|
483 @end deftypefn") |
|
484 { |
|
485 octave_value_list retval; |
|
486 |
|
487 retval(2) = std::string (); |
|
488 retval(1) = -1.0; |
|
489 retval(0) = std::string (); |
|
490 |
|
491 if (args.length () == 1) |
|
492 { |
|
493 std::string symlink = args(0).string_value (); |
|
494 |
|
495 if (error_state) |
|
496 gripe_wrong_type_arg ("readlink", args(0)); |
|
497 else |
|
498 { |
|
499 std::string result; |
|
500 std::string msg; |
|
501 |
|
502 int status = file_ops::readlink (symlink, result, msg); |
|
503 |
|
504 retval(0) = result; |
|
505 |
4233
|
506 retval(1) = status; |
3710
|
507 |
|
508 if (status < 0) |
|
509 retval(2) = msg; |
|
510 } |
|
511 } |
|
512 else |
|
513 print_usage ("readlink"); |
|
514 |
|
515 return retval; |
|
516 } |
|
517 |
1957
|
518 DEFUN (rename, args, , |
3301
|
519 "-*- texinfo -*-\n\ |
|
520 @deftypefn {Built-in Function} {[@var{err}, @var{msg}] =} rename (@var{old}, @var{new})\n\ |
|
521 Change the name of file @var{old} to @var{new}.\n\ |
1401
|
522 \n\ |
3301
|
523 If successful, @var{err} is 0 and @var{msg} is an empty string.\n\ |
|
524 Otherwise, @var{err} is nonzero and @var{msg} contains a\n\ |
|
525 system-dependent error message.\n\ |
|
526 @end deftypefn") |
1401
|
527 { |
2086
|
528 octave_value_list retval; |
1401
|
529 |
3523
|
530 retval(1) = std::string (); |
2669
|
531 retval(0) = -1.0; |
1401
|
532 |
|
533 if (args.length () == 2) |
|
534 { |
3523
|
535 std::string from = args(0).string_value (); |
1728
|
536 |
1401
|
537 if (error_state) |
1402
|
538 gripe_wrong_type_arg ("rename", args(0)); |
|
539 else |
1401
|
540 { |
3523
|
541 std::string to = args(1).string_value (); |
1728
|
542 |
1402
|
543 if (error_state) |
|
544 gripe_wrong_type_arg ("rename", args(1)); |
2669
|
545 else |
1402
|
546 { |
3523
|
547 std::string msg; |
2669
|
548 |
2926
|
549 int status = file_ops::rename (from, to, msg); |
2669
|
550 |
4233
|
551 retval(0) = status; |
2669
|
552 |
|
553 if (status < 0) |
|
554 retval(1) = msg; |
1402
|
555 } |
1401
|
556 } |
|
557 } |
|
558 else |
|
559 print_usage ("rename"); |
|
560 |
1389
|
561 return retval; |
|
562 } |
|
563 |
2495
|
564 DEFUN (glob, args, , |
3301
|
565 "-*- texinfo -*-\n\ |
|
566 @deftypefn {Built-in Function} {} glob (@var{pattern})\n\ |
4691
|
567 Given an array of strings in @var{pattern}, return a cell array of file\n\ |
|
568 names that match any of them, or an empty cell array if no patterns match.\n\ |
3690
|
569 Tilde expansion is performed on each of the patterns before looking for\n\ |
3301
|
570 matching file names. For example,\n\ |
2495
|
571 \n\ |
3301
|
572 @example\n\ |
|
573 @group\n\ |
|
574 glob (\"/vm*\")\n\ |
|
575 @result{} \"/vmlinuz\"\n\ |
|
576 @end group\n\ |
|
577 @end example\n\ |
|
578 @end deftypefn") |
2495
|
579 { |
|
580 octave_value retval; |
|
581 |
|
582 if (args.length () == 1) |
|
583 { |
|
584 string_vector pat = args(0).all_strings (); |
|
585 |
|
586 if (error_state) |
|
587 gripe_wrong_type_arg ("glob", args(0)); |
|
588 else |
|
589 { |
2926
|
590 glob_match pattern (file_ops::tilde_expand (pat)); |
2495
|
591 |
4691
|
592 retval = Cell (pattern.glob ()); |
2495
|
593 } |
|
594 } |
|
595 else |
|
596 print_usage ("glob"); |
|
597 |
|
598 return retval; |
|
599 } |
|
600 |
2496
|
601 DEFUN (fnmatch, args, , |
3301
|
602 "-*- texinfo -*-\n\ |
|
603 @deftypefn {Built-in Function} {} fnmatch (@var{pattern}, @var{string})\n\ |
|
604 Return 1 or zero for each element of @var{string} that matches any of\n\ |
|
605 the elements of the string array @var{pattern}, using the rules of\n\ |
|
606 filename pattern matching. For example,\n\ |
2496
|
607 \n\ |
3301
|
608 @example\n\ |
|
609 @group\n\ |
|
610 fnmatch (\"a*b\", [\"ab\"; \"axyzb\"; \"xyzab\"])\n\ |
|
611 @result{} [ 1; 1; 0 ]\n\ |
|
612 @end group\n\ |
|
613 @end example\n\ |
|
614 @end deftypefn") |
2496
|
615 { |
|
616 octave_value retval; |
|
617 |
|
618 if (args.length () == 2) |
|
619 { |
|
620 string_vector pat = args(0).all_strings (); |
|
621 string_vector str = args(1).all_strings (); |
|
622 |
|
623 if (error_state) |
|
624 gripe_wrong_type_arg ("fnmatch", args(0)); |
|
625 else |
|
626 { |
2926
|
627 glob_match pattern (file_ops::tilde_expand (pat)); |
2496
|
628 |
|
629 Array<bool> tmp = pattern.match (str); |
|
630 |
|
631 int n = tmp.length (); |
|
632 |
|
633 ColumnVector result (n); |
|
634 |
|
635 for (int i = 0; i < n; i++) |
|
636 result(i) = tmp(i); |
|
637 |
3418
|
638 retval = result; |
2496
|
639 } |
|
640 } |
|
641 else |
|
642 print_usage ("fnmatch"); |
|
643 |
|
644 return retval; |
|
645 } |
|
646 |
4264
|
647 void |
|
648 symbols_of_dirfns (void) |
|
649 { |
|
650 DEFCONST (filesep, file_ops::dir_sep_str, |
|
651 "-*- texinfo -*-\n\ |
|
652 @defvr {Built-in Variable} filesep\n\ |
|
653 The character used to separate directory names. The value\n\ |
|
654 of this variable is system dependent.\n\ |
|
655 @end defvr"); |
|
656 |
|
657 } |
|
658 |
523
|
659 /* |
|
660 ;;; Local Variables: *** |
|
661 ;;; mode: C++ *** |
|
662 ;;; End: *** |
|
663 */ |