Re: [hwloc-users] Creating a D wrapper around hwloc

2010-04-17 Thread Fawzi Mohamed
Hi Jim Burnes, if D is Digital Mars D 1.0 you might want to know that I already did a wrapper, and I am using it since quite some it is part of blip which is available with an apache 2.0 license. http://dsource.org/projects/blip ciao Fawzi On 16-apr-10, at 22:17, Jim Burnes wrote: Hi,

Re: [hwloc-users] Creating a D wrapper around hwloc

2010-04-16 Thread Jim Burnes
Brice, Thanks for the clarification. Since I'm not familiar with them, do you happen to know the scoping of static inlines? Are they expanded using the current scope? Are they pure? Since they aren't guaranteed to be available in the library I'll implement them using templates, though it may

Re: [hwloc-users] Creating a D wrapper around hwloc

2010-04-16 Thread Brice Goglin
Jim Burnes wrote: > I can make these available to D in several different ways, but I need > to know the true intent of marking them as "static __inline". > > 1. Are they marked that way simply to increase performance? > No. > 2. Are they marked that way to avoid some sort of thread safety

[hwloc-users] Creating a D wrapper around hwloc

2010-04-16 Thread Jim Burnes
Hi, I'm creating a D wrapper around hwloc and so far it's going well, but I need some advice... One of the last issues I running into is at link time. Since a number of functions (especially in helper.h) are define as "static __inline" they are essentially macros. This is why they don't appear