[glib/main-c89: 5/5] GDateTime test: Avoid designated initializers
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/main-c89: 5/5] GDateTime test: Avoid designated initializers
- Date: Wed, 4 Aug 2021 08:11:52 +0000 (UTC)
commit c310cca0a823df872a049d1da4d6d1a7721dc8e5
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Aug 4 16:10:46 2021 +0800
GDateTime test: Avoid designated initializers
This updates the test program so that we avoid using designated
initializers, so that pre-VS2013 can be preserved.
glib/tests/gdatetime.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/glib/tests/gdatetime.c b/glib/tests/gdatetime.c
index 12f332b44..c71704dbc 100644
--- a/glib/tests/gdatetime.c
+++ b/glib/tests/gdatetime.c
@@ -2325,23 +2325,23 @@ typedef struct
} MixedUtf8TestData;
static const MixedUtf8TestData utf8_time_non_utf8_messages = {
- .utf8_messages = FALSE,
- .utf8_time = TRUE
+ FALSE, /* utf8_messages */
+ TRUE /* utf8_time */
};
static const MixedUtf8TestData non_utf8_time_utf8_messages = {
- .utf8_messages = TRUE,
- .utf8_time = FALSE
+ TRUE, /* utf8_messages */
+ FALSE /* utf8_time */
};
static const MixedUtf8TestData utf8_time_utf8_messages = {
- .utf8_messages = TRUE,
- .utf8_time = TRUE
+ TRUE, /* utf8_messages */
+ TRUE /* utf8_time */
};
static const MixedUtf8TestData non_utf8_time_non_utf8_messages = {
- .utf8_messages = FALSE,
- .utf8_time = FALSE
+ FALSE, /* utf8_messages */
+ FALSE /* utf8_time */
};
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]