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