[glib/wip/enum-types-reloc: 2/2] Drop the enumeration values from static storage
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/enum-types-reloc: 2/2] Drop the enumeration values from static storage
- Date: Thu, 20 Jul 2017 10:09:24 +0000 (UTC)
commit f2eb398a219b170954834bf4a74db90f3ce83c5e
Author: Emmanuele Bassi <ebassi gnome org>
Date: Wed Jul 19 18:39:01 2017 +0100
Drop the enumeration values from static storage
We have API to copy the values at type registration time, now.
gio/gioenumtypes.c.template | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gioenumtypes.c.template b/gio/gioenumtypes.c.template
index e9adc4a..83e0892 100644
--- a/gio/gioenumtypes.c.template
+++ b/gio/gioenumtypes.c.template
@@ -17,7 +17,7 @@ GType
if (g_once_init_enter (&g_define_type_id__volatile))
{
- static const G@Type@Value values[] = {
+ const G@Type@Value values[] = {
/*** END value-header ***/
/*** BEGIN value-production ***/
@@ -28,7 +28,7 @@ GType
{ 0, NULL, NULL }
};
GType g_define_type_id =
- g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
+ g_@type@_type_register_static (g_intern_static_string ("@EnumName@"), values);
g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]