diff options
author | Andrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu> | 2012-05-01 01:08:03 -0400 |
---|---|---|
committer | Andrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu> | 2012-05-01 01:08:03 -0400 |
commit | 83a71d464887f4b6cf9124d2f8c565e6f17f2bd3 (patch) | |
tree | ca86805900a974f684dc5531311a53e4836ec784 /nexgb/xgbgen/type.go | |
parent | 73154769b3eba60fe48a7c08882e8e64b1545e3f (diff) | |
download | haven-83a71d464887f4b6cf9124d2f8c565e6f17f2bd3.tar.gz haven-83a71d464887f4b6cf9124d2f8c565e6f17f2bd3.tar.xz haven-83a71d464887f4b6cf9124d2f8c565e6f17f2bd3.zip |
unions, events and errors... oh my
Diffstat (limited to 'nexgb/xgbgen/type.go')
-rw-r--r-- | nexgb/xgbgen/type.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nexgb/xgbgen/type.go b/nexgb/xgbgen/type.go index 9fbef65..1e06bda 100644 --- a/nexgb/xgbgen/type.go +++ b/nexgb/xgbgen/type.go @@ -191,7 +191,7 @@ func (e *Event) XmlName() string { } func (e *Event) Size() Size { - panic("Cannot take size of Event type.") + return newExpressionSize(&Value{v: 32}) } func (e *Event) Initialize(p *Protocol) { @@ -358,7 +358,7 @@ func (u *Union) Size() Size { } func (u *Union) Initialize(p *Protocol) { - u.srcName = TypeSrcName(p, u) + u.srcName = fmt.Sprintf("%sUnion", TypeSrcName(p, u)) for _, field := range u.Fields { field.Initialize(p) } |