1
|
1 // file-io.h -*- C++ -*- |
|
2 /* |
|
3 |
|
4 Copyright (C) 1993 John W. Eaton |
|
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 |
|
20 Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
|
21 |
|
22 */ |
|
23 |
|
24 // Written by John C. Campbell <jcc@che.utexas.edu>. |
|
25 |
|
26 #if !defined (_files_h) |
|
27 #define _files_h 1 |
|
28 |
|
29 #ifdef __GNUG__ |
|
30 #pragma interface |
|
31 #endif |
|
32 |
|
33 #include <Pix.h> |
|
34 |
164
|
35 class tree_constant; |
1
|
36 |
164
|
37 extern Pix return_valid_file (const tree_constant& arg); |
1
|
38 |
164
|
39 extern tree_constant *fclose_internal (const tree_constant *args); |
|
40 extern tree_constant *fflush_internal (const tree_constant *args); |
|
41 extern tree_constant *fgets_internal (const tree_constant *args, int nargout); |
|
42 extern tree_constant *fopen_internal (const tree_constant *args); |
|
43 extern tree_constant *freport_internal (void); |
|
44 extern tree_constant *frewind_internal (const tree_constant *args); |
|
45 extern tree_constant *fseek_internal (const tree_constant *args, int nargin); |
|
46 extern tree_constant *ftell_internal (const tree_constant *args); |
1
|
47 |
164
|
48 extern void initialize_file_io (void); |
1
|
49 |
164
|
50 extern void close_files (void); |
1
|
51 |
164
|
52 extern tree_constant *do_printf (const char *type, const tree_constant *args, |
1
|
53 int nargin, int nargout); |
|
54 |
164
|
55 extern tree_constant *do_scanf (const char *type, const tree_constant *args, |
1
|
56 int nargin, int nargout); |
|
57 |
|
58 #endif |
|
59 |
|
60 /* |
|
61 ;;; Local Variables: *** |
|
62 ;;; mode: C++ *** |
|
63 ;;; page-delimiter: "^/\\*" *** |
|
64 ;;; End: *** |
|
65 */ |