On Sat, Apr 30, 2011 at 10:18, Ludo Brands <ludo.bra...@free.fr> wrote:
> Can you post the original c code? You point to a file that seems to be a > reworked output from h2pas. As it is now, it indeed doesn't make any sense. > I would think the su_len,su_family,su_port should make up a record but they > aren't. > Actually it's my own code :) But here is the original header<http://sofia-sip.cvs.sourceforge.net/viewvc/sofia-sip/sofia-sip/libsofia-sip-ua/su/sofia-sip/su.h?revision=1.16&view=markup>, line 157. The question is how can I create this lines ? > > I suggest you move the #defines inside the union declaration to somewhere > before the union declaration. It'll double up the ifdef's but make the code > so much more readable. > Thanks, Ido > > > -----Message d'origine----- > *De :* fpc-pascal-boun...@lists.freepascal.org [mailto: > fpc-pascal-boun...@lists.freepascal.org] *De la part de* ik > *Envoyé :* vendredi 29 avril 2011 22:15 > *À :* FPC-Pascal users discussions > *Objet :* [fpc-pascal] How to translate this union ? > > Hello list, > > I'm trying to translate the following > union<https://github.com/ik5/sofia-sip/blob/master/src/lib/sui.inc#L199>to > Pascal, but I do not understand it, and so does h2pas. > How to translate it ? > > Thanks, > > Ido > > > LINESIP - Opening the source for communication > http://www.linesip.com > http://www.linesip.co.il > > > > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal