Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(262)

Side by Side Diff: src/cmd/gc/unsafe.go

Issue 4264050: code review 4264050: gc: unsafe.Pointer is not a pointer (Closed)
Patch Set: diff -r c2fd8ff47c0c https://go.googlecode.com/hg Created 14 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/cmd/gc/typecheck.c ('k') | test/fixedbugs/bug325.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // NOTE: If you change this file you must run "./mkbuiltin" 5 // NOTE: If you change this file you must run "./mkbuiltin"
6 // to update builtin.c.boot. This is not done automatically 6 // to update builtin.c.boot. This is not done automatically
7 // to avoid depending on having a working compiler binary. 7 // to avoid depending on having a working compiler binary.
8 8
9 package PACKAGE 9 package PACKAGE
10 10
11 type Pointer *any 11 type Pointer uintptr // not really; filled in by compiler
12 12
13 func Offsetof(any) int 13 func Offsetof(any) int
14 func Sizeof(any) int 14 func Sizeof(any) int
15 func Alignof(any) int 15 func Alignof(any) int
16 func Typeof(i interface{}) (typ interface{}) 16 func Typeof(i interface{}) (typ interface{})
17 func Reflect(i interface{}) (typ interface{}, addr Pointer) 17 func Reflect(i interface{}) (typ interface{}, addr Pointer)
18 func Unreflect(typ interface{}, addr Pointer) (ret interface{}) 18 func Unreflect(typ interface{}, addr Pointer) (ret interface{})
19 func New(typ interface{}) Pointer 19 func New(typ interface{}) Pointer
20 func NewArray(typ interface{}, n int) Pointer 20 func NewArray(typ interface{}, n int) Pointer
OLDNEW
« no previous file with comments | « src/cmd/gc/typecheck.c ('k') | test/fixedbugs/bug325.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b