diff options
author | Adrian Thurston <thurston@complang.org> | 2013-02-10 09:47:44 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2013-02-10 09:47:44 -0500 |
commit | c6b71985f817f6b5e4c7d1ec6f19383404507396 (patch) | |
tree | 177de85a204e0d7b95dba32907ee9609eb7c062a /colm | |
parent | d0274f50a36f9e0c28bdbd6a230a775c661b2ecb (diff) | |
download | colm-c6b71985f817f6b5e4c7d1ec6f19383404507396.tar.gz |
added the WC and WV context for stdin/stdout/sterr get
Diffstat (limited to 'colm')
-rw-r--r-- | colm/synthesis.cc | 8 |
1 files changed, 7 insertions, 1 deletions
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 ); } |