mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 08:47:28 +01:00
Add a base.utility type
This commit is contained in:
1 parent
3ece6e0f1d
commit
92a8bc4641
21 files changed
+89
-1
No files matched your search
@@ -79,6 +79,7 @@ var Types = []string{
|
||||
|
||||
"empty_struct",
|
||||
"bool",
|
||||
"utility",
|
||||
|
||||
"rect_ie_u32",
|
||||
"rect_ii_u32",
|
||||
|
||||
@@ -47,6 +47,7 @@ var (
|
||||
|
||||
typeExprEmptyStruct = a.NewTypeExpr(0, t.IDBase, t.IDEmptyStruct, nil, nil, nil)
|
||||
typeExprBool = a.NewTypeExpr(0, t.IDBase, t.IDBool, nil, nil, nil)
|
||||
typeExprUtility = a.NewTypeExpr(0, t.IDBase, t.IDUtility, 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)
|
||||
@@ -72,6 +73,7 @@ var builtInTypeMap = typeMap{
|
||||
|
||||
t.IDEmptyStruct: typeExprEmptyStruct,
|
||||
t.IDBool: typeExprBool,
|
||||
t.IDUtility: typeExprUtility,
|
||||
|
||||
t.IDRectIEU32: typeExprRectIEU32,
|
||||
t.IDRectIIU32: typeExprRectIIU32,
|
||||
|
||||
@@ -397,6 +397,7 @@ const (
|
||||
|
||||
IDEmptyStruct = ID(0x100)
|
||||
IDBool = ID(0x101)
|
||||
IDUtility = ID(0x102)
|
||||
|
||||
IDRectIEU32 = ID(0x108)
|
||||
IDRectIIU32 = ID(0x109)
|
||||
@@ -624,6 +625,7 @@ var builtInsByID = [nBuiltInIDs]string{
|
||||
|
||||
IDEmptyStruct: "empty_struct",
|
||||
IDBool: "bool",
|
||||
IDUtility: "utility",
|
||||
|
||||
IDRectIEU32: "rect_ie_u32",
|
||||
IDRectIIU32: "rect_ii_u32",
|
||||
|
||||
Reference in new issue
Block a user