aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xgbgen/go_union.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-04-30 16:18:17 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-04-30 16:18:17 -0400
commit73154769b3eba60fe48a7c08882e8e64b1545e3f (patch)
tree3fe7c2a1f9ae1d22931b4673901d8ea340192d57 /nexgb/xgbgen/go_union.go
parent2a2d8653b3a7918dfb00dcca8937b0e878279c70 (diff)
downloadhaven-73154769b3eba60fe48a7c08882e8e64b1545e3f.tar.gz
haven-73154769b3eba60fe48a7c08882e8e64b1545e3f.tar.xz
haven-73154769b3eba60fe48a7c08882e8e64b1545e3f.zip
splitting up go specific code. too much for one file IMO. more progress. almost done with structs.
Diffstat (limited to 'nexgb/xgbgen/go_union.go')
-rw-r--r--nexgb/xgbgen/go_union.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/nexgb/xgbgen/go_union.go b/nexgb/xgbgen/go_union.go
new file mode 100644
index 0000000..5721c49
--- /dev/null
+++ b/nexgb/xgbgen/go_union.go
@@ -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())
+}
+