Mercurial > octave
annotate libinterp/corefcn/sysdep.h @ 22165:20e684ec108e
move system dependent code to sysdep.cc
* octave-gui.cc (set_win_app_id): Move to sysdep.cc and rename to
set_application_id.
* sysdep.h: Provide decl.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 22 Jul 2016 15:26:58 -0400 |
parents | 6bce4d23af6b |
children | bac0d6f07a3e |
rev | line source |
---|---|
1 | 1 /* |
2 | |
19697
4197fc428c7d
maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents:
17787
diff
changeset
|
3 Copyright (C) 1993-2015 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 | |
20791
f7084eae3318
maint: Use Octave coding conventions for #if statements.
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
23 #if ! defined (octave_sysdep_h) |
383 | 24 #define octave_sysdep_h 1 |
1 | 25 |
21244
1473547f50f5
include octave-config.h in public header files
John W. Eaton <jwe@octave.org>
parents:
21200
diff
changeset
|
26 #include "octave-config.h" |
1473547f50f5
include octave-config.h in public header files
John W. Eaton <jwe@octave.org>
parents:
21200
diff
changeset
|
27 |
6726 | 28 #include <cstdio> |
29 | |
1750 | 30 #include <string> |
1690 | 31 |
1966 | 32 #include "lo-ieee.h" |
2926 | 33 #include "lo-sysdep.h" |
1966 | 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_init (void); |
1 | 36 |
22165
20e684ec108e
move system dependent code to sysdep.cc
John W. Eaton <jwe@octave.org>
parents:
21989
diff
changeset
|
37 extern OCTINTERP_API void set_application_id (void); |
20e684ec108e
move system dependent code to sysdep.cc
John W. Eaton <jwe@octave.org>
parents:
21989
diff
changeset
|
38 |
16082
7285f607b383
Mark sysdep_init/sysdep_cleanup for export.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
15195
diff
changeset
|
39 extern OCTINTERP_API void sysdep_cleanup (void); |
5451 | 40 |
6972 | 41 extern OCTINTERP_API void raw_mode (bool, bool wait = true); |
3657 | 42 |
6972 | 43 extern OCTINTERP_API FILE *octave_popen (const char *command, const char *mode); |
44 extern OCTINTERP_API int octave_pclose (FILE *f); | |
6726 | 45 |
6693 | 46 extern OCTINTERP_API int octave_kbhit (bool wait = true); |
529 | 47 |
12228
0f70c5db58c3
try to get better value than \ for P_tmpdir on Windows systems
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
48 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
|
49 |
17787
175b392e91fe
Use GNU style coding conventions for code in libinterp/
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
50 extern OCTINTERP_API bool same_file_internal (const std::string&, |
175b392e91fe
Use GNU style coding conventions for code in libinterp/
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
51 const std::string&); |
6598 | 52 |
1 | 53 #endif |