aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xgbgen/go_struct.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-26 18:24:52 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-26 18:24:52 -0400
commit4ea94ca0fef7786ce21722cbb02a9cf069bdedd9 (patch)
treee9457e6797efb4c5e55666e440c886045204a79d /nexgb/xgbgen/go_struct.go
parent58bb2572c5d1e88689aa1b30dc55b702acf57f4f (diff)
downloadhaven-4ea94ca0fef7786ce21722cbb02a9cf069bdedd9.tar.gz
haven-4ea94ca0fef7786ce21722cbb02a9cf069bdedd9.tar.xz
haven-4ea94ca0fef7786ce21722cbb02a9cf069bdedd9.zip
Bug fix in the generator that was outputting %(MISSING) crud.
Diffstat (limited to 'nexgb/xgbgen/go_struct.go')
-rw-r--r--nexgb/xgbgen/go_struct.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/nexgb/xgbgen/go_struct.go b/nexgb/xgbgen/go_struct.go
index a988893..cb765a0 100644
--- a/nexgb/xgbgen/go_struct.go
+++ b/nexgb/xgbgen/go_struct.go
@@ -85,7 +85,7 @@ func (s *Struct) Write(c *Context) {
func (s *Struct) WriteList(c *Context) {
c.Putln("// %sListBytes writes a list of %s values to a byte slice.",
- s.SrcName())
+ s.SrcName(), s.SrcName())
c.Putln("func %sListBytes(buf []byte, list []%s) int {",
s.SrcName(), s.SrcName())
c.Putln("b := 0")