aboutsummaryrefslogtreecommitdiff
path: root/test/ken
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-08-12 13:18:54 -0700
committerRuss Cox <rsc@golang.org>2009-08-12 13:18:54 -0700
commit5b62b19d436de41f77278c7511896a4921f6d040 (patch)
tree5c642bf4fc333537144c9e43fc2bc06bce4f8a52 /test/ken
parenteda49f331f3350c1c3c2fb8bd843a88b2704d460 (diff)
downloadgo-5b62b19d436de41f77278c7511896a4921f6d040.tar.gz
go-5b62b19d436de41f77278c7511896a4921f6d040.zip
convert non-pkg go files to whole-package compilation.
mostly removing forward declarations. R=r DELTA=138 (2 added, 127 deleted, 9 changed) OCL=33068 CL=33099
Diffstat (limited to 'test/ken')
-rw-r--r--test/ken/mfunc.go2
-rw-r--r--test/ken/ptrfun.go2
-rw-r--r--test/ken/rob2.go5
-rw-r--r--test/ken/simpfun.go2
4 files changed, 0 insertions, 11 deletions
diff --git a/test/ken/mfunc.go b/test/ken/mfunc.go
index ab579e9324..78c9617a8f 100644
--- a/test/ken/mfunc.go
+++ b/test/ken/mfunc.go
@@ -6,8 +6,6 @@
package main
-func simple(ia,ib,ic int) (oa,ob int);
-
func
main()
{
diff --git a/test/ken/ptrfun.go b/test/ken/ptrfun.go
index fe16fce3aa..111ac61bb9 100644
--- a/test/ken/ptrfun.go
+++ b/test/ken/ptrfun.go
@@ -13,8 +13,6 @@ type C struct
x func(p *C)int;
}
-func g(p *C)int;
-
func
(this *C) f()int
{
diff --git a/test/ken/rob2.go b/test/ken/rob2.go
index 29be2efcc1..5098d93990 100644
--- a/test/ken/rob2.go
+++ b/test/ken/rob2.go
@@ -36,8 +36,6 @@ type Slist struct {
}
-func (this *Slist) Print();
-
func (this *Slist) Car() *Slist {
return this.list.car;
}
@@ -67,9 +65,6 @@ func (slist *Slist) Free() {
// free(slist);
}
-func OpenFile();
-func Parse() *Slist;
-
//Slist* atom(byte *s, int i);
var token int;
diff --git a/test/ken/simpfun.go b/test/ken/simpfun.go
index 1e063bf0f6..ee2c1a9a09 100644
--- a/test/ken/simpfun.go
+++ b/test/ken/simpfun.go
@@ -7,8 +7,6 @@
package main
-func fun(ia,ib,ic int)int;
-
func
main()
{