diff options
author | Anthony Martin <ality@pbrane.org> | 2013-06-04 16:21:04 -0700 |
---|---|---|
committer | Anthony Martin <ality@pbrane.org> | 2013-06-04 16:21:04 -0700 |
commit | 873bcc5dfe5848b53eea1f1a32245c2d6ffe3b1a (patch) | |
tree | 3a2e334125e0a74b42d89fff31fe4187e4d33ca2 /include | |
parent | 25afc35c471e46c76834c71e386de12238770535 (diff) | |
download | go-873bcc5dfe5848b53eea1f1a32245c2d6ffe3b1a.tar.gz |
build: add intptr typedef for Plan 9
Revision 01810e5c68e9 added the following to src/pkg/runtime/stack.h:
StackPreempt = (uintptr)(intptr)0xffffade,
The typedef for intptr is defined in two places:
1. src/pkg/runtime/runtime.h for use by the runtime
2. include/u.h for use by the compilers and linkers
On Plan 9, we don't use include/u.h but instead augment the host's
u.h with extra typedefs. These are in include/plan9/GOARCH/u.h.
We forgot to add intptr. It didn't cause a problem until now since
that typedef was never used outside the runtime.
R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/10023043
Diffstat (limited to 'include')
-rw-r--r-- | include/plan9/386/u.h | 17 | ||||
-rw-r--r-- | include/plan9/amd64/u.h | 17 | ||||
-rw-r--r-- | include/plan9/arm/u.h | 17 |
3 files changed, 27 insertions, 24 deletions
diff --git a/include/plan9/386/u.h b/include/plan9/386/u.h index 3f4a55cb2..4736b8efb 100644 --- a/include/plan9/386/u.h +++ b/include/plan9/386/u.h @@ -4,11 +4,12 @@ #include "/386/include/u.h" -typedef char int8; -typedef uchar uint8; -typedef short int16; -typedef ushort uint16; -typedef int int32; -typedef uint uint32; -typedef vlong int64; -typedef uvlong uint64; +typedef char int8; +typedef uchar uint8; +typedef short int16; +typedef ushort uint16; +typedef int int32; +typedef uint uint32; +typedef vlong int64; +typedef uvlong uint64; +typedef int intptr; diff --git a/include/plan9/amd64/u.h b/include/plan9/amd64/u.h index f2430b535..090b2fa5c 100644 --- a/include/plan9/amd64/u.h +++ b/include/plan9/amd64/u.h @@ -4,11 +4,12 @@ #include "/amd64/include/u.h" -typedef char int8; -typedef uchar uint8; -typedef short int16; -typedef ushort uint16; -typedef int int32; -typedef uint uint32; -typedef vlong int64; -typedef uvlong uint64; +typedef char int8; +typedef uchar uint8; +typedef short int16; +typedef ushort uint16; +typedef int int32; +typedef uint uint32; +typedef vlong int64; +typedef uvlong uint64; +typedef vlong intptr; diff --git a/include/plan9/arm/u.h b/include/plan9/arm/u.h index c387ae7b1..19249aa48 100644 --- a/include/plan9/arm/u.h +++ b/include/plan9/arm/u.h @@ -4,11 +4,12 @@ #include "/arm/include/u.h" -typedef char int8; -typedef uchar uint8; -typedef short int16; -typedef ushort uint16; -typedef int int32; -typedef uint uint32; -typedef vlong int64; -typedef uvlong uint64; +typedef char int8; +typedef uchar uint8; +typedef short int16; +typedef ushort uint16; +typedef int int32; +typedef uint uint32; +typedef vlong int64; +typedef uvlong uint64; +typedef int intptr; |