diff options
author | Colin Walters <walters@verbum.org> | 2009-03-03 21:44:36 (GMT) |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2009-03-03 21:44:36 (GMT) |
commit | 2bdd2bf9303ae0e718c00ec84078336e722138f1 (patch) | |
tree | 01916816c1fc42c61c6e14a6406381fa76b36351 | |
parent | b22ac84b4d31f0c644ca4b52586345f5c87a3135 (diff) |
Keep TestStructA as simple by moving GObject member to a new structure
The change in commit 2912b broke the gjs test suite which was relying
on TestStructA being "simple" (i.e. only having primitive fields as members).
-rw-r--r-- | tests/everything/everything.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/everything/everything.h b/tests/everything/everything.h index 448c74d..dbb7995 100644 --- a/tests/everything/everything.h +++ b/tests/everything/everything.h @@ -107,7 +107,6 @@ struct _TestStructA gint8 some_int8; gdouble some_double; TestEnum some_enum; - GObject *some_obj; }; void test_struct_a_clone (TestStructA *a, @@ -122,6 +121,13 @@ struct _TestStructB void test_struct_b_clone (TestStructB *b, TestStructB *b_out); +/* This one has a non-basic member */ +struct _TestStructC +{ + gint another_int; + GObject *obj; +}; + /* plain-old-data boxed types */ typedef struct _TestSimpleBoxedA TestSimpleBoxedA; typedef struct _TestSimpleBoxedB TestSimpleBoxedB; |