[fpc-pascal] H2pas tool vs others, C header translation

Marco van de Voort marcov at stack.nl
Sun Aug 27 19:23:38 CEST 2017


In our previous episode, noreply at z505.com said:
> > And sometimes API don't adhere to above statement, and then having 
> > chosen
> > the right boolean type (longbool or boolean<x>) saves a lot of trouble.
> 
> Another option is to write BOOLEAN wrappers around the lower level 
> functions that interface in to the DLL
> So for example, could even use an INTEGER, as the boolean, as the Jedi 
> fellow sometimes does, then write a wrapper around it that makes use of 
> a proper boolean. All this, though, is a headache and obnoxious, tedious 

I think doing this systematically introduces more mistakes than it solves,
since all that manual work also has a risk at errors.




More information about the fpc-pascal mailing list