Converting api to use custom string types.

This commit is contained in:
ed committed 2023-05-06 16:15:49 -04:00
1 parent e34b3694da
commit 312bcafa23
3 files changed
+71 -61

No files matched your search

+1 -1
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) ));