mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 01:01:35 +01:00
Prepare to add cpu_arch_utility types
This commit is contained in:
1 parent
869be76fae
commit
492068f3dc
8 files changed
+77
-29
No files matched your search
@@ -47,7 +47,6 @@ var (
|
||||
typeExprARMNeon64 = a.NewTypeExpr(0, t.IDBase, t.IDARMNeon64, nil, nil, nil)
|
||||
typeExprARMNeon128 = a.NewTypeExpr(0, t.IDBase, t.IDARMNeon128, nil, nil, nil)
|
||||
typeExprPixelSwizzler = a.NewTypeExpr(0, t.IDBase, t.IDPixelSwizzler, nil, nil, nil)
|
||||
typeExprUtility = a.NewTypeExpr(0, t.IDBase, t.IDUtility, nil, nil, nil)
|
||||
)
|
||||
|
||||
// Prefixes are prepended to names to form a namespace and to avoid e.g.
|
||||
@@ -1075,7 +1074,7 @@ func (g *gen) writeStructPrivateImpl(b *buffer, n *a.Struct) error {
|
||||
|
||||
for _, o := range n.Fields() {
|
||||
o := o.AsField()
|
||||
if o.PrivateData() || o.XType().Eq(typeExprUtility) {
|
||||
if o.PrivateData() || o.XType().IsEtcUtilityType() {
|
||||
continue
|
||||
}
|
||||
if err := g.writeCTypeName(b, o.XType(), fPrefix, o.Name().Str(g.tm)); err != nil {
|
||||
@@ -1128,7 +1127,7 @@ func (g *gen) writeStructPrivateImpl(b *buffer, n *a.Struct) error {
|
||||
|
||||
for _, o := range n.Fields() {
|
||||
o := o.AsField()
|
||||
if !o.PrivateData() || o.XType().Eq(typeExprUtility) {
|
||||
if !o.PrivateData() || o.XType().IsEtcUtilityType() {
|
||||
continue
|
||||
}
|
||||
if err := g.writeCTypeName(b, o.XType(), fPrefix, o.Name().Str(g.tm)); err != nil {
|
||||
|
||||
Reference in new issue
Block a user