libtool-patches
[Top][All Lists]
Advanced

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

Re: 330-gary-ltdl-vs-need-lib-prefix-unknown


From: Bob Friesenhahn
Subject: Re: 330-gary-ltdl-vs-need-lib-prefix-unknown
Date: Sun, 24 Jun 2007 10:42:17 -0500 (CDT)

On Sun, 24 Jun 2007, Ralf Wildenhues wrote:

If we need to use pointers to void for hiding in external headers, then
so be it.  But most of the time I don't see why this:
 struct lt_foo;  /* declaration only, no definition */
 typedef struct lt_foo *lt_foo_handle;
 int lt_foofunc (lt_foo_handle);

I definitely agree that the approach you describe is much better than an approach which requires casts from a pointer of void type. In C, casts lead to suspicion of the code since they eliminate the compiler's ability to detect and notify of problems.

These hunks are all superfluous, except of course the one functional
change to the tryall_dlopen call, for which one must look closely to not
overlook it.  Please separate functional changes from cleanup changes in
patch postings, that would make the former be much more easily spottable.

I definitely agree here too.

Bob
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/





reply via email to

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