git://www.ginac.de
/
ginac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb6b3d8
)
lexer: when switching to another output stream, clean last read character.
author
Alexei Sheplyakov
<varg@theor.jinr.ru>
Mon, 25 Aug 2008 13:49:58 +0000
(17:49 +0400)
committer
Alexei Sheplyakov
<varg@theor.jinr.ru>
Tue, 9 Sep 2008 08:32:49 +0000
(12:32 +0400)
Otherwise we prepend to the current stream the last character read from
the previous stream, which is obviously incorrect.
ginac/parser/lexer.cpp
patch
|
blob
|
history
diff --git
a/ginac/parser/lexer.cpp
b/ginac/parser/lexer.cpp
index ed1f894fea381bdc9c553d9a2811ff12b1697bcb..894a2ad8afeef8ae484eca01274290dc00074815 100644
(file)
--- a/
ginac/parser/lexer.cpp
+++ b/
ginac/parser/lexer.cpp
@@
-126,6
+126,7
@@
void lexer::switch_input(std::istream* in)
input = in;
line_num = 0;
column = 0;
+ c = ' ';
}
} // namespace GiNaC