1
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
1
|
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. |
1
|
20 |
|
21 */ |
|
22 |
240
|
23 #ifdef HAVE_CONFIG_H |
1192
|
24 #include <config.h> |
1
|
25 #endif |
|
26 |
1346
|
27 #include <cfloat> |
3124
|
28 #include <cmath> |
1343
|
29 #include <cstddef> |
1346
|
30 #include <cstdio> |
1343
|
31 #include <cstdlib> |
|
32 #include <cstring> |
|
33 |
3503
|
34 #include <iostream> |
1728
|
35 #include <string> |
|
36 |
1350
|
37 #ifdef HAVE_UNISTD_H |
2442
|
38 #ifdef HAVE_SYS_TYPES_H |
529
|
39 #include <sys/types.h> |
2442
|
40 #endif |
529
|
41 #include <unistd.h> |
|
42 #endif |
1
|
43 |
1430
|
44 #if defined (HAVE_TERMIOS_H) |
|
45 #include <termios.h> |
|
46 #elif defined (HAVE_TERMIO_H) |
|
47 #include <termio.h> |
|
48 #elif defined (HAVE_SGTTY_H) |
|
49 #include <sgtty.h> |
4067
|
50 #endif |
|
51 |
|
52 #if defined (HAVE_CONIO_H) |
|
53 #include <conio.h> |
1430
|
54 #endif |
|
55 |
3248
|
56 #if defined (HAVE_SYS_IOCTL_H) |
|
57 #include <sys/ioctl.h> |
|
58 #endif |
|
59 |
1463
|
60 #if defined (HAVE_FLOATINGPOINT_H) |
|
61 #include <floatingpoint.h> |
|
62 #endif |
|
63 |
2508
|
64 #if defined (HAVE_IEEEFP_H) |
|
65 #include <ieeefp.h> |
|
66 #endif |
|
67 |
1463
|
68 #if !defined (HAVE_GETHOSTNAME) && defined (HAVE_SYS_UTSNAME_H) |
|
69 #include <sys/utsname.h> |
|
70 #endif |
|
71 |
2926
|
72 #include "cmd-edit.h" |
|
73 #include "file-ops.h" |
2893
|
74 #include "lo-mappers.h" |
2317
|
75 #include "mach-info.h" |
2926
|
76 #include "oct-env.h" |
1769
|
77 |
1352
|
78 #include "defun.h" |
|
79 #include "error.h" |
529
|
80 #include "input.h" |
1755
|
81 #include "oct-obj.h" |
2370
|
82 #include "ov.h" |
3234
|
83 #include "pager.h" |
1352
|
84 #include "sysdep.h" |
1755
|
85 #include "toplev.h" |
529
|
86 #include "utils.h" |
|
87 |
|
88 #ifndef STDIN_FILENO |
|
89 #define STDIN_FILENO 1 |
|
90 #endif |
444
|
91 |
2508
|
92 #if defined (__386BSD__) || defined (__FreeBSD__) |
|
93 static void |
|
94 BSD_init (void) |
|
95 { |
|
96 #if defined (HAVE_FLOATINGPOINT_H) |
|
97 // Disable trapping on common exceptions. |
4164
|
98 #ifndef FP_X_DNML |
|
99 #define FP_X_DNML 0 |
|
100 #endif |
2508
|
101 fpsetmask (~(FP_X_OFL|FP_X_INV|FP_X_DZ|FP_X_DNML|FP_X_UFL|FP_X_IMP)); |
|
102 #endif |
|
103 } |
|
104 #endif |
|
105 |
4091
|
106 #if defined (__CYGWIN__) |
|
107 |
|
108 #include <limits.h> |
|
109 #include <sys/cygwin.h> |
|
110 |
|
111 static void |
|
112 CYGWIN_init (void) |
|
113 { |
|
114 std::string tmpdir = octave_env::getenv ("TMPDIR"); |
|
115 |
|
116 if (tmpdir.empty ()) |
|
117 { |
|
118 char buf [PATH_MAX]; |
|
119 |
|
120 cygwin32_conv_to_win32_path ("/tmp", buf); |
|
121 |
|
122 octave_env::putenv ("TMPDIR", buf); |
|
123 } |
|
124 } |
|
125 #endif |
|
126 |
2610
|
127 #if defined (NeXT) |
1
|
128 extern "C" |
|
129 { |
|
130 typedef void (*_cplus_fcn_int) (int); |
|
131 extern void (*malloc_error (_cplus_fcn_int)) (int); |
|
132 } |
|
133 |
|
134 static void |
|
135 malloc_handler (int code) |
|
136 { |
|
137 if (code == 5) |
217
|
138 warning ("hopefully recoverable malloc error: freeing wild pointer"); |
1
|
139 else |
2926
|
140 panic ("probably irrecoverable malloc error: code %d", code); |
1
|
141 } |
|
142 |
|
143 static void |
|
144 NeXT_init (void) |
|
145 { |
|
146 malloc_error (malloc_handler); |
|
147 } |
3333
|
148 #endif |
1
|
149 |
2546
|
150 #if defined (__EMX__) |
|
151 OS2_init (void) |
|
152 { |
|
153 _control87 ((EM_INVALID | EM_DENORMAL | EM_ZERODIVIDE | EM_OVERFLOW |
|
154 | EM_UNDERFLOW | EM_INEXACT), MCW_EM); |
|
155 } |
|
156 #endif |
|
157 |
2508
|
158 #if defined (SCO) |
|
159 static void |
|
160 SCO_init (void) |
|
161 { |
|
162 #if defined (HAVE_IEEEFP_H) |
|
163 // Disable trapping on common exceptions. |
|
164 fpsetmask (~(FP_X_OFL|FP_X_INV|FP_X_DZ|FP_X_DNML|FP_X_UFL|FP_X_IMP)); |
|
165 #endif |
|
166 } |
|
167 #endif |
|
168 |
1
|
169 void |
|
170 sysdep_init (void) |
|
171 { |
959
|
172 #if defined (__386BSD__) || defined (__FreeBSD__) |
2508
|
173 BSD_init (); |
4091
|
174 #elif defined (__CYGWIN__) |
|
175 CYGWIN_init (); |
2610
|
176 #elif defined (NeXT) |
1
|
177 NeXT_init (); |
2610
|
178 #elif defined (__EMX__) |
2546
|
179 OS2_init (); |
2508
|
180 #elif defined (SCO) |
|
181 SCO_init (); |
1
|
182 #endif |
444
|
183 |
|
184 octave_ieee_init (); |
1
|
185 } |
|
186 |
767
|
187 // Set terminal in raw mode. From less-177. |
|
188 // |
|
189 // Change terminal to "raw mode", or restore to "normal" mode. |
|
190 // "Raw mode" means |
|
191 // 1. An outstanding read will complete on receipt of a single keystroke. |
|
192 // 2. Input is not echoed. |
|
193 // 3. On output, \n is mapped to \r\n. |
|
194 // 4. \t is NOT expanded into spaces. |
|
195 // 5. Signal-causing characters such as ctrl-C (interrupt), |
|
196 // etc. are NOT disabled. |
|
197 // It doesn't matter whether an input \n is mapped to \r, or vice versa. |
|
198 |
529
|
199 void |
3657
|
200 raw_mode (bool on, bool wait) |
529
|
201 { |
3657
|
202 static bool curr_on = false; |
529
|
203 |
|
204 int tty_fd = STDIN_FILENO; |
|
205 if (! isatty (tty_fd)) |
|
206 { |
|
207 if (interactive) |
|
208 error ("stdin is not a tty!"); |
|
209 return; |
|
210 } |
|
211 |
|
212 if (on == curr_on) |
|
213 return; |
|
214 |
|
215 #if defined (HAVE_TERMIOS_H) |
|
216 { |
|
217 struct termios s; |
|
218 static struct termios save_term; |
|
219 |
|
220 if (on) |
|
221 { |
1358
|
222 // Get terminal modes. |
529
|
223 |
|
224 tcgetattr (tty_fd, &s); |
|
225 |
1358
|
226 // Save modes and set certain variables dependent on modes. |
529
|
227 |
|
228 save_term = s; |
|
229 // ospeed = s.c_cflag & CBAUD; |
|
230 // erase_char = s.c_cc[VERASE]; |
|
231 // kill_char = s.c_cc[VKILL]; |
|
232 |
1358
|
233 // Set the modes to the way we want them. |
529
|
234 |
|
235 s.c_lflag &= ~(ICANON|ECHO|ECHOE|ECHOK|ECHONL); |
|
236 s.c_oflag |= (OPOST|ONLCR); |
|
237 #if defined (OCRNL) |
|
238 s.c_oflag &= ~(OCRNL); |
|
239 #endif |
|
240 #if defined (ONOCR) |
|
241 s.c_oflag &= ~(ONOCR); |
|
242 #endif |
|
243 #if defined (ONLRET) |
|
244 s.c_oflag &= ~(ONLRET); |
|
245 #endif |
3658
|
246 s.c_cc[VMIN] = wait ? 1 : 0; |
529
|
247 s.c_cc[VTIME] = 0; |
|
248 } |
|
249 else |
|
250 { |
1358
|
251 // Restore saved modes. |
|
252 |
529
|
253 s = save_term; |
|
254 } |
3658
|
255 |
529
|
256 tcsetattr (tty_fd, TCSAFLUSH, &s); |
|
257 } |
|
258 #elif defined (HAVE_TERMIO_H) |
|
259 { |
|
260 struct termio s; |
|
261 static struct termio save_term; |
|
262 |
|
263 if (on) |
|
264 { |
1358
|
265 // Get terminal modes. |
529
|
266 |
|
267 ioctl (tty_fd, TCGETA, &s); |
|
268 |
1358
|
269 // Save modes and set certain variables dependent on modes. |
529
|
270 |
|
271 save_term = s; |
|
272 // ospeed = s.c_cflag & CBAUD; |
|
273 // erase_char = s.c_cc[VERASE]; |
|
274 // kill_char = s.c_cc[VKILL]; |
|
275 |
1358
|
276 // Set the modes to the way we want them. |
529
|
277 |
|
278 s.c_lflag &= ~(ICANON|ECHO|ECHOE|ECHOK|ECHONL); |
|
279 s.c_oflag |= (OPOST|ONLCR); |
|
280 #if defined (OCRNL) |
|
281 s.c_oflag &= ~(OCRNL); |
|
282 #endif |
|
283 #if defined (ONOCR) |
|
284 s.c_oflag &= ~(ONOCR); |
|
285 #endif |
|
286 #if defined (ONLRET) |
|
287 s.c_oflag &= ~(ONLRET); |
|
288 #endif |
3658
|
289 s.c_cc[VMIN] = wait ? 1 : 0; |
529
|
290 } |
|
291 else |
|
292 { |
1358
|
293 // Restore saved modes. |
|
294 |
529
|
295 s = save_term; |
|
296 } |
3658
|
297 |
529
|
298 ioctl (tty_fd, TCSETAW, &s); |
|
299 } |
|
300 #elif defined (HAVE_SGTTY_H) |
|
301 { |
|
302 struct sgttyb s; |
|
303 static struct sgttyb save_term; |
|
304 |
|
305 if (on) |
|
306 { |
1358
|
307 // Get terminal modes. |
529
|
308 |
|
309 ioctl (tty_fd, TIOCGETP, &s); |
|
310 |
1358
|
311 // Save modes and set certain variables dependent on modes. |
529
|
312 |
|
313 save_term = s; |
|
314 // ospeed = s.sg_ospeed; |
|
315 // erase_char = s.sg_erase; |
|
316 // kill_char = s.sg_kill; |
|
317 |
1358
|
318 // Set the modes to the way we want them. |
529
|
319 |
|
320 s.sg_flags |= CBREAK; |
|
321 s.sg_flags &= ~(ECHO); |
|
322 } |
|
323 else |
|
324 { |
1358
|
325 // Restore saved modes. |
|
326 |
529
|
327 s = save_term; |
|
328 } |
3658
|
329 |
529
|
330 ioctl (tty_fd, TIOCSETN, &s); |
|
331 } |
|
332 #else |
4064
|
333 warning ("no support for raw mode console I/O on this system"); |
|
334 |
|
335 // Make sure the current mode doesn't toggle. |
|
336 on = curr_on; |
529
|
337 #endif |
|
338 |
|
339 curr_on = on; |
|
340 } |
|
341 |
767
|
342 // Read one character from the terminal. |
|
343 |
529
|
344 int |
4067
|
345 octave_kbhit (bool wait) |
529
|
346 { |
4067
|
347 #ifdef HAVE__KBHIT |
4081
|
348 int c = (! wait && ! _kbhit ()) ? 0 : std::cin.get (); |
4067
|
349 #else |
3658
|
350 raw_mode (true, wait); |
|
351 |
|
352 int c = std::cin.get (); |
|
353 |
|
354 if (std::cin.fail () || std::cin.eof ()) |
|
355 std::cin.clear (); |
|
356 |
|
357 raw_mode (false, true); |
4067
|
358 #endif |
3658
|
359 |
529
|
360 return c; |
|
361 } |
|
362 |
1957
|
363 DEFUN (clc, , , |
3332
|
364 "-*- texinfo -*-\n\ |
|
365 @deftypefn {Built-in Function} {} clc ()\n\ |
|
366 @deftypefnx {Built-in Function} {} home ()\n\ |
|
367 Clear the terminal screen and move the cursor to the upper left corner.\n\ |
3333
|
368 @end deftypefn") |
529
|
369 { |
2926
|
370 command_editor::clear_screen (); |
529
|
371 |
2926
|
372 return octave_value_list (); |
529
|
373 } |
|
374 |
549
|
375 DEFALIAS (home, clc); |
|
376 |
1957
|
377 DEFUN (getenv, args, , |
3301
|
378 "-*- texinfo -*-\n\ |
|
379 @deftypefn {Built-in Function} {} getenv (@var{var})\n\ |
|
380 Return the value of the environment variable @var{var}. For example,\n\ |
|
381 \n\ |
|
382 @example\n\ |
|
383 getenv (\"PATH\")\n\ |
|
384 @end example\n\ |
|
385 \n\ |
|
386 @noindent\n\ |
|
387 returns a string containing the value of your path.\n\ |
|
388 @end deftypefn") |
529
|
389 { |
2086
|
390 octave_value_list retval; |
529
|
391 |
|
392 int nargin = args.length (); |
|
393 |
712
|
394 if (nargin == 1) |
529
|
395 { |
3523
|
396 std::string name = args(0).string_value (); |
636
|
397 |
|
398 if (! error_state) |
2926
|
399 retval = octave_env::getenv (name); |
529
|
400 } |
|
401 else |
|
402 print_usage ("getenv"); |
|
403 |
|
404 return retval; |
|
405 } |
|
406 |
1957
|
407 DEFUN (putenv, args, , |
3301
|
408 "-*- texinfo -*-\n\ |
|
409 @deftypefn {Built-in Function} {} putenv (@var{var}, @var{value})\n\ |
|
410 Set the value of the environment variable @var{var} to @var{value}.\n\ |
|
411 @end deftypefn") |
1706
|
412 { |
2086
|
413 octave_value_list retval; |
1706
|
414 |
|
415 int nargin = args.length (); |
|
416 |
|
417 if (nargin == 2) |
|
418 { |
3523
|
419 std::string var = args(0).string_value (); |
1706
|
420 |
|
421 if (! error_state) |
|
422 { |
3523
|
423 std::string val = args(1).string_value (); |
1706
|
424 |
|
425 if (! error_state) |
2926
|
426 octave_env::putenv (var, val); |
1706
|
427 else |
|
428 error ("putenv: second argument should be a string"); |
|
429 } |
|
430 else |
|
431 error ("putenv: first argument should be a string"); |
|
432 } |
|
433 else |
|
434 print_usage ("putenv"); |
|
435 |
|
436 return retval; |
|
437 } |
|
438 |
3372
|
439 // XXX FIXME XXX -- perhaps kbhit should also be able to print a prompt? |
|
440 |
3657
|
441 DEFUN (kbhit, args, , |
3372
|
442 "-*- texinfo -*-\n\ |
|
443 @deftypefn {Built-in Function} {} kbhit ()\n\ |
3657
|
444 Read a single keystroke from the keyboard. If called with one\n\ |
|
445 argument, don't wait for a keypress. For example,\n\ |
3372
|
446 \n\ |
|
447 @example\n\ |
|
448 x = kbhit ();\n\ |
|
449 @end example\n\ |
|
450 \n\ |
|
451 @noindent\n\ |
|
452 will set @var{x} to the next character typed at the keyboard as soon as\n\ |
|
453 it is typed.\n\ |
3657
|
454 \n\ |
|
455 @example\n\ |
|
456 x = kbhit (1);\n\ |
|
457 @end example\n\ |
|
458 \n\ |
|
459 @noindent\n\ |
|
460 identical to the above example, but don't wait for a keypress,\n\ |
|
461 returning the empty string if no key is available.\n\ |
3372
|
462 @end deftypefn") |
529
|
463 { |
2086
|
464 octave_value_list retval; |
529
|
465 |
1358
|
466 // XXX FIXME XXX -- add timeout and default value args? |
529
|
467 |
3676
|
468 if (interactive || forced_interactive) |
529
|
469 { |
4067
|
470 int c = octave_kbhit (args.length () == 0); |
3657
|
471 |
3658
|
472 if (c == -1) |
|
473 c = 0; |
3657
|
474 |
529
|
475 char *s = new char [2]; |
|
476 s[0] = c; |
|
477 s[1] = '\0'; |
|
478 retval = s; |
|
479 } |
|
480 |
|
481 return retval; |
|
482 } |
|
483 |
1957
|
484 DEFUN (pause, args, , |
3301
|
485 "-*- texinfo -*-\n\ |
|
486 @deftypefn {Built-in Function} {} pause (@var{seconds})\n\ |
|
487 Suspend the execution of the program. If invoked without any arguments,\n\ |
|
488 Octave waits until you type a character. With a numeric argument, it\n\ |
|
489 pauses for the given number of seconds. For example, the following\n\ |
|
490 statement prints a message and then waits 5 seconds before clearing the\n\ |
|
491 screen.\n\ |
|
492 \n\ |
|
493 @example\n\ |
|
494 @group\n\ |
|
495 fprintf (stderr, \"wait please...\n\");\n\ |
|
496 pause (5);\n\ |
|
497 clc;\n\ |
|
498 @end group\n\ |
|
499 @end example\n\ |
|
500 @end deftypefn") |
529
|
501 { |
2086
|
502 octave_value_list retval; |
529
|
503 |
|
504 int nargin = args.length (); |
|
505 |
712
|
506 if (! (nargin == 0 || nargin == 1)) |
529
|
507 { |
|
508 print_usage ("pause"); |
|
509 return retval; |
|
510 } |
|
511 |
1579
|
512 if (nargin == 1) |
529
|
513 { |
1579
|
514 double dval = args(0).double_value (); |
636
|
515 |
1579
|
516 if (! error_state) |
|
517 { |
|
518 if (xisnan (dval)) |
|
519 warning ("pause: NaN is an invalid delay"); |
2630
|
520 else if (xisinf (dval)) |
3234
|
521 { |
|
522 flush_octave_stdout (); |
4067
|
523 octave_kbhit (); |
3234
|
524 } |
1579
|
525 else |
4086
|
526 octave_sleep (dval); |
529
|
527 } |
|
528 } |
1579
|
529 else |
3234
|
530 { |
|
531 flush_octave_stdout (); |
4067
|
532 octave_kbhit (); |
3234
|
533 } |
2630
|
534 |
|
535 return retval; |
|
536 } |
|
537 |
|
538 DEFUN (sleep, args, , |
3301
|
539 "-*- texinfo -*-\n\ |
|
540 @deftypefn {Built-in Function} {} sleep (@var{seconds})\n\ |
|
541 Suspend the execution of the program for the given number of seconds.\n\ |
|
542 @end deftypefn") |
2630
|
543 { |
|
544 octave_value_list retval; |
|
545 |
|
546 if (args.length () == 1) |
1579
|
547 { |
2630
|
548 double dval = args(0).double_value (); |
|
549 |
|
550 if (! error_state) |
|
551 { |
|
552 if (xisnan (dval)) |
|
553 warning ("sleep: NaN is an invalid delay"); |
|
554 else |
4086
|
555 octave_sleep (dval); |
2630
|
556 } |
1579
|
557 } |
2630
|
558 else |
|
559 print_usage ("sleep"); |
|
560 |
|
561 return retval; |
|
562 } |
|
563 |
|
564 DEFUN (usleep, args, , |
3301
|
565 "-*- texinfo -*-\n\ |
|
566 @deftypefn {Built-in Function} {} usleep (@var{microseconds})\n\ |
|
567 Suspend the execution of the program for the given number of\n\ |
|
568 microseconds. On systems where it is not possible to sleep for periods\n\ |
|
569 of time less than one second, @code{usleep} will pause the execution for\n\ |
|
570 @code{round (@var{microseconds} / 1e6)} seconds.\n\ |
|
571 @end deftypefn") |
2630
|
572 { |
|
573 octave_value_list retval; |
|
574 |
|
575 if (args.length () == 1) |
|
576 { |
|
577 double dval = args(0).double_value (); |
|
578 |
|
579 if (! error_state) |
|
580 { |
|
581 if (xisnan (dval)) |
|
582 warning ("usleep: NaN is an invalid delay"); |
|
583 else |
|
584 { |
|
585 int delay = NINT (dval); |
2631
|
586 |
2630
|
587 if (delay > 0) |
3308
|
588 octave_usleep (delay); |
2630
|
589 } |
|
590 } |
|
591 } |
|
592 else |
|
593 print_usage ("usleep"); |
529
|
594 |
|
595 return retval; |
|
596 } |
|
597 |
862
|
598 // XXX FIXME XXX -- maybe this should only return 1 if IEEE floating |
|
599 // point functions really work. |
|
600 |
1957
|
601 DEFUN (isieee, , , |
3301
|
602 "-*- texinfo -*-\n\ |
|
603 @deftypefn {Built-in Function} {} isieee ()\n\ |
|
604 Return 1 if your computer claims to conform to the IEEE standard for\n\ |
|
605 floating point calculations.\n\ |
|
606 @end deftypefn") |
862
|
607 { |
2317
|
608 oct_mach_info::float_format flt_fmt = |
|
609 oct_mach_info::native_float_format (); |
|
610 |
2800
|
611 return static_cast<double> (flt_fmt == oct_mach_info::ieee_little_endian |
|
612 || flt_fmt == oct_mach_info::ieee_big_endian); |
862
|
613 } |
|
614 |
1957
|
615 DEFUN (tilde_expand, args, , |
3301
|
616 "-*- texinfo -*-\n\ |
|
617 @deftypefn {Built-in Function} {} tilde_expand (@var{string})\n\ |
|
618 Performs tilde expansion on @var{string}. If @var{string} begins with a\n\ |
|
619 tilde character, (@samp{~}), all of the characters preceding the first\n\ |
|
620 slash (or all characters, if there is no slash) are treated as a\n\ |
|
621 possible user name, and the tilde and the following characters up to the\n\ |
|
622 slash are replaced by the home directory of the named user. If the\n\ |
|
623 tilde is followed immediately by a slash, the tilde is replaced by the\n\ |
|
624 home directory of the user running Octave. For example,\n\ |
|
625 \n\ |
|
626 @example\n\ |
|
627 @group\n\ |
|
628 tilde_expand (\"~joeuser/bin\")\n\ |
|
629 @result{} \"/home/joeuser/bin\"\n\ |
|
630 tilde_expand (\"~/bin\")\n\ |
|
631 @result{} \"/home/jwe/bin\"\n\ |
|
632 @end group\n\ |
|
633 @end example\n\ |
|
634 @end deftypefn") |
1750
|
635 { |
2086
|
636 octave_value_list retval; |
1750
|
637 |
|
638 int nargin = args.length (); |
|
639 |
|
640 if (nargin == 1) |
2926
|
641 retval = file_ops::tilde_expand (args(0).all_strings ()); |
1750
|
642 else |
|
643 print_usage ("tilde_expand"); |
|
644 |
|
645 return retval; |
|
646 } |
|
647 |
2552
|
648 #if defined (__EMX__) && defined (OS2) |
|
649 |
|
650 DEFUN_TEXT (extproc, , , |
2926
|
651 "extproc: ignored by Octave") |
2552
|
652 { |
|
653 return octave_value_list (); |
|
654 } |
|
655 |
|
656 DEFALIAS (EXTPROC, extproc); |
|
657 |
|
658 #endif |
|
659 |
529
|
660 /* |
1
|
661 ;;; Local Variables: *** |
|
662 ;;; mode: C++ *** |
|
663 ;;; End: *** |
|
664 */ |