[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 329-gary-allow-RTLD_GLOBAL
From: |
Bob Friesenhahn |
Subject: |
Re: 329-gary-allow-RTLD_GLOBAL |
Date: |
Tue, 10 Apr 2007 09:35:45 -0500 (CDT) |
On Tue, 10 Apr 2007, Gary V. Vaughan wrote:
int errors = 0;
lt_dlhandle handle;
lt_dladvise advise = lt_dladvise_init ();
if (advise == 0)
return 1;
Not ideal. By comparing with zero there is an implicit assumption
regarding the lt_dladvise type. It is usually better to avoid any
user knowledge of the type:
lt_dladvise advise;
if (!lt_dladvise_init(&advise))
return 1;
In this way, lt_dladvise can be a pointer, an integer, or a structure.
Bob
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
- 329-gary-allow-RTLD_GLOBAL, Gary V. Vaughan, 2007/04/07
- Re: 329-gary-allow-RTLD_GLOBAL, Ralf Wildenhues, 2007/04/07
- Re: 329-gary-allow-RTLD_GLOBAL, Bob Friesenhahn, 2007/04/07
- Re: 329-gary-allow-RTLD_GLOBAL, Gary V. Vaughan, 2007/04/08
- Re: 329-gary-allow-RTLD_GLOBAL, Ralf Wildenhues, 2007/04/08
- Re: 329-gary-allow-RTLD_GLOBAL, Bob Friesenhahn, 2007/04/08
- Re: 329-gary-allow-RTLD_GLOBAL, Ralf Wildenhues, 2007/04/09
- Re: 329-gary-allow-RTLD_GLOBAL, Bob Friesenhahn, 2007/04/09
- Re: 329-gary-allow-RTLD_GLOBAL, Gary V. Vaughan, 2007/04/10
- Re: 329-gary-allow-RTLD_GLOBAL,
Bob Friesenhahn <=
- Re: 329-gary-allow-RTLD_GLOBAL, Gary V. Vaughan, 2007/04/10
- Re: 329-gary-allow-RTLD_GLOBAL, Bob Friesenhahn, 2007/04/10
- Re: 329-gary-allow-RTLD_GLOBAL, Gary V. Vaughan, 2007/04/10