bcd.gen: A generator for bindings to C++ in D

Gregor Richards Richards at codu.org
Thu Jun 1 13:38:50 PDT 2006


clayasaurus wrote:
> You should give libpng a whirl, it is written in C and would be nice but 
> a real headache to manually port to D.

Unfortunately, libpng uses setjmp/longjmp, so binding it would involve 
making a system-independent binding to those, first ... that would 
certainly be possible, but ow :)

  - Gregor Richards

PS: The main difficulty in making a system-independent binding to 
setjmp/longjmp is that jmpbufs are different sizes on every system. 
They're 24 bytes on x86/Linux, 64 bytes (IIRC) on x86/Windows, and a 
different size on just about every system.  Pfft.



More information about the Digitalmars-d-announce mailing list