diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-01-15 20:13:06 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-01-15 20:13:06 -0500 |
commit | 757b7a618bfdd8cb5690cce1c943e6d6e1a11cb2 (patch) | |
tree | 053b4aec16a6aa67bda3b2dd1991e5c364890864 /a.c | |
parent | 0a018a8b15e8ee1790358ef2e3325185b99212bc (diff) |
fixing packages more. more to come
Diffstat (limited to 'a.c')
-rw-r--r-- | a.c | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -1,23 +0,0 @@ -#include <stdint.h> -#include <stdio.h> -typedef int8_t i8; -typedef int16_t i16; -typedef int32_t i32; -typedef int64_t i64; -typedef uint8_t u8; -typedef uint16_t u16; -typedef uint32_t u32; -typedef uint64_t u64; -typedef float f32; -typedef double f64; -typedef u8 bool; -typedef struct { void *data; i64 n; } slice_; -#define false ((bool)0) -#define true ((bool)1) -static slice_ mkslice_(void *data, i64 n) { slice_ ret; ret.data = data; ret.n = n; return ret; } -static void free_(void *data) { extern void free(void *data); free(data); } -static void *e__calloc(size_t n, size_t sz) { extern void *calloc(size_t n, size_t size); extern void abort(void); void *ret = calloc(n, sz); if (n && sz && !ret) { fprintf(stderr, "Out of memory.\n"); abort(); } return ret; } - - -/* declarations */ -/* code */ |