]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlex_pimpl.h
More 'standard conformant blurb' nonsense.
[lyx.git] / src / lyxlex_pimpl.h
index d0ec72e4567c7c586b04cf7fc24507860c3d4f87..bc5876aba61f1e82dfaca4b284dfd1cd3b08e406 100644 (file)
@@ -5,19 +5,16 @@
 
 #include "lyxlex.h"
 
+#include "support/gzstream.h"
+
 #include <boost/utility.hpp>
 
 #include <fstream>
 #include <stack>
+#include <vector>
 
 ///
 struct LyXLex::Pimpl : boost::noncopyable {
-       ///
-       enum {
-               ///
-               LEX_MAX_BUFF = 2048
-       };
-
        ///
        Pimpl(keyword_item * tab, int num);
        ///
@@ -48,8 +45,11 @@ struct LyXLex::Pimpl : boost::noncopyable {
        bool nextToken();
        ///
        void pushToken(string const &);
-       /// fb__ is only used to open files, the stream is accessed through is
+       /// 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__;
+
        /// the stream that we use.
        std::istream is;
        ///
@@ -59,7 +59,7 @@ struct LyXLex::Pimpl : boost::noncopyable {
        ///
        int no_items;
        ///
-       char buff[LEX_MAX_BUFF];
+       std::vector<char> buff;
        ///
        int status;
        ///