summaryrefslogtreecommitdiff
path: root/xgbgen/type.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <[email protected]>2012-05-05 18:21:48 -0400
committerAndrew Gallant (Ocelot) <[email protected]>2012-05-05 18:21:48 -0400
commit568f1c44fb9489a7f7762e96544f0173b23ec61b (patch)
treef2c8fe01e7b4aeaad77bef220ed997c824f1b144 /xgbgen/type.go
parentb8d96bcad34ec397b207dc263f61f7776396db26 (diff)
fixing bugs related mostly to extension handling
Diffstat (limited to 'xgbgen/type.go')
-rw-r--r--xgbgen/type.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xgbgen/type.go b/xgbgen/type.go
index 3498463..521f67e 100644
--- a/xgbgen/type.go
+++ b/xgbgen/type.go
@@ -123,7 +123,7 @@ func (enum *Enum) Size() Size {
func (enum *Enum) Initialize(p *Protocol) {
enum.srcName = TypeSrcName(p, enum)
for _, item := range enum.Items {
- item.srcName = SrcName(item.xmlName)
+ item.srcName = SrcName(p, item.xmlName)
if item.Expr != nil {
item.Expr.Initialize(p)
}