Commits

Anonymous committed 9d1cfc9

adding top-level makefile

Comments (0)

Files changed (2)

+# Copyright 2009 The Go Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
+include ${GOROOT}/src/Make.inc
+
+all: install
+
+DIRS=\
+        pkg/ctypes\
+
+
+clean.dirs: $(addsuffix .clean, $(DIRS))
+install.dirs: $(addsuffix .install, $(DIRS))
+nuke.dirs: $(addsuffix .nuke, $(DIRS))
+test.dirs: $(addsuffix .test, $(TEST))
+bench.dirs: $(addsuffix .bench, $(BENCH))
+
+%.clean:
+	+cd $* && $(QUOTED_GOBIN)/gomake clean
+
+%.install:
+	+cd $* && $(QUOTED_GOBIN)/gomake install
+
+clean: clean.dirs
+
+install: install.dirs
+
+#-include ${GOROOT}/src/Make.deps

pkg/ctypes/ctypes.go

 	return c
 }
 
-func (t *cstruct_type) Field(i int) (c StructField) {
-	c = t.fields_idx[i]
-	return
+func (t *cstruct_type) Field(i int) StructField {
+	return t.fields_idx[i]
 }
 
 func (t *cstruct_type) Size() uintptr {