shithub: orca

Download patch

ref: 6c334dce95d0acb7b28426b3e7fb8fc745ac56b2
parent: 73000aae8e947c988d059cf26615a8a20a0b411f
author: cancel <cancel@cancel.fm>
date: Tue Dec 11 13:00:36 EST 2018

Cleanup

--- a/base.h
+++ b/base.h
@@ -83,12 +83,7 @@
 typedef U8 Mark;
 
 typedef Glyph* Gbuffer;
-
-typedef struct {
-  Gbuffer buffer;
-  U16 height;
-  U16 width;
-} Field;
+typedef struct Field Field;
 
 ORCA_FORCE_STATIC_INLINE Usz orca_round_up_power2(Usz x) {
   assert(x <= SIZE_MAX / 2 + 1);
--- a/field.h
+++ b/field.h
@@ -1,6 +1,12 @@
 #pragma once
 #include "base.h"
 
+struct Field {
+  Gbuffer buffer;
+  U16 height;
+  U16 width;
+};
+
 void field_init(Field* field);
 void field_init_fill(Field* field, Usz height, Usz width, Glyph fill_char);
 void field_deinit(Field* field);