Add an image_config concept

This commit is contained in:
Nigel Tao committed 2018-02-09 14:46:37 +11:00
1 parent de9000cc70
commit d750ea7653
15 files changed
+600 -88

No files matched your search

+5
View File
@@ -581,6 +581,11 @@ func (g *gen) writeCTypeName(b *buffer, n *a.TypeExpr, varNamePrefix string, var
// See gen.writeInitializerImpl for a similar use of otherPkg.
prefix = "wuffs_" + otherPkg + "__"
}
// TODO: remove this hack when "image_config" in Wuffs code becomes
// "base.image_config".
if qid[1] == t.IDImageConfig {
prefix = "wuffs_base__"
}
b.printf("%s%s", prefix, qid[1].Str(g.tm))
}