Sign in Join

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

Mailing lists / fpc-pascal / 2003-04

help needed in converting C headers.

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

V.Krishnakumar

Hi group !,

In trying to convert the headers of the WINGs gui toolkit (part of WindowMaker), I've run into problems.

1. The headers are split into public and private parts. Therefore a lot of forward references are present.
2. for each typedef, h2pas generates a separate type "block" thereby breaking the forward references.
3. h2pas produces wrong translation:

typedef struct _point point

    should be translated as
type
     point = _point;
instead  h2pas produces
    type
      _point = point;

which is wrong.

i'm attaching the headers just in case someone wants to produce the proper pascal units.

btw, WINGs is a small toolkit useful for small apps. It faitfully implements the NeXTStep look and feel.

cheers,
-Krish
PS: sorry if the message is repeated. I just was'nt sure if the message got across.