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 "tree-const.h" |
|
34 #include "utils.h" |
|
35 #include <Pix.h> |
|
36 #include <stdio.h> |
|
37 |
|
38 extern Pix return_valid_file (tree_constant& arg); |
|
39 |
|
40 extern tree_constant *fclose_internal (tree_constant *args); |
|
41 |
|
42 extern tree_constant *fflush_internal (tree_constant *args); |
|
43 |
|
44 extern tree_constant *fgets_internal (tree_constant *args, int nargout); |
|
45 |
|
46 extern tree_constant *fopen_internal (tree_constant *args); |
|
47 |
|
48 extern tree_constant *freport_internal (); |
|
49 |
|
50 extern tree_constant *frewind_internal (tree_constant *args); |
|
51 |
|
52 extern tree_constant *fseek_internal (tree_constant *args, int nargin); |
|
53 |
|
54 extern tree_constant *ftell_internal (tree_constant *args); |
|
55 |
|
56 extern void initialize_file_io (); |
|
57 |
|
58 extern void close_files (); |
|
59 |
|
60 extern tree_constant *do_printf (char *type, tree_constant *args, |
|
61 int nargin, int nargout); |
|
62 |
|
63 extern tree_constant *do_scanf (char *type, tree_constant *args, |
|
64 int nargin, int nargout); |
|
65 |
|
66 #endif |
|
67 |
|
68 /* |
|
69 ;;; Local Variables: *** |
|
70 ;;; mode: C++ *** |
|
71 ;;; page-delimiter: "^/\\*" *** |
|
72 ;;; End: *** |
|
73 */ |