Converting api to use custom string types.

This commit is contained in:
2023-05-06 16:15:49 -04:00
parent e34b3694da
commit 312bcafa23
3 changed files with 71 additions and 61 deletions

View File

@ -79,7 +79,7 @@ Code gen__array( StrC type, sw type_size )
Code init_reserve;
{
Code params = def_params( 2, t_allocator_info, name(allocator), t_sw, name(capacity) );
Code params = def_params( 2, t_allocator_info, txt_n_len(allocator), t_sw, txt_n_len(capacity) );
Code body = untyped_str( code(
Header* header = rcast( Header*, alloc( allocator, sizeof(Header) + sizeof(Type) ));