[Gd-hackers] [Gd-chatter] r11468 - in branches/opendylan-melange: gtk-c-ffi gtk-duim
Hannes Mehnert
hannes at mehnert.org
Thu Oct 18 02:01:42 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA384
Hi Chris,
Chris Page wrote:
> On Oct 16, 2007, at 15:17 PM, andreas at gwydiondylan.org wrote:
>
>> -define C-pointer-type <char*> => <C-signed-char>;
>> +define constant <char*> = <C-string>;
>
> Why did you change the definition of <char*>?
well, the C-pointer-type of <C-signed-char> was automatically generated
by melange. The <C-string> has the nice possibility to be able to pass a
Dylan <byte-string> to C-FFI functions which expect a <C-String>. The
conversion (append 0 byte) is done automatically. This is not the case
with <C-signed-char>.
So, since <C-string> is magic and convenient, we use it here. Also,
<gchar*> (most often used in GTK API) is a <C-string>.
King Regards,
Hannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHFqJlRcuNlziBjRwRCdUqAJ0RE0LYdMXodBs8koZvdZ0Ym7r3lQCgx9CT
Ym40i+YRgzpQth++E/LuO8Q=
=vVIL
-----END PGP SIGNATURE-----
More information about the hackers
mailing list