30 lines
459 B
C
30 lines
459 B
C
#ifndef UTILS_H
|
|
#define UTILS_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
typedef uint8_t u8;
|
|
typedef uint16_t u16;
|
|
typedef uint32_t u32;
|
|
typedef uint64_t u64;
|
|
|
|
typedef int8_t i8;
|
|
typedef int16_t i16;
|
|
typedef int32_t i32;
|
|
typedef int64_t i64;
|
|
|
|
typedef size_t usize;
|
|
|
|
typedef float f32;
|
|
typedef double f64;
|
|
|
|
i64 parse_int(char *s, usize len);
|
|
f64 parse_float(char *s, usize len);
|
|
|
|
typedef struct {
|
|
usize row, column;
|
|
} source_pos;
|
|
|
|
#endif
|