mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 08:55:11 +01:00
Add an image_config concept
This commit is contained in:
1 parent
de9000cc70
commit
d750ea7653
15 files changed
+600
-88
No files matched your search
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user