feat: switch to C-based compilation, start of simple event loop

This commit is contained in:
Jef Roosens 2023-05-24 09:03:22 +02:00
parent 01eb5ece55
commit 11cd537759
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
7 changed files with 1238 additions and 94 deletions

View file

@ -19,9 +19,9 @@
#include <stddef.h>
#include <string.h>
static const char charset[] =
const static char charset[] =
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
static const size_t charset_len = sizeof(charset) - 1;
const static size_t charset_len = sizeof(charset) - 1;
// Length of randomly generated keys
#define RANDOM_KEY_LENGTH_SHORT 4