From c6a15dba50674c660dfa4207e6d8726d45b3d03b Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 28 Apr 2020 15:07:19 +0300 Subject: [PATCH] compiler: add support for size_t --- cmd/tools/vtest-fixed.v | 1 - vlib/v/table/atypes.v | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/tools/vtest-fixed.v b/cmd/tools/vtest-fixed.v index 6944530456..ace68a62ba 100644 --- a/cmd/tools/vtest-fixed.v +++ b/cmd/tools/vtest-fixed.v @@ -10,7 +10,6 @@ const ( 'vlib/eventbus/eventbus_test.v', 'vlib/json/json_test.v', 'vlib/net/http/http_httpbin_test.v', - 'vlib/net/http/http_test.v', 'vlib/v/tests/enum_bitfield_test.v', 'vlib/v/tests/num_lit_call_method_test.v', 'vlib/v/tests/pointers_test.v', diff --git a/vlib/v/table/atypes.v b/vlib/v/table/atypes.v index 7eef570cb1..32d738587a 100644 --- a/vlib/v/table/atypes.v +++ b/vlib/v/table/atypes.v @@ -251,6 +251,7 @@ pub enum Kind { f32 f64 char + size_t bool none_ string @@ -416,7 +417,7 @@ pub fn (mut t Table) register_builtin_type_symbols() { name: 'map' }) t.register_type_symbol(TypeSymbol{ - kind: .placeholder + kind: .size_t name: 'size_t' }) // TODO: remove. for v1 map compatibility @@ -475,6 +476,7 @@ pub fn (k Kind) str() string { .string { 'string' } .char { 'char' } .bool { 'bool' } + .size_t { 'size_t' } .none_ { 'none' } .array { 'array' } .array_fixed { 'array_fixed' }