[Lemon-commits] Alpar Juttner: Merge
Lemon HG
hg at lemon.cs.elte.hu
Fri Dec 12 23:30:49 CET 2008
details: http://lemon.cs.elte.hu/hg/lemon/rev/5c69a36729cb
changeset: 455:5c69a36729cb
user: Alpar Juttner <alpar [at] cs.elte.hu>
date: Fri Dec 12 22:14:29 2008 +0000
description:
Merge
diffstat:
1 file changed, 12 insertions(+), 4 deletions(-)
lemon/lgf_reader.h | 16 ++++++++++++----
diffs (47 lines):
diff --git a/lemon/lgf_reader.h b/lemon/lgf_reader.h
--- a/lemon/lgf_reader.h
+++ b/lemon/lgf_reader.h
@@ -870,7 +870,9 @@
while (readSuccess() && line >> c && c != '@') {
readLine();
}
- line.putback(c);
+ if (readSuccess()) {
+ line.putback(c);
+ }
}
void readNodes() {
@@ -1699,7 +1701,9 @@
while (readSuccess() && line >> c && c != '@') {
readLine();
}
- line.putback(c);
+ if (readSuccess()) {
+ line.putback(c);
+ }
}
void readNodes() {
@@ -2226,7 +2230,9 @@
while (readSuccess() && line >> c && c != '@') {
readLine();
}
- line.putback(c);
+ if (readSuccess()) {
+ line.putback(c);
+ }
}
public:
@@ -2567,7 +2573,9 @@
while (readSuccess() && line >> c && c != '@') {
readLine();
}
- line.putback(c);
+ if (readSuccess()) {
+ line.putback(c);
+ }
}
void readMaps(std::vector<std::string>& maps) {
More information about the Lemon-commits
mailing list