gmodule-dl.c: _g_module_symbol()
- From: Felix Kater <fkater googlemail com>
- To: gtk-devel-list gnome org
- Subject: gmodule-dl.c: _g_module_symbol()
- Date: Mon, 11 Dec 2006 18:41:04 +0100
Just this annotation:
On linux 'man dlopen' says that the correct way to check if dlsym() was
successful is to do something like this
dlerror();
p=dlsym(...);
pc=dlerror();
if(pc)
/* (error) */
else
/* (ok) */
while in gmodule-dl.c it is used:
p=dlsym(...);
if(!p)
/* (error) */
else
/* (ok) */
Felix
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]