shithub: fnt

ref: 2cfe3c2c1cb0de08ef9a4dca2d22dac286736b09
dir: /unix/otfsys.h/

View raw version
#pragma once
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <inttypes.h>

#define nil NULL
#define USED(x) (void)(x)
#define nelem(a) (int)(sizeof(a)/sizeof((a)[0]))
#define unlikely(c) __builtin_expect(!!(c), 0)
#define likely(c) __builtin_expect(!!(c), 1)

#define Runeerror ((Rune)0xfffd)

typedef uint32_t Rune;

char *fmttime(long long v);
void werrstr(char *fmt, ...);
int chartorune(Rune *rune, char *str);