1
|
1 // sysdep.h -*- C++ -*- |
|
2 /* |
|
3 |
1884
|
4 Copyright (C) 1996 John W. Eaton |
1
|
5 |
|
6 This file is part of Octave. |
|
7 |
|
8 Octave is free software; you can redistribute it and/or modify it |
|
9 under the terms of the GNU General Public License as published by the |
|
10 Free Software Foundation; either version 2, or (at your option) any |
|
11 later version. |
|
12 |
|
13 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 for more details. |
|
17 |
|
18 You should have received a copy of the GNU General Public License |
|
19 along with Octave; see the file COPYING. If not, write to the Free |
1315
|
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
1
|
21 |
|
22 */ |
|
23 |
383
|
24 #if !defined (octave_sysdep_h) |
|
25 #define octave_sysdep_h 1 |
1
|
26 |
1750
|
27 #include <string> |
1690
|
28 |
1
|
29 extern void sysdep_init (void); |
|
30 |
529
|
31 extern void raw_mode (int); |
|
32 extern int kbhit (void); |
|
33 |
1755
|
34 extern string octave_getcwd (void); |
|
35 extern int octave_chdir (const string&); |
529
|
36 |
1467
|
37 #if !defined (HAVE_GETHOSTNAME) && defined (HAVE_SYS_UTSNAME_H) |
1600
|
38 extern int gethostname (char *, int); |
1467
|
39 #endif |
529
|
40 |
444
|
41 // Octave's idea of infinity. |
|
42 extern double octave_Inf; |
|
43 |
|
44 // Octave's idea of not a number. |
|
45 extern double octave_NaN; |
|
46 |
1223
|
47 enum floating_point_format |
|
48 { |
|
49 OCTAVE_IEEE_LITTLE, |
|
50 OCTAVE_IEEE_BIG, |
|
51 OCTAVE_VAX_D, |
|
52 OCTAVE_VAX_G, |
|
53 OCTAVE_CRAY, |
|
54 OCTAVE_UNKNOWN_FLT_FMT, |
|
55 }; |
|
56 |
|
57 // The floating point format on this system. |
|
58 extern floating_point_format native_float_format; |
|
59 |
1413
|
60 // Nonzero if the machine we are running on is big-endian. |
1414
|
61 extern int octave_words_big_endian; |
1413
|
62 |
1750
|
63 extern string oct_tilde_expand (const string&); |
|
64 |
1
|
65 #endif |
|
66 |
|
67 /* |
|
68 ;;; Local Variables: *** |
|
69 ;;; mode: C++ *** |
|
70 ;;; page-delimiter: "^/\\*" *** |
|
71 ;;; End: *** |
|
72 */ |