Commit | Line | Data |
---|---|---|
15637ed4 RG |
1 | /* |
2 | Copyright (C) 1988 Free Software Foundation | |
3 | written by Doug Lea (dl@rocky.oswego.edu) | |
4 | ||
5 | This file is part of GNU CC. | |
6 | ||
7 | GNU CC is distributed in the hope that it will be useful, | |
8 | but WITHOUT ANY WARRANTY. No author or distributor | |
9 | accepts responsibility to anyone for the consequences of using it | |
10 | or for whether it serves any particular purpose or works at all, | |
11 | unless he says so in writing. Refer to the GNU CC General Public | |
12 | License for full details. | |
13 | ||
14 | Everyone is granted permission to copy, modify and redistribute | |
15 | GNU CC, but only under the conditions described in the | |
16 | GNU CC General Public License. A copy of this license is | |
17 | supposed to have been given to you along with GNU CC so you | |
18 | can know your rights and responsibilities. It should be in a | |
19 | file named COPYING. Among other things, the copyright notice | |
20 | and this notice must be preserved on all copies. | |
21 | */ | |
22 | ||
23 | #ifdef __GNUG__ | |
24 | #pragma implementation | |
25 | #endif | |
26 | #include <SFile.h> | |
27 | ||
28 | SFile::SFile() {} | |
29 | SFile::~SFile() {} | |
30 | ||
31 | SFile::SFile(const char* filename, int size, io_mode m, access_mode a) | |
32 | : (filename, m, a) | |
33 | { | |
34 | sz = size; | |
35 | } | |
36 | ||
37 | SFile::SFile(const char* filename, int size, const char* m) | |
38 | : (filename, m) | |
39 | { | |
40 | sz = size; | |
41 | } | |
42 | ||
43 | SFile::SFile(int filedesc, int size, io_mode m) | |
44 | : (filedesc, m) | |
45 | { | |
46 | sz = size; | |
47 | } | |
48 | ||
49 | SFile::SFile(FILE* fileptr, int size) | |
50 | : (fileptr) | |
51 | { | |
52 | sz = size; | |
53 | } |