From 4136e8f2e1e5da874d58fcea3b1f004b07c9677f Mon Sep 17 00:00:00 2001 From: kitty piapiac Date: Sat, 15 Apr 2023 22:57:36 -0700 Subject: init sdl2,opengl --- mino.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 mino.c (limited to 'mino.c') diff --git a/mino.c b/mino.c new file mode 100644 index 0000000..0f3b55d --- /dev/null +++ b/mino.c @@ -0,0 +1,14 @@ +#include +#include +#include"mino.h" +#include"graph.h" + +NR V die(IM C*f,...)VA(f,vfprintf(stderr,f,ap),fputc('\n',stderr),exit(1)) +V*make(Uz z){V*p;N(p=malloc(z), die("oom"))R p;} +V*remk(V*p,Uz z){N(p=realloc(p,z),die("oom"))R p;} +V del(V*p){free(p);} + +I main(I ac,C**av){(V)ac,(V)av; + graph_init(); + atexit(graph_deinit); + R 0;} -- cgit v1.2.3