[turbine] Move class and object struct typedefs above definitions
- From: Thomas Wood <thos src gnome org>
- To: svn-commits-list gnome org
- Subject: [turbine] Move class and object struct typedefs above definitions
- Date: Mon, 18 May 2009 06:35:46 -0400 (EDT)
commit 17780f495896402483b96d4140f96bd28d4e46c6
Author: Thomas Wood <thomas wood intel com>
Date: Mon May 18 11:34:23 2009 +0100
Move class and object struct typedefs above definitions
---
gobject-gen.py | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/gobject-gen.py b/gobject-gen.py
index 182ef5e..c88c9d8 100755
--- a/gobject-gen.py
+++ b/gobject-gen.py
@@ -73,13 +73,18 @@ G_BEGIN_DECLS
(G_TYPE_INSTANCE_GET_CLASS ((obj), \\
%(package_upper)s_TYPE_%(object_upper)s, %(class_camel)sClass))
-typedef struct {
+typedef struct _%(class_camel)s %(class_camel)s;
+typedef struct _%(class_camel)sClass %(class_camel)sClass;
+
+struct _%(class_camel)s
+{
%(parent_camel)s parent;
-} %(class_camel)s;
+};
-typedef struct {
+struct _%(class_camel)sClass
+{
%(parent_camel)sClass parent_class;
-} %(class_camel)sClass;
+};
GType %(class_lower)s_get_type (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]