From: Alan W. I. <ir...@be...> - 2002-11-26 23:04:14
|
On Tue, 26 Nov 2002, Maurice LeBrun wrote: > Alan W. Irwin writes: > > Any C expert on the list know why *PLDispatchInit rather than > > PLDispatchInit? > [...]One confusing point is that ANSI C allows you to drop the explicit dereference > when making the actual function call, i.e. > > (*dispatch_init)(pdt); > and > dispatch_init(pdt); > > are the same. But since you have to keep the distinction straight in the > declaration, the first form is probably better (IMO) as being more > transparent. Thanks, Maurice. I was indeed getting confused by that. Thanks for the explanation! > > One other issue I ran into was how to initialize libltdl and release its > > memory when done. > > Could it go in pllib_init()? I added this earlier this year to help solve > this problem Yes, that is an excellent solution which I have just tested and committed. Thanks! Alan |