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 |
7016
|
9 Free Software Foundation; either version 3 of the License, or (at your |
|
10 option) any later version. |
1
|
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 |
7016
|
18 along with Octave; see the file COPYING. If not, see |
|
19 <http://www.gnu.org/licenses/>. |
1
|
20 |
|
21 */ |
|
22 |
383
|
23 #if !defined (octave_sysdep_h) |
|
24 #define octave_sysdep_h 1 |
1
|
25 |
6726
|
26 #include <cstdio> |
|
27 |
1750
|
28 #include <string> |
1690
|
29 |
1966
|
30 #include "lo-ieee.h" |
2926
|
31 #include "lo-sysdep.h" |
1966
|
32 |
1
|
33 extern void sysdep_init (void); |
|
34 |
5451
|
35 extern void sysdep_cleanup (void); |
|
36 |
6972
|
37 extern OCTINTERP_API void raw_mode (bool, bool wait = true); |
3657
|
38 |
6972
|
39 extern OCTINTERP_API FILE *octave_popen (const char *command, const char *mode); |
|
40 extern OCTINTERP_API int octave_pclose (FILE *f); |
6726
|
41 |
6693
|
42 extern OCTINTERP_API int octave_kbhit (bool wait = true); |
529
|
43 |
5451
|
44 extern void w32_set_quiet_shutdown (void); |
|
45 |
|
46 #if defined (__WIN32__) && ! defined (_POSIX_VERSION) |
|
47 extern void MINGW_signal_cleanup (void); |
|
48 #define USE_W32_SIGINT 1 |
|
49 #define MINGW_SIGNAL_CLEANUP() MINGW_signal_cleanup () |
|
50 #else |
|
51 #define MINGW_SIGNAL_CLEANUP() do { } while (0) |
|
52 #endif |
|
53 |
6972
|
54 extern OCTINTERP_API bool same_file_internal (const std::string&, const std::string&); |
6598
|
55 |
1
|
56 #endif |
|
57 |
|
58 /* |
|
59 ;;; Local Variables: *** |
|
60 ;;; mode: C++ *** |
|
61 ;;; End: *** |
|
62 */ |