source: translator/examples/fstream.h @ 134b86a

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since 134b86a was 134b86a, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago

add compiler flag to driver, update examples, fix unnamed bit fields

  • Property mode set to 100644
File size: 659 bytes
RevLine 
[51b7345]1#ifndef FSTREAM_H
2#define FSTREAM_H
3
4#include "iostream.h"
5
6typedef struct ofstream ofstream;
7
[134b86a]8// implement context ostream
[51b7345]9ofstream *write( ofstream *, const char *, streamsize_type );
10int fail( ofstream * );
11
12ofstream *ofstream_stdout();
13ofstream *ofstream_stderr();
14ofstream *ofstream_fromfile( const char *name );
15void ofstream_close( ofstream *os );
16
17typedef struct ifstream ifstream;
18
[134b86a]19// implement context istream
[51b7345]20ifstream *read( ifstream *, char *, streamsize_type );
21ifstream *unread( ifstream *, char );
22int fail( ifstream * );
23int eof( ifstream * );
24
25ifstream *ifstream_stdin();
26ifstream *ifstream_fromfile( const char *name );
27
[134b86a]28#endif // FSTREAM_H
Note: See TracBrowser for help on using the repository browser.