Mercurial > hg > truffle
comparison src/share/vm/adlc/filebuff.hpp @ 6850:d336b3173277
8000592: Improve adlc usability
Summary: several changes to adlc to improve its usability
Reviewed-by: kvn
Contributed-by: goetz.lindenmaier@sap.com
author | kvn |
---|---|
date | Tue, 09 Oct 2012 16:09:31 -0700 |
parents | f95d63e2154a |
children |
comparison
equal
deleted
inserted
replaced
6849:f6badecb7ea7 | 6850:d336b3173277 |
---|---|
29 #include <iostream> | 29 #include <iostream> |
30 | 30 |
31 using namespace std; | 31 using namespace std; |
32 | 32 |
33 // STRUCTURE FOR HANDLING INPUT AND OUTPUT FILES | 33 // STRUCTURE FOR HANDLING INPUT AND OUTPUT FILES |
34 typedef struct { | 34 |
35 class BufferedFile { | |
36 public: | |
35 const char *_name; | 37 const char *_name; |
36 FILE *_fp; | 38 FILE *_fp; |
37 } BufferedFile; | 39 inline BufferedFile() { _name = NULL; _fp = NULL; }; |
40 inline ~BufferedFile() {}; | |
41 }; | |
38 | 42 |
39 class ArchDesc; | 43 class ArchDesc; |
40 | 44 |
41 //------------------------------FileBuff-------------------------------------- | 45 //------------------------------FileBuff-------------------------------------- |
42 // This class defines a nicely behaved buffer of text. Entire file of text | 46 // This class defines a nicely behaved buffer of text. Entire file of text |