Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-05

h2pas enum error

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Hartmut Eilers

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 ?

Thanks for your help

Hartmut

Henry Vermaak
to Hartmut Eilers
Hartmut Eilers wrote 15 lines
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