ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
ctor
deferred_resn
demangler
enum
forall-pointer-decay
gc_noraii
jacob/cs343-translation
jenkins-sandbox
memory
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
string
with_gc
Last change
on this file since 2bae7307 was 843054c2, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago |
licencing: seventh groups of files
|
-
Property mode
set to
100644
|
File size:
671 bytes
|
Rev | Line | |
---|
[42dcae7] | 1 | #ifndef __FSTREAM_H__
|
---|
| 2 | #define __FSTREAM_H__
|
---|
[51b73452] | 3 |
|
---|
| 4 | #include "iostream.h"
|
---|
| 5 |
|
---|
| 6 | typedef struct ofstream ofstream;
|
---|
| 7 |
|
---|
[134b86a] | 8 | // implement context ostream
|
---|
[51b73452] | 9 | ofstream *write( ofstream *, const char *, streamsize_type );
|
---|
| 10 | int fail( ofstream * );
|
---|
| 11 |
|
---|
| 12 | ofstream *ofstream_stdout();
|
---|
| 13 | ofstream *ofstream_stderr();
|
---|
| 14 | ofstream *ofstream_fromfile( const char *name );
|
---|
| 15 | void ofstream_close( ofstream *os );
|
---|
| 16 |
|
---|
| 17 | typedef struct ifstream ifstream;
|
---|
| 18 |
|
---|
[134b86a] | 19 | // implement context istream
|
---|
[51b73452] | 20 | ifstream *read( ifstream *, char *, streamsize_type );
|
---|
| 21 | ifstream *unread( ifstream *, char );
|
---|
| 22 | int fail( ifstream * );
|
---|
| 23 | int eof( ifstream * );
|
---|
| 24 |
|
---|
| 25 | ifstream *ifstream_stdin();
|
---|
| 26 | ifstream *ifstream_fromfile( const char *name );
|
---|
| 27 |
|
---|
[42dcae7] | 28 | #endif // __FSTREAM_H__
|
---|
Note:
See
TracBrowser
for help on using the repository browser.