From 81bc925915b7fec2cc9cb892b9fde11e97d8967a Mon Sep 17 00:00:00 2001 From: Ken Thompson Date: Wed, 17 Feb 2010 22:08:30 -0800 Subject: 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 --- src/cmd/gc/reflect.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/cmd/gc/reflect.c') 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", }; -- cgit v1.2.3