-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcool-io.h
51 lines (36 loc) · 942 Bytes
/
cool-io.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// See copyright.h for copyright notice and limitation of liability
// and disclaimer of warranty provisions.
//
#include "copyright.h"
#ifndef COOL_IO_H
#define COOL_IO_H
//
// Cool files include this header to use the standard library's
// IO streams.
//
//By default use the ANSI standard iostream, etc.
#ifndef COOL_USE_OLD_HEADERS
# include <iostream>
using std::ostream;
using std::cout;
using std::cerr;
using std::endl;
# include <fstream>
using std::ofstream;
# include <iomanip>
using std::oct;
using std::dec;
using std::setw;
using std::setfill;
//Including the entire std namespace doesn't work well because of conflicts
//between e.g. std::plus and the plus AST node.
//using namespace std;
#else
// COOL_USE_OLD_HEADERS is defined
// I haven't actually tested this, but it ought to work
# include <iostream.h>
# include <fstream.h>
# include <iomanip.h>
#endif // COOL_USE_OLD_HEADERS
#endif //COOL_IO_H