shithub: orca

ref: 316de2e60c60455710f2937d379236372e911a36
dir: /base.h/

View raw version
#pragma once
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

typedef char Term;
typedef uint16_t U16;
typedef int16_t I16;
typedef uint32_t U32;
typedef int32_t I32;
typedef uint64_t U64;
typedef int64_t I64;

typedef struct {
  Term* buffer;
  U32 height;
  U32 width;
} Field;