[json-glib] Clean up the enumeration type template
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib] Clean up the enumeration type template
- Date: Fri, 25 Jul 2014 08:17:20 +0000 (UTC)
commit cfc576eb1a22c7ab213e26bba7716534109884fe
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Jul 25 09:12:00 2014 +0100
Clean up the enumeration type template
json-glib/json-enum-types.c.in | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/json-glib/json-enum-types.c.in b/json-glib/json-enum-types.c.in
index 0e09075..a2a13b4 100644
--- a/json-glib/json-enum-types.c.in
+++ b/json-glib/json-enum-types.c.in
@@ -12,7 +12,8 @@
/*** BEGIN value-header ***/
GType
- enum_name@_get_type(void) {
+ enum_name@_get_type (void)
+{
static volatile gsize g_enum_type_id__volatile = 0;
if (g_once_init_enter (&g_enum_type_id__volatile))
@@ -27,9 +28,8 @@ GType
/*** BEGIN value-tail ***/
{ 0, NULL, NULL }
};
- GType g_enum_type_id;
- g_enum_type_id =
+ GType g_enum_type_id =
g_ type@_register_static (g_intern_static_string ("@EnumName@"), values);
g_once_init_leave (&g_enum_type_id__volatile, g_enum_type_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]