From 95d21181110212d91e85a09cbe2558a9e2c9ee14 Mon Sep 17 00:00:00 2001 From: sebastien <sebastien@ac1d8469-bf42-47a9-8791-bf33cf982152> Date: Fri, 28 Mar 2008 17:45:40 +0000 Subject: [PATCH] v4 preprocessor/macro: minor fix git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1753 ac1d8469-bf42-47a9-8791-bf33cf982152 --- macro/MacroBison.yy | 2 +- macro/MacroDriver.hh | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/macro/MacroBison.yy b/macro/MacroBison.yy index b5d9601e..7e23011e 100644 --- a/macro/MacroBison.yy +++ b/macro/MacroBison.yy @@ -106,7 +106,7 @@ statement_list : statement EOL ; statement : expr - { *driver.out_stream << $1->toString(); } + { out << $1->toString(); } | DEFINE NAME EQUAL expr { driver.set_variable(*$2, $4); delete $2; } | FOR NAME IN expr diff --git a/macro/MacroDriver.hh b/macro/MacroDriver.hh index bd1f1b80..7f4c0b85 100644 --- a/macro/MacroDriver.hh +++ b/macro/MacroDriver.hh @@ -170,9 +170,6 @@ public: //! Reference to the lexer class MacroFlex *lexer; - //! Copy of output stream - ostream *out_stream; - //! Used to store the value of the last @if condition bool last_if; -- GitLab