DPI: Support strings in DPI Imports

This commit is contained in:
Wilson Snyder
2010-01-17 15:10:37 -05:00
parent 08b63b4f01
commit 788f69a8c9
19 changed files with 192 additions and 28 deletions
+3
View File
@@ -592,6 +592,9 @@ private:
stmt += "(void*)";
}
stmt += portp->name()+frSuffix;
if (portp->basicp() && portp->basicp()->keyword()==AstBasicDTypeKwd::STRING) {
stmt += ".c_str()";
}
}
stmt += ";\n";
return new AstCStmt(portp->fileline(), stmt);