Re: [xml] [PATCH] DSO/Module Support
- From: Bjorn Reese <breese mail1 stofanet dk>
- To: Joel Reed <joelwreed comcast net>
- Cc: xml gnome org
- Subject: Re: [xml] [PATCH] DSO/Module Support
- Date: Tue, 21 Dec 2004 20:41:26 +0100
Joel Reed wrote:
+void* xmlModulePlatformSymbol(void* handle, const char* name)
+{
+ void* sym;
+ sym = dlsym(handle, name);
+ return (sym);
While dlsym() returns NULL on error, it can also return NULL as a valid
address. The way you distinguish between these two conditions is to call
dlerror(). If dlerror() returns NULL, then the address is valid,
otherwise it
is not.
This may be easily fixed, but you may also need to change the way that
xmlModulePlatformSymbol indicates an error to xmlModuleSymbol.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]