mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-07 09:56:15 +01:00
Do not use bool as a field name
C99 aliases `bool` to `_Bool`, and C23 introduces `bool` as a reserved keyword. Let's avoid using `bool` as a field name.
This commit is contained in:
parent
204a76669b
commit
9e320e1c43
@ -56,7 +56,7 @@ typedef struct
|
|||||||
gpointer arg_data;
|
gpointer arg_data;
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
gboolean bool;
|
gboolean boolean;
|
||||||
gint integer;
|
gint integer;
|
||||||
gchar *str;
|
gchar *str;
|
||||||
gchar **array;
|
gchar **array;
|
||||||
@ -1585,7 +1585,7 @@ free_changes_list (GOptionContext *context,
|
|||||||
switch (change->arg_type)
|
switch (change->arg_type)
|
||||||
{
|
{
|
||||||
case G_OPTION_ARG_NONE:
|
case G_OPTION_ARG_NONE:
|
||||||
*(gboolean *)change->arg_data = change->prev.bool;
|
*(gboolean *)change->arg_data = change->prev.boolean;
|
||||||
break;
|
break;
|
||||||
case G_OPTION_ARG_INT:
|
case G_OPTION_ARG_INT:
|
||||||
*(gint *)change->arg_data = change->prev.integer;
|
*(gint *)change->arg_data = change->prev.integer;
|
||||||
|
Loading…
Reference in New Issue
Block a user