[fpc-pascal]help needed in converting C headers.

V.Krishnakumar vkrish at vkrish.cjb.net
Mon Apr 28 07:23:48 CEST 2003


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.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: WINGs.h.gz
Type: application/gzip
Size: 10251 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20030428/6a7387f1/attachment.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WINGsP.h.gz
Type: application/gzip
Size: 3736 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20030428/6a7387f1/attachment-0001.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WUtil.h.gz
Type: application/gzip
Size: 7524 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20030428/6a7387f1/attachment-0002.gz>


More information about the fpc-pascal mailing list