aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xgbgen/field.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-05 18:21:48 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-05 18:21:48 -0400
commitb6715f376f5ea3efb58146c58924dcc7b1536181 (patch)
treee1213eb0678619a74b1ba57153827d58b645c48a /nexgb/xgbgen/field.go
parent4a7b05be36b96134b4dae3ca385e9bfbb797d531 (diff)
downloadhaven-b6715f376f5ea3efb58146c58924dcc7b1536181.tar.gz
haven-b6715f376f5ea3efb58146c58924dcc7b1536181.tar.xz
haven-b6715f376f5ea3efb58146c58924dcc7b1536181.zip
fixing bugs related mostly to extension handling
Diffstat (limited to 'nexgb/xgbgen/field.go')
-rw-r--r--nexgb/xgbgen/field.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/nexgb/xgbgen/field.go b/nexgb/xgbgen/field.go
index ddc2028..5041f77 100644
--- a/nexgb/xgbgen/field.go
+++ b/nexgb/xgbgen/field.go
@@ -47,7 +47,7 @@ type SingleField struct {
}
func (f *SingleField) Initialize(p *Protocol) {
- f.srcName = SrcName(f.XmlName())
+ f.srcName = SrcName(p, f.XmlName())
f.Type = f.Type.(*Translation).RealType(p)
}
@@ -138,7 +138,7 @@ func (f *ListField) Size() Size {
}
func (f *ListField) Initialize(p *Protocol) {
- f.srcName = SrcName(f.XmlName())
+ f.srcName = SrcName(p, f.XmlName())
f.Type = f.Type.(*Translation).RealType(p)
if f.LengthExpr != nil {
f.LengthExpr.Initialize(p)
@@ -173,7 +173,7 @@ func (f *ExprField) Size() Size {
}
func (f *ExprField) Initialize(p *Protocol) {
- f.srcName = SrcName(f.XmlName())
+ f.srcName = SrcName(p, f.XmlName())
f.Type = f.Type.(*Translation).RealType(p)
f.Expr.Initialize(p)
}
@@ -230,8 +230,8 @@ func (f *ValueField) ListLength() Size {
func (f *ValueField) Initialize(p *Protocol) {
f.MaskType = f.MaskType.(*Translation).RealType(p)
- f.MaskName = SrcName(f.MaskName)
- f.ListName = SrcName(f.ListName)
+ f.MaskName = SrcName(p, f.MaskName)
+ f.ListName = SrcName(p, f.ListName)
}
type SwitchField struct {
@@ -260,7 +260,7 @@ func (f *SwitchField) Size() Size {
}
func (f *SwitchField) Initialize(p *Protocol) {
- f.Name = SrcName(f.Name)
+ f.Name = SrcName(p, f.Name)
f.Expr.Initialize(p)
for _, bitcase := range f.Bitcases {
bitcase.Expr.Initialize(p)