Skip to content

Commit

Permalink
-Changed to using Print.saveAndClearBuf and Print.restoreBuf in funct…
Browse files Browse the repository at this point in the history
…ion textString.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15310 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Peter Aronsson committed Feb 25, 2013
1 parent 6a02fca commit fb9af63
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Compiler/Template/Tpl.mo
Original file line number Diff line number Diff line change
Expand Up @@ -751,15 +751,14 @@ algorithm
outString := matchcontinue (inText)
local
Text txt;
String str, buf_old;
String str;
Integer handle;
case (txt)
equation
buf_old = Print.getString();
Print.clearBuf();
handle = Print.saveAndClearBuf();
textStringBuf(txt);
str = Print.getString();
Print.clearBuf();
Print.printBuf(buf_old);
Print.restoreBuf(handle);
then
str;

Expand Down

0 comments on commit fb9af63

Please sign in to comment.