ref: f0d613f188e1c5f88679609b3364e1d170ae492a
parent: 211dd1522906b7bca38a888558a4a922f44921c2
author: Simon Howard <fraggle@soulsphere.org>
date: Wed Dec 26 08:58:58 EST 2018
textscreen: Remove superfluous first_widget param. This avoids a warning from doxygen about the fact that the parameter is undocumented. Since it's not necessary anyway, it can just be removed.
--- a/textscreen/txt_table.c
+++ b/textscreen/txt_table.c
@@ -908,16 +908,13 @@
// Alternative to TXT_NewTable() that allows a list of widgets to be
// provided in its arguments.
-txt_table_t *TXT_MakeTable(int columns, TXT_UNCAST_ARG(first_widget), ...)
+txt_table_t *TXT_MakeTable(int columns, ...)
{
- TXT_CAST_ARG(txt_widget_t, first_widget);
txt_table_t *table;
va_list args;
table = TXT_NewTable(columns);
- TXT_AddWidget(table, first_widget);
-
- va_start(args, TXT_UNCAST_ARG_NAME(first_widget));
+ va_start(args, columns);
for (;;)
{
--- a/textscreen/txt_table.h
+++ b/textscreen/txt_table.h
@@ -110,7 +110,7 @@
* @return Pointer to the new table structure.
*/
-txt_table_t *TXT_MakeTable(int columns, TXT_UNCAST_ARG(first_widget), ...);
+txt_table_t *TXT_MakeTable(int columns, ...);
/**
* Create a table containing the specified widgets packed horizontally,