thats h2pas result of compilling this structure into pascal. But thanks for the tip.<br><br><div class="gmail_quote">2009/10/7 Jürgen Hestermann <span dir="ltr"><<a href="mailto:juergen.hestermann@gmx.de">juergen.hestermann@gmx.de</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
> Jorge Aldo G. de F. Junior schrieb:<div class="im"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
type ifreq = record<br>
ifr_ifrn : record<br>
case longint of<br>
0 : ( ifrn_name : array[0..15] of char );<br>
end;<br>
ifr_ifru : record<br>
case longint of<br>
0 : ( ifru_addr : sockaddr );<br>
1 : ( ifru_dstaddr : sockaddr );<br>
2 : ( ifru_broadaddr : sockaddr );<br>
3 : ( ifru_netmask : sockaddr );<br>
4 : ( ifru_hwaddr : sockaddr );<br>
5 : ( ifru_flags : smallint );<br>
6 : ( ifru_ivalue : longint );<br>
7 : ( ifru_mtu : longint );<br>
8 : ( ifru_map : ifmap );<br>
9 : ( ifru_slave : array[0..15] of char );<br>
10 : ( ifru_newname : array[0..15] of char );<br>
11 : ( ifru_data : __caddr_t );<br>
end;<br>
end;<br>
<br>
</blockquote>
<br></div>
What is the reason of the first case statement in the record? There is only one variant so you can omit it.<div><div></div><div class="h5"><br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">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>
</div></div></blockquote></div><br>