From c6b71985f817f6b5e4c7d1ec6f19383404507396 Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Sun, 10 Feb 2013 09:47:44 -0500 Subject: added the WC and WV context for stdin/stdout/sterr get --- colm/synthesis.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/colm/synthesis.cc b/colm/synthesis.cc index bc40af95..ad065343 100644 --- a/colm/synthesis.cc +++ b/colm/synthesis.cc @@ -3247,7 +3247,9 @@ void Compiler::addStdin() el->beenInitialized = true; el->isConst = true; el->useOffset = false; - el->inGetR = IN_GET_STDIN; + el->inGetR = IN_GET_STDIN; + el->inGetWC = IN_GET_STDIN; + el->inGetWV = IN_GET_STDIN; globalObjectDef->insertField( el->name, el ); } @@ -3263,6 +3265,8 @@ void Compiler::addStdout() el->isConst = true; el->useOffset = false; el->inGetR = IN_GET_STDOUT; + el->inGetWC = IN_GET_STDOUT; + el->inGetWV = IN_GET_STDOUT; globalObjectDef->insertField( el->name, el ); } @@ -3278,6 +3282,8 @@ void Compiler::addStderr() el->isConst = true; el->useOffset = false; el->inGetR = IN_GET_STDERR; + el->inGetWC = IN_GET_STDERR; + el->inGetWV = IN_GET_STDERR; globalObjectDef->insertField( el->name, el ); } -- cgit v1.2.1