#pragma once

#include <stdint.h>
#include <stdio.h>

#ifndef __cplusplus
  #if (__STDC_VERSION__ < 202000L)
    #include <stdint.h>
typedef enum bool : uint8_t { false = 0, true = 1 } bool;
  #endif
#endif

typedef struct SizedString {
  char *str;
  size_t size;
} SizedString;

#define ERROR_SIZE INT64_MAX