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 |
1966
|
29 #include "lo-ieee.h" |
|
30 |
1
|
31 extern void sysdep_init (void); |
|
32 |
529
|
33 extern void raw_mode (int); |
|
34 extern int kbhit (void); |
|
35 |
1755
|
36 extern string octave_getcwd (void); |
|
37 extern int octave_chdir (const string&); |
529
|
38 |
1467
|
39 #if !defined (HAVE_GETHOSTNAME) && defined (HAVE_SYS_UTSNAME_H) |
1600
|
40 extern int gethostname (char *, int); |
1467
|
41 #endif |
529
|
42 |
1413
|
43 // Nonzero if the machine we are running on is big-endian. |
1414
|
44 extern int octave_words_big_endian; |
1413
|
45 |
1750
|
46 extern string oct_tilde_expand (const string&); |
|
47 |
1
|
48 #endif |
|
49 |
|
50 /* |
|
51 ;;; Local Variables: *** |
|
52 ;;; mode: C++ *** |
|
53 ;;; page-delimiter: "^/\\*" *** |
|
54 ;;; End: *** |
|
55 */ |