ref: 2dbe0eb510dedab8949f950b0123fd7e9b4134b1
parent: 31461a215e585f7b7d3e1002ef87a1ddabb3e208
author: cancel <cancel@cancel.fm>
date: Tue Jan 22 03:58:22 EST 2019
Remove typedef for Field from base.h No longer needed.
--- a/base.h
+++ b/base.h
@@ -81,8 +81,6 @@
typedef char Glyph;
typedef U8 Mark;
-typedef struct Field Field;
-
ORCA_FORCE_STATIC_INLINE Usz orca_round_up_power2(Usz x) {
assert(x <= SIZE_MAX / 2 + 1);
x -= 1;
--- a/field.h
+++ b/field.h
@@ -6,11 +6,11 @@
// for loading/saving from files and doing common operations that a UI layer
// might want to do. Not used by the VM.
-struct Field {
+typedef struct {
Glyph* buffer;
U16 height;
U16 width;
-};
+} Field;
void field_init(Field* field);
void field_init_fill(Field* field, Usz height, Usz width, Glyph fill_char);