summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2013-02-10 09:47:44 -0500
committerAdrian Thurston <thurston@complang.org>2013-02-10 09:47:44 -0500
commitc6b71985f817f6b5e4c7d1ec6f19383404507396 (patch)
tree177de85a204e0d7b95dba32907ee9609eb7c062a
parentd0274f50a36f9e0c28bdbd6a230a775c661b2ecb (diff)
downloadcolm-c6b71985f817f6b5e4c7d1ec6f19383404507396.tar.gz
added the WC and WV context for stdin/stdout/sterr get
-rw-r--r--colm/synthesis.cc8
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 );
}