Fix tick style on %p formats.

This commit is contained in:
Wilson Snyder 2020-10-16 19:26:04 -04:00
parent 44f938e507
commit 829db3eefa
3 changed files with 4 additions and 4 deletions

View File

@ -148,7 +148,7 @@ class CUseVisitor : public AstNVisitor {
funcp->isStatic(false);
funcp->protect(false);
AstNode* exprp = new AstCMath(nodep->fileline(),
"std::string(\"`{\") + to_string_middle() + \"}\"", 0);
"std::string(\"'{\") + to_string_middle() + \"}\"", 0);
exprp->dtypeSetString();
funcp->addStmtsp(new AstCReturn(nodep->fileline(), exprp));
nodep->addStmtp(funcp);

View File

@ -490,7 +490,7 @@ class EmitVBaseVisitor : public EmitCBaseVisitor {
puts(")");
}
virtual void visit(AstInitArray* nodep) override {
putfs(nodep, "`{");
putfs(nodep, "'{");
int comma = 0;
const AstInitArray::KeyItemMap& mapr = nodep->map();
for (AstInitArray::KeyItemMap::const_iterator it = mapr.begin(); it != mapr.end(); ++it) {

View File

@ -1,4 +1,4 @@
Display: null = "null"
Display: newed = "`{imembera:'h0, imemberb:'h0}"
Display: set = "`{imembera:'ha, imemberb:'h14}"
Display: newed = "'{imembera:'h0, imemberb:'h0}"
Display: set = "'{imembera:'ha, imemberb:'h14}"
*-* All Finished *-*