diff options
| author | Russ Cox <rsc@golang.org> | 2010-06-20 12:16:25 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2010-06-20 12:16:25 -0700 |
| commit | be1fb301f118bbbf0cc9564f72392390425b5c67 (patch) | |
| tree | 6858bcb73f10fcafb2b153875c318462b35a6c53 /src/cmd/gc | |
| parent | 91b42e59afb95e7ff63ec1bee1c2a322b6848d66 (diff) | |
| download | golang-be1fb301f118bbbf0cc9564f72392390425b5c67.tar.gz | |
reflect: add Kind, remove Int8Type, Int8Value, etc.
update other code to match.
R=r
CC=golang-dev
http://codereview.appspot.com/1680044
Diffstat (limited to 'src/cmd/gc')
| -rw-r--r-- | src/cmd/gc/reflect.c | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/src/cmd/gc/reflect.c b/src/cmd/gc/reflect.c index 3ac48fbee..c78e4dd30 100644 --- a/src/cmd/gc/reflect.c +++ b/src/cmd/gc/reflect.c @@ -390,6 +390,9 @@ enum { KindFloat, KindFloat32, KindFloat64, + KindComplex, + KindComplex64, + KindComplex128, KindArray, KindChan, KindFunc, @@ -431,6 +434,9 @@ kinds[] = [TMAP] = KindMap, [TARRAY] = KindArray, [TFUNC] = KindFunc, + [TCOMPLEX] = KindComplex, + [TCOMPLEX64] = KindComplex64, + [TCOMPLEX128] = KindComplex128, }; static char* @@ -438,21 +444,21 @@ structnames[] = { [TINT] = "*runtime.IntType", [TUINT] = "*runtime.UintType", - [TINT8] = "*runtime.Int8Type", - [TUINT8] = "*runtime.Uint8Type", - [TINT16] = "*runtime.Int16Type", - [TUINT16] = "*runtime.Uint16Type", - [TINT32] = "*runtime.Int32Type", - [TUINT32] = "*runtime.Uint32Type", - [TINT64] = "*runtime.Int64Type", - [TUINT64] = "*runtime.Uint64Type", - [TUINTPTR] = "*runtime.UintptrType", + [TINT8] = "*runtime.IntType", + [TUINT8] = "*runtime.UintType", + [TINT16] = "*runtime.IntType", + [TUINT16] = "*runtime.UintType", + [TINT32] = "*runtime.IntType", + [TUINT32] = "*runtime.UintType", + [TINT64] = "*runtime.IntType", + [TUINT64] = "*runtime.UintType", + [TUINTPTR] = "*runtime.UintType", [TCOMPLEX] = "*runtime.ComplexType", - [TCOMPLEX64] = "*runtime.Complex64Type", - [TCOMPLEX128] = "*runtime.Complex128Type", + [TCOMPLEX64] = "*runtime.ComplexType", + [TCOMPLEX128] = "*runtime.ComplexType", [TFLOAT] = "*runtime.FloatType", - [TFLOAT32] = "*runtime.Float32Type", - [TFLOAT64] = "*runtime.Float64Type", + [TFLOAT32] = "*runtime.FloatType", + [TFLOAT64] = "*runtime.FloatType", [TBOOL] = "*runtime.BoolType", [TSTRING] = "*runtime.StringType", |
