summaryrefslogtreecommitdiff
path: root/xgbgen/xml_fields.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <[email protected]>2012-04-30 02:44:31 -0400
committerAndrew Gallant (Ocelot) <[email protected]>2012-04-30 02:44:31 -0400
commitf7be3db65e559e77355537a11a88c8657ec4c059 (patch)
tree98a3a415d15b6a2c03b0ae7206cbb9a8df66c601 /xgbgen/xml_fields.go
parent91ec0c014823a869775575879de1f5585523fc39 (diff)
gofmt
Diffstat (limited to 'xgbgen/xml_fields.go')
-rw-r--r--xgbgen/xml_fields.go17
1 files changed, 9 insertions, 8 deletions
diff --git a/xgbgen/xml_fields.go b/xgbgen/xml_fields.go
index d6d99c5..991141b 100644
--- a/xgbgen/xml_fields.go
+++ b/xgbgen/xml_fields.go
@@ -1,4 +1,5 @@
package main
+
/*
A series of fields should be taken as "structure contents", and *not*
just the single 'field' elements. Namely, 'fields' subsumes 'field'
@@ -50,8 +51,8 @@ type XMLField struct {
// I don't know which elements these are for. The documentation is vague.
// They also seem to be completely optional.
- OptEnum string `xml:"enum,attr"`
- OptMask string `xml:"mask,attr"`
+ OptEnum string `xml:"enum,attr"`
+ OptMask string `xml:"mask,attr"`
OptAltEnum string `xml:"altenum,attr"`
}
@@ -103,14 +104,14 @@ type XMLBitcase struct {
// All the different expressions.
// When it comes time to choose one, use the 'Expr' method.
- ExprOp *XMLExpression `xml:"op"`
- ExprUnOp *XMLExpression `xml:"unop"`
+ ExprOp *XMLExpression `xml:"op"`
+ ExprUnOp *XMLExpression `xml:"unop"`
ExprField *XMLExpression `xml:"fieldref"`
ExprValue *XMLExpression `xml:"value"`
- ExprBit *XMLExpression `xml:"bit"`
- ExprEnum *XMLExpression `xml:"enumref"`
- ExprSum *XMLExpression `xml:"sumof"`
- ExprPop *XMLExpression `xml:"popcount"`
+ ExprBit *XMLExpression `xml:"bit"`
+ ExprEnum *XMLExpression `xml:"enumref"`
+ ExprSum *XMLExpression `xml:"sumof"`
+ ExprPop *XMLExpression `xml:"popcount"`
}
// StringPrefix is for debugging purposes only.