summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gallant <[email protected]>2013-12-28 09:23:15 -0500
committerAndrew Gallant <[email protected]>2013-12-28 09:23:15 -0500
commit490ec2a43c9d1970de5b3b7e54bb3f8e86a5c547 (patch)
tree4f9e09528e50e3fb9bc553190ac1ab13f83425c5
parent75a553fa1a20ecf0f93db19c5c6667578f2ce27e (diff)
Ignore the "fd" field for the time being (for the shm extension only).
-rw-r--r--xgbgen/translation.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xgbgen/translation.go b/xgbgen/translation.go
index 778304f..b7e67e2 100644
--- a/xgbgen/translation.go
+++ b/xgbgen/translation.go
@@ -207,7 +207,7 @@ func (x *XMLRequest) Translate() *Request {
Reply: x.Reply.Translate(),
}
for _, field := range x.Fields {
- if field.XMLName.Local == "doc" {
+ if field.XMLName.Local == "doc" || field.XMLName.Local == "fd" {
continue
}
r.Fields = append(r.Fields, field.Translate(r))
@@ -238,7 +238,7 @@ func (x *XMLReply) Translate() *Reply {
Fields: make([]Field, 0, len(x.Fields)),
}
for _, field := range x.Fields {
- if field.XMLName.Local == "doc" {
+ if field.XMLName.Local == "doc" || field.XMLName.Local == "fd" {
continue
}
r.Fields = append(r.Fields, field.Translate(r))