ref: 41f216bc13d3ad9788ab318a07928d3ae3e100d1
parent: 68786296378d283053e6b144433b704440505628
author: Simon Howard <fraggle@soulsphere.org>
date: Sat Jul 11 13:39:38 EDT 2015
textscreen: Fix struct initializers. I think this is valid ANSI C, but it seems to cause problems with MSVC compilation. As the initializer isn't strictly necessary, let's just get rid of it.
--- a/textscreen/txt_table.c
+++ b/textscreen/txt_table.c
@@ -26,10 +26,10 @@
#include "txt_strut.h"
#include "txt_table.h"
-txt_widget_t txt_table_overflow_right = {};
-txt_widget_t txt_table_overflow_down = {};
-txt_widget_t txt_table_eol = {};
-txt_widget_t txt_table_empty = {};
+txt_widget_t txt_table_overflow_right;
+txt_widget_t txt_table_overflow_down;
+txt_widget_t txt_table_eol;
+txt_widget_t txt_table_empty;
// Returns true if the given widget in the table's widgets[] array refers
// to an actual widget - not NULL, or one of the special overflow pointers.