1
|
1 // sysdep.h -*- C++ -*- |
|
2 /* |
|
3 |
1009
|
4 Copyright (C) 1992, 1993, 1994, 1995 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 |
|
27 extern void sysdep_init (void); |
|
28 |
529
|
29 extern void raw_mode (int); |
|
30 extern int kbhit (void); |
|
31 |
1126
|
32 extern char *octave_getcwd (char *, int); |
1128
|
33 extern int octave_chdir (const char *); |
529
|
34 |
1467
|
35 #if !defined (HAVE_GETHOSTNAME) && defined (HAVE_SYS_UTSNAME_H) |
1600
|
36 extern int gethostname (char *, int); |
1467
|
37 #endif |
529
|
38 |
444
|
39 // Octave's idea of infinity. |
|
40 extern double octave_Inf; |
|
41 |
|
42 // Octave's idea of not a number. |
|
43 extern double octave_NaN; |
|
44 |
1223
|
45 enum floating_point_format |
|
46 { |
|
47 OCTAVE_IEEE_LITTLE, |
|
48 OCTAVE_IEEE_BIG, |
|
49 OCTAVE_VAX_D, |
|
50 OCTAVE_VAX_G, |
|
51 OCTAVE_CRAY, |
|
52 OCTAVE_UNKNOWN_FLT_FMT, |
|
53 }; |
|
54 |
|
55 // The floating point format on this system. |
|
56 extern floating_point_format native_float_format; |
|
57 |
1413
|
58 // Nonzero if the machine we are running on is big-endian. |
1414
|
59 extern int octave_words_big_endian; |
1413
|
60 |
1
|
61 #endif |
|
62 |
|
63 /* |
|
64 ;;; Local Variables: *** |
|
65 ;;; mode: C++ *** |
|
66 ;;; page-delimiter: "^/\\*" *** |
|
67 ;;; End: *** |
|
68 */ |