diff options
| author | Ken Thompson <ken@golang.org> | 2010-02-17 22:08:30 -0800 |
|---|---|---|
| committer | Ken Thompson <ken@golang.org> | 2010-02-17 22:08:30 -0800 |
| commit | 81bc925915b7fec2cc9cb892b9fde11e97d8967a (patch) | |
| tree | 39a9c351b752d112e768ce40cda37857b7249f25 /src/cmd/gc/reflect.c | |
| parent | a205da88991d60e03496f9d25bea0fedf054294c (diff) | |
| download | golang-81bc925915b7fec2cc9cb892b9fde11e97d8967a.tar.gz | |
new types complex, complex64 and complex128
only front-end compiler work.
best to do thin in 3 steps
1. frontend
2. backend
3. lib
R=rsc
CC=golang-dev
http://codereview.appspot.com/214042
Diffstat (limited to 'src/cmd/gc/reflect.c')
| -rw-r--r-- | src/cmd/gc/reflect.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/cmd/gc/reflect.c b/src/cmd/gc/reflect.c index 12d27aa88..2217b582c 100644 --- a/src/cmd/gc/reflect.c +++ b/src/cmd/gc/reflect.c @@ -447,19 +447,22 @@ structnames[] = [TINT64] = "*runtime.Int64Type", [TUINT64] = "*runtime.Uint64Type", [TUINTPTR] = "*runtime.UintptrType", + [TCOMPLEX] = "*runtime.ComplexType", + [TCOMPLEX64] = "*runtime.Complex64Type", + [TCOMPLEX128] = "*runtime.Complex128Type", [TFLOAT] = "*runtime.FloatType", [TFLOAT32] = "*runtime.Float32Type", [TFLOAT64] = "*runtime.Float64Type", [TBOOL] = "*runtime.BoolType", - [TSTRING] = "*runtime.StringType", + [TSTRING] = "*runtime.StringType", - [TPTR32] = "*runtime.PtrType", - [TPTR64] = "*runtime.PtrType", + [TPTR32] = "*runtime.PtrType", + [TPTR64] = "*runtime.PtrType", [TSTRUCT] = "*runtime.StructType", - [TINTER] = "*runtime.InterfaceType", + [TINTER] = "*runtime.InterfaceType", [TCHAN] = "*runtime.ChanType", [TMAP] = "*runtime.MapType", - [TARRAY] = "*runtime.ArrayType", + [TARRAY] = "*runtime.ArrayType", [TFUNC] = "*runtime.FuncType", }; |
