DPI svSetScope is speced to return last scope, not new one

This commit is contained in:
Wilson Snyder
2009-12-08 21:35:15 -05:00
parent 6a2aa7e4f0
commit 3386466e7a
5 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -671,7 +671,7 @@ private:
AstCFunc* cfuncp = new AstCFunc(nodep->fileline(),
prefix + nodep->name() + suffix,
m_scopep,
((nodep->taskPublic() && rtnvarp)?rtnvarp->cpubArgType(true,true):""));
((nodep->taskPublic() && rtnvarp)?rtnvarp->cPubArgType(true,true):""));
// It's ok to combine imports because this is just a wrapper; duplicate wrappers can get merged.
cfuncp->dontCombine(!nodep->dpiImport());
cfuncp->entryPoint (!nodep->dpiImport());