libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: less mixing of object and function pointers


From: Eric Blake
Subject: Re: less mixing of object and function pointers
Date: Wed, 30 Aug 2006 21:47:05 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Thunderbird/1.5.0.5 Mnenhy/0.7.4.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Ralf,

According to Ralf Wildenhues on 8/30/2006 9:28 PM:
> Hello Peter, Eric,
> 
> Here's a patch to fix the issue without changing the public interface:
> instead of casting a pointer to void to a function pointer, we pass a
> pointer to a function pointer; this requires one more dereference, but
> as it's a pointer to data, it eliminates the conversion issue.

And nicer than my idea of a union between a data and function pointer.  Is
there any way to move the testsuite addition away from mdemo and into the
autotest arena?  But as it is, this is an improvement over no test at all,
so I would go ahead and check it in if trying to put it in autotest proves
too challenging.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE9lu584KuGfSFAYARArwLAJ9thpgP/a/eg1q4FzFV+AHkeAdsFACfclxW
zCIo+S/ivXINHwqQZaiphlE=
=b1qb
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]