Mercurial > hg > octave-lyh
annotate libinterp/corefcn/sysdep.h @ 17535:c12c688a35ed default tip lyh
Fix warnings
author | LYH <lyh.kernel@gmail.com> |
---|---|
date | Fri, 27 Sep 2013 17:43:27 +0800 |
parents | 68fc671a9339 |
children |
rev | line source |
---|---|
1 | 1 /* |
2 | |
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
12228
diff
changeset
|
3 Copyright (C) 1993-2012 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 |
16082
7285f607b383
Mark sysdep_init/sysdep_cleanup for export.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
15195
diff
changeset
|
33 extern OCTINTERP_API void sysdep_init (void); |
1 | 34 |
16082
7285f607b383
Mark sysdep_init/sysdep_cleanup for export.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
15195
diff
changeset
|
35 extern OCTINTERP_API void sysdep_cleanup (void); |
5451 | 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 |
12228
0f70c5db58c3
try to get better value than \ for P_tmpdir on Windows systems
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
44 extern OCTINTERP_API std::string get_P_tmpdir (void); |
0f70c5db58c3
try to get better value than \ for P_tmpdir on Windows systems
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
45 |
5451 | 46 extern void w32_set_quiet_shutdown (void); |
47 | |
48 #if defined (__WIN32__) && ! defined (_POSIX_VERSION) | |
49 extern void MINGW_signal_cleanup (void); | |
50 #define MINGW_SIGNAL_CLEANUP() MINGW_signal_cleanup () | |
51 #else | |
52 #define MINGW_SIGNAL_CLEANUP() do { } while (0) | |
53 #endif | |
54 | |
6972 | 55 extern OCTINTERP_API bool same_file_internal (const std::string&, const std::string&); |
6598 | 56 |
1 | 57 #endif |