<div dir="ltr"><br><br><br><div class="gmail_quote">On Sat, Apr 30, 2011 at 10:18, Ludo Brands <span dir="ltr"><<a href="mailto:ludo.brands@free.fr">ludo.brands@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
<div><span><font size="2" color="#0000ff" face="Arial">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.</font></span></div></div></blockquote><div><br>Actually it's my own code :) But here is the <a href="http://sofia-sip.cvs.sourceforge.net/viewvc/sofia-sip/sofia-sip/libsofia-sip-ua/su/sofia-sip/su.h?revision=1.16&view=markup">original header</a>, line 157. The question is how can I create this lines ?<br>
<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>
<div><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div><span><font size="2" color="#0000ff" face="Arial">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.</font></span></div></div></blockquote><div><br>Thanks,<br><br>Ido<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
<div><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div></div>
<div><font size="2" face="Tahoma">-----Message d'origine-----<br><b>De :</b>
<a href="mailto:fpc-pascal-bounces@lists.freepascal.org" target="_blank">fpc-pascal-bounces@lists.freepascal.org</a>
[mailto:<a href="mailto:fpc-pascal-bounces@lists.freepascal.org" target="_blank">fpc-pascal-bounces@lists.freepascal.org</a>] <b>De la part de</b>
ik<br><b>Envoyé :</b> vendredi 29 avril 2011 22:15<br><b>À :</b>
FPC-Pascal users discussions<br><b>Objet :</b> [fpc-pascal] How to
translate this union ?<br><br></font></div><div><div></div><div class="h5">
<blockquote dir="ltr" style="margin-right:0px">
<div dir="ltr">Hello list,<br><br>I'm trying to translate the <a href="https://github.com/ik5/sofia-sip/blob/master/src/lib/sui.inc#L199" target="_blank">following
union</a> to Pascal, but I do not understand it, and so does h2pas.<br>How to
translate it ?<br><br>Thanks,<br><br>Ido<br><br><br clear="all">
<div dir="ltr">LINESIP - Opening the source for communication<br><a href="http://www.linesip.com" target="_blank">http://www.linesip.com</a><br><a href="http://www.linesip.co.il" target="_blank">http://www.linesip.co.il</a><br>
<br></div><br></div></blockquote></div></div></div>
<br>_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br></blockquote></div><br></div>