Add a base.rect_ie_u32 type

This commit is contained in:
Nigel Tao committed 2018-05-18 20:22:56 +10:00
1 parent 85256c7a45
commit 4a1b349cb8
6 files changed
+23 -5

No files matched your search

+3
View File
@@ -73,6 +73,9 @@ var Types = []string{
"empty_struct",
"bool",
"rect_ie_u32",
"rect_ii_u32",
"image_buffer",
"image_config",
"io_reader",
+6
View File
@@ -48,6 +48,9 @@ var (
typeExprEmptyStruct = a.NewTypeExpr(0, t.IDBase, t.IDEmptyStruct, nil, nil, nil)
typeExprBool = a.NewTypeExpr(0, t.IDBase, t.IDBool, nil, nil, nil)
typeExprRectIEU32 = a.NewTypeExpr(0, t.IDBase, t.IDRectIEU32, nil, nil, nil)
typeExprRectIIU32 = a.NewTypeExpr(0, t.IDBase, t.IDRectIIU32, nil, nil, nil)
typeExprImageBuffer = a.NewTypeExpr(0, t.IDBase, t.IDImageBuffer, nil, nil, nil)
typeExprImageConfig = a.NewTypeExpr(0, t.IDBase, t.IDImageConfig, nil, nil, nil)
typeExprIOReader = a.NewTypeExpr(0, t.IDBase, t.IDIOReader, nil, nil, nil)
@@ -70,6 +73,9 @@ var builtInTypeMap = typeMap{
t.IDEmptyStruct: typeExprEmptyStruct,
t.IDBool: typeExprBool,
t.IDRectIEU32: typeExprRectIEU32,
t.IDRectIIU32: typeExprRectIIU32,
t.IDImageBuffer: typeExprImageBuffer,
t.IDImageConfig: typeExprImageConfig,
t.IDIOReader: typeExprIOReader,
+11 -5
View File
@@ -398,11 +398,14 @@ const (
IDEmptyStruct = ID(0x100)
IDBool = ID(0x101)
IDImageBuffer = ID(0x102)
IDImageConfig = ID(0x103)
IDIOReader = ID(0x104)
IDIOWriter = ID(0x105)
IDStatus = ID(0x106)
IDRectIEU32 = ID(0x102)
IDRectIIU32 = ID(0x103)
IDImageBuffer = ID(0x104)
IDImageConfig = ID(0x105)
IDIOReader = ID(0x106)
IDIOWriter = ID(0x107)
IDStatus = ID(0x108)
IDT1 = ID(0x10A)
IDT2 = ID(0x10B)
@@ -594,6 +597,9 @@ var builtInsByID = [nBuiltInIDs]string{
IDEmptyStruct: "empty_struct",
IDBool: "bool",
IDRectIEU32: "rect_ie_u32",
IDRectIIU32: "rect_ii_u32",
IDImageBuffer: "image_buffer",
IDImageConfig: "image_config",
IDIOReader: "io_reader",