compiler: add support for size_t
parent
210b6e36b6
commit
c6a15dba50
|
@ -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',
|
||||
|
|
|
@ -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' }
|
||||
|
|
Loading…
Reference in New Issue