[fpc-pascal] h2pas enum error
Henry Vermaak
henry.vermaak at gmail.com
Wed May 5 10:53:26 CEST 2010
On 5 May 2010 09:42, Hartmut Eilers <hartmut at eilers.net> wrote:
> Hello Pascal Hackers,
>
> I try to translate the comedilib to pascal. I use h2pas with the
> following params:
> h2pas -e -D -p -w -u comedilib -l comedilib -o comedilib.pas comedilib.h
>
> I get the message:
> at line 79 error : syntax error
>
> Line 79 of comedilib.h is:
> enum comedi_oor_behavior comedi_set_global_oor_behavior(enum
> comedi_oor_behavior behavior);
>
> It seems that h2pas translates the rest of the lib without problems.
> can anybody give me directions how to translate this enum to pascal ?
This is a function that takes an enum param and returns an enum:
function comedi_set_global_oor_behavior(behavior:
comedi_oor_behavior): comedi_oor_behavior;
Henry
More information about the fpc-pascal
mailing list