On 5 May 2010 09:42, Hartmut Eilers <hart...@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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal