nexgb: gofmt
This commit is contained in:
parent
07bf9881cc
commit
1a53c005e9
|
@ -49,7 +49,7 @@ func (c *Context) Morph(xmlBytes []byte) {
|
||||||
|
|
||||||
// Translate XML types to nice types
|
// Translate XML types to nice types
|
||||||
c.protocol = parsedXml.Translate(nil)
|
c.protocol = parsedXml.Translate(nil)
|
||||||
|
|
||||||
// For backwards compatibility we patch the type of the send_event field of
|
// For backwards compatibility we patch the type of the send_event field of
|
||||||
// PutImage to be byte
|
// PutImage to be byte
|
||||||
if c.protocol.Name == "shm" {
|
if c.protocol.Name == "shm" {
|
||||||
|
@ -62,7 +62,7 @@ func (c *Context) Morph(xmlBytes []byte) {
|
||||||
if !ok || field.xmlName != "send_event" {
|
if !ok || field.xmlName != "send_event" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
field.Type = &Base{ srcName: "byte", xmlName: "CARD8", size: newFixedSize(1, true) }
|
field.Type = &Base{srcName: "byte", xmlName: "CARD8", size: newFixedSize(1, true)}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ type XMLField struct {
|
||||||
XMLName xml.Name
|
XMLName xml.Name
|
||||||
|
|
||||||
// For 'pad' element
|
// For 'pad' element
|
||||||
Bytes uint `xml:"bytes,attr"`
|
Bytes uint `xml:"bytes,attr"`
|
||||||
Align uint16 `xml:"align,attr"`
|
Align uint16 `xml:"align,attr"`
|
||||||
|
|
||||||
// For 'field', 'list', 'localfield', 'exprfield' and 'switch' elements.
|
// For 'field', 'list', 'localfield', 'exprfield' and 'switch' elements.
|
||||||
|
|
Loading…
Reference in New Issue