shithub: fnt

ref: 3582b9cc27bf2a83800c00b4a84873037e99642d
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);