]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: rename cgo2c, *.cgo to goc2c, *.goc
authorRuss Cox <rsc@golang.org>
Wed, 21 Apr 2010 00:03:25 +0000 (17:03 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 21 Apr 2010 00:03:25 +0000 (17:03 -0700)
to avoid confusion with real cgo

R=r
CC=golang-dev
https://golang.org/cl/904046

src/pkg/runtime/Makefile
src/pkg/runtime/goc2c.c [moved from src/pkg/runtime/cgo2c.c with 100% similarity]
src/pkg/runtime/malloc.goc [moved from src/pkg/runtime/malloc.cgo with 100% similarity]
src/pkg/runtime/mingw/syscall.goc [moved from src/pkg/runtime/mingw/syscall.cgo with 100% similarity]
src/pkg/runtime/mprof.goc [moved from src/pkg/runtime/mprof.cgo with 100% similarity]
src/pkg/runtime/reflect.goc [moved from src/pkg/runtime/reflect.cgo with 100% similarity]
src/pkg/runtime/runtime1.goc [moved from src/pkg/runtime/runtime1.cgo with 100% similarity]
src/pkg/runtime/sema.goc [moved from src/pkg/runtime/sema.cgo with 100% similarity]
src/pkg/runtime/sigqueue.goc [moved from src/pkg/runtime/sigqueue.cgo with 100% similarity]
src/pkg/runtime/string.goc [moved from src/pkg/runtime/string.cgo with 100% similarity]

index 3ce8ba242255936321c502a78ae5f8acd9bc3b38..f7da0251e55d782f09c4272e785b2efce3a476f3 100644 (file)
@@ -114,13 +114,13 @@ $(pkgdir)/%.h: %.h
 clean: clean-local
 
 clean-local:
-       rm -f cgo2c mkversion version.go */asm.h runtime.acid.*
+       rm -f goc2c mkversion version.go */asm.h runtime.acid.*
 
 $(GOARCH)/asm.h: mkasmh.sh runtime.acid.$(GOARCH)
        ./mkasmh.sh >$@.x
        mv -f $@.x $@
 
-cgo2c: cgo2c.c
+goc2c: goc2c.c
        $(QUOTED_GOBIN)/quietgcc -o $@ $<
 
 mkversion: mkversion.c
@@ -129,8 +129,8 @@ mkversion: mkversion.c
 version.go: mkversion
        ./mkversion >version.go
 
-%.c:   %.cgo cgo2c
-       ./cgo2c $< > $@.tmp
+%.c:   %.goc goc2c
+       ./goc2c $< > $@.tmp
        mv -f $@.tmp $@
 
 %.$O:  $(GOARCH)/%.c