some slight progress
map/set still buggy
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
#define CIG_IMPL
|
||||
#include "cig.h"
|
||||
|
||||
int main() {
|
||||
int main(void) {
|
||||
with_borrow(allocator) {
|
||||
int *ints;
|
||||
set_init(&ints, allocator, .initial_capacity=20);
|
||||
map_print_mapping_state(ints, stdout);
|
||||
for ( int i = 0; i < 1000; i++ ) {
|
||||
for ( int i = 0; i < 20; i++ ) {
|
||||
set_add(&ints, i);
|
||||
map_print_mapping_state(ints, stdout);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user