]> Cypherpunks repositories - gostls13.git/commit
runtime: prepare for 64-bit ints
authorRuss Cox <rsc@golang.org>
Mon, 24 Sep 2012 18:58:34 +0000 (14:58 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 24 Sep 2012 18:58:34 +0000 (14:58 -0400)
commit0b08c9483f5f447083616b7b5e6ddf04edffc379
tree84860615deb2e8ec6854c15632b2e879deb25cf4
parent5e3fb887a3a9faf6fac1cd227d4b6b66bef9225a
runtime: prepare for 64-bit ints

This CL makes the runtime understand that the type of
the len or cap of a map, slice, or string is 'int', not 'int32',
and it is also careful to distinguish between function arguments
and results of type 'int' vs type 'int32'.

In the runtime, the new typedefs 'intgo' and 'uintgo' refer
to Go int and uint. The C types int and uint continue to be
unavailable (cause intentional compile errors).

This CL does not change the meaning of int, but it should make
the eventual change of the meaning of int on amd64 a bit
smoother.

Update #2188.

R=iant, r, dave, remyoudompheng
CC=golang-dev
https://golang.org/cl/6551067
20 files changed:
src/cmd/dist/goc2c.c
src/pkg/reflect/value.go
src/pkg/runtime/alg.c
src/pkg/runtime/chan.c
src/pkg/runtime/cpuprof.c
src/pkg/runtime/hashmap.c
src/pkg/runtime/iface.c
src/pkg/runtime/malloc.goc
src/pkg/runtime/malloc.h
src/pkg/runtime/mfinal.c
src/pkg/runtime/mgc0.c
src/pkg/runtime/mprof.goc
src/pkg/runtime/print.c
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.c
src/pkg/runtime/runtime.h
src/pkg/runtime/runtime1.goc
src/pkg/runtime/slice.c
src/pkg/runtime/string.goc
src/pkg/runtime/symtab.c