forked from dnkl/foot
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
391 B
18 lines
391 B
#pragma once |
|
|
|
#include <stdint.h> |
|
#include <wchar.h> |
|
|
|
struct composed { |
|
wchar_t *chars; |
|
struct composed *left; |
|
struct composed *right; |
|
uint32_t key; |
|
uint8_t count; |
|
uint8_t width; |
|
}; |
|
|
|
struct composed *composed_lookup(struct composed *root, uint32_t key); |
|
void composed_insert(struct composed **root, struct composed *node); |
|
|
|
void composed_free(struct composed *root);
|
|
|