summaryrefslogtreecommitdiff
path: root/lib/map.h
blob: d2ab6f866a1fabb6003216921f1690d68bc74d3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include <stdint.h>

struct tag_t;

typedef struct {
	uint32_t len;
	uint32_t capacity;
	struct tag_t *entries;
} map_t;

void map_init(map_t *map);
void map_free(map_t *map);
void map_put(map_t *map, struct tag_t *tag);