From 2dbe0eb510dedab8949f950b0123fd7e9b4134b1 Mon Sep 17 00:00:00 2001 From: cancel Date: Tue, 22 Jan 2019 08:58:22 +0900 Subject: [PATCH] Remove typedef for Field from base.h No longer needed. --- base.h | 2 -- field.h | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/base.h b/base.h index 299e9ac..0766c0d 100644 --- a/base.h +++ b/base.h @@ -81,8 +81,6 @@ typedef ssize_t Isz; 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; diff --git a/field.h b/field.h index 60341e7..8790ebb 100644 --- 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);