1
0
Fork 0
mirror of https://github.com/ctruLua/ctruLua.git synced 2025-10-28 16:59:30 +00:00

Support for special characters in gfx.text; added scrolling to the default shell; updated sftdlib.

There is a known bug with different text size in sftdlib.
This commit is contained in:
Reuh 2015-08-22 16:45:32 +02:00
parent 56b47153b7
commit 2a5513473d
10 changed files with 516 additions and 39 deletions

View file

@ -0,0 +1,34 @@
#ifndef INT_HTAB_H
#define INT_HTAB_H
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
#define INT_HTAB_MAX_LOAD (70) // over 100
typedef struct int_htab_entry {
unsigned int key;
void *value;
} int_htab_entry;
typedef struct int_htab {
size_t size;
size_t used;
int_htab_entry *entries;
} int_htab;
int_htab *int_htab_create(size_t size);
void int_htab_free(int_htab *htab);
int int_htab_insert(int_htab *htab, unsigned int key, void *value);
void *int_htab_find(const int_htab *htab, unsigned int key);
int int_htab_erase(const int_htab *htab, unsigned int key);
#ifdef __cplusplus
}
#endif
#endif