#include "lyxlex.h"
-#include "support/gzstream.h"
+#ifdef USE_COMPRESSION
+# include "support/gzstream.h"
+#endif
#include <boost/utility.hpp>
+#include <fstream>
+#include <istream>
#include <stack>
#include <vector>
///
-struct LyXLex::Pimpl : boost::noncopyable {
+class LyXLex::Pimpl : boost::noncopyable {
+public:
///
Pimpl(keyword_item * tab, int num);
///
bool nextToken();
///
void pushToken(std::string const &);
- /// fb__ is only used to open files, the stream is accessed through is.
- std::filebuf fb__;
- /// gz__ is only used to open files, the stream is accessed through is.
- gz::gzstreambuf gz__;
+ /// fb_ is only used to open files, the stream is accessed through is.
+ std::filebuf fb_;
+
+#ifdef USE_COMPRESSION
+ /// gz_ is only used to open files, the stream is accessed through is.
+ gz::gzstreambuf gz_;
+#endif
/// the stream that we use.
std::istream is;
///
void verifyTable();
///
- struct pushed_table {
+ class pushed_table {
+ public:
///
pushed_table()
: table_elem(0), table_siz(0) {}