shithub: orca

Download patch

ref: 4846a23b2067e285f51e9fdc89b703ecf8897d4e
parent: 44a39f8b8ecd778f6e01a1fc51441a48fcd46620
author: cancel <cancel@cancel.fm>
date: Sun Nov 25 01:23:44 EST 2018

Add sim.h/.c add stub for orca_run()

--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@
 else
 library_flags := -lncursesw
 endif
-source_files := field.c main.c
+source_files := field.c sim.c main.c
 
 all: debug
 
--- a/base.h
+++ b/base.h
@@ -10,3 +10,9 @@
 typedef char Term;
 typedef uint32_t U32;
 typedef int32_t I32;
+
+typedef struct {
+  Term* buffer;
+  U32 height;
+  U32 width;
+} Field;
--- a/field.h
+++ b/field.h
@@ -1,12 +1,6 @@
 #pragma once
 #include "base.h"
 
-typedef struct {
-  Term* buffer;
-  U32 height;
-  U32 width;
-} Field;
-
 void field_init_zeros(Field* f, U32 height, U32 width);
 void field_init_fill(Field* f, U32 height, U32 width, Term fill_char);
 void field_resize_raw(Field* f, U32 height, U32 width);
--- /dev/null
+++ b/sim.c
@@ -1,0 +1,5 @@
+#include "field.h"
+#include "sim.h"
+
+void orca_run(Field* f) {
+}
--- /dev/null
+++ b/sim.h
@@ -1,0 +1,4 @@
+#pragma once
+#include "base.h"
+
+void orca_run(Field* f);