[fpc-pascal] Comedi Lib Header translation, was: h2pas enum error

Marc Santhoff M.Santhoff at web.de
Wed May 5 19:24:50 CEST 2010


Am Mittwoch, den 05.05.2010, 11:29 +0200 schrieb Hartmut Eilers:

> comedi.h:
> 
>     494
>     495 static inline unsigned NI_USUAL_PFI_SELECT(unsigned pfi_channel)
>     496 {
>     497         if(pfi_channel < 10)
>     498                 return 0x1 + pfi_channel;
>     499         else
>     500                 return 0xb + pfi_channel;
>     501 }
> 
> 
> is the inline the problem ?

If it is you can resolve it using the C preprocessor using a command
line similar to this one:

cpp --no-stdinc comedi.h > comedi.cpped.h

Afterwards try h2pas again.

Good luck,
Marc

-- 
Marc Santhoff <M.Santhoff at web.de>




More information about the fpc-pascal mailing list