splitting up go specific code. too much for one file IMO. more progress. almost done with structs.

This commit is contained in:
Andrew Gallant (Ocelot)
2012-04-30 16:18:17 -04:00
parent 2a2d8653b3
commit 73154769b3
9 changed files with 503 additions and 269 deletions

15
nexgb/xgbgen/go_union.go Normal file
View File

@@ -0,0 +1,15 @@
package main
// Union types
func (u *Union) Define(c *Context) {
c.Putln("// Union definition %s", u.SrcName())
}
func (u *Union) Read(c *Context, prefix string) {
c.Putln("// Union read %s", u.SrcName())
}
func (u *Union) Write(c *Context, prefix string) {
c.Putln("// Union write %s", u.SrcName())
}