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