daily automatic beautifier

This commit is contained in:
MosesAdmin 2015-06-14 00:00:44 +01:00
parent bd86ceffbe
commit 89c2df558c
3 changed files with 6 additions and 3 deletions

View File

@ -12,7 +12,8 @@ public:
gzfilebuf(const char *filename) {
_gzf = gzopen(filename, "rb");
if (!_gzf)
throw std::runtime_error("Could not open " + std::string(filename) + "."); setg (_buff+sizeof(int), // beginning of putback area
throw std::runtime_error("Could not open " + std::string(filename) + ".");
setg (_buff+sizeof(int), // beginning of putback area
_buff+sizeof(int), // read position
_buff+sizeof(int)); // end position
}

View File

@ -12,7 +12,8 @@ public:
gzfilebuf(const char *filename) {
_gzf = gzopen(filename, "rb");
if (!_gzf)
throw std::runtime_error("Could not open " + std::string(filename) + "."); setg (_buff+sizeof(int), // beginning of putback area
throw std::runtime_error("Could not open " + std::string(filename) + ".");
setg (_buff+sizeof(int), // beginning of putback area
_buff+sizeof(int), // read position
_buff+sizeof(int)); // end position
}

3
phrase-extract/lexical-reordering/gzfilebuf.h Executable file → Normal file
View File

@ -12,7 +12,8 @@ public:
gzfilebuf(const char *filename) {
_gzf = gzopen(filename, "rb");
if (!_gzf)
throw std::runtime_error("Could not open " + std::string(filename) + "."); setg (_buff+sizeof(int), // beginning of putback area
throw std::runtime_error("Could not open " + std::string(filename) + ".");
setg (_buff+sizeof(int), // beginning of putback area
_buff+sizeof(int), // read position
_buff+sizeof(int)); // end position
}