diff dwt/internal/c/glib_object.d @ 56:002bcca59004

Added tools to verify the struct sized of C binding. Tweaks were necessary.
author Frank Benoit <benoit@tionex.de>
date Sat, 12 Jan 2008 01:30:15 +0100
parents 27324bbbac70
children 380bad9f6852
line wrap: on
line diff
--- a/dwt/internal/c/glib_object.d	Fri Jan 11 15:40:16 2008 +0100
+++ b/dwt/internal/c/glib_object.d	Sat Jan 12 01:30:15 2008 +0100
@@ -9,8 +9,8 @@
 
 struct __gconv_step{}
 struct __gconv_step_data{}
-struct _GStaticMutex {}
-struct _GSystemThread{}
+struct _GStaticMutex { ubyte[28] dummy; }
+struct _GSystemThread{ ubyte[ 8] dummy; }
 // gen ..
 
 
@@ -994,7 +994,7 @@
 char * cset_first;
 char * cset_nth;
 char substitutor;
-uint bitfield0;
+ubyte bitfield0;
 // uint null_fold_if_empty // bits 0 .. 1
 // uint ensure_non_null // bits 1 .. 2
 }
@@ -1383,7 +1383,7 @@
 _GString * encoded_read_buf;
 _GString * write_buf;
 char [6] partial_write_buf;
-uint bitfield0;
+ubyte bitfield0;
 // uint use_buffer // bits 0 .. 1
 // uint do_encode // bits 1 .. 2
 // uint close_on_unref // bits 2 .. 3