Re: RE : RE : RE : [fpc-pascal] How to translate this union ?

2011-05-05 Thread ik
I've done the following at the moment: {$IFDEF SU_HAVE_SOCKADDR_SA_LEN} // #define su_len su_sa.sa_len <- unsupported for now {$ELSE} // #define su_len su_array[0] <- unsupported for now {$ENDIF} // #define su_family su_sa.sa_family

RE : RE : RE : RE : [fpc-pascal] How to translate this union ?

2011-05-05 Thread Ludo Brands
OK . You have avoided using macros but are loosing the access to "pseudo" members su_len,su_family,su_port and su_scope_id. The DOCUMENTATION_ONLY suggests that these members are documented parts of the interface. Also it will be up to the user to figure out where to get su_len according to SU_HAVE

Re: RE : RE : RE : RE : [fpc-pascal] How to translate this union ?

2011-05-05 Thread ik
On Thu, May 5, 2011 at 17:05, Ludo Brands wrote: > OK . You have avoided using macros but are loosing the access to "pseudo" > members su_len,su_family,su_port and su_scope_id. The DOCUMENTATION_ONLY > suggests that these members are documented parts of the interface. Also it > will be up to the

RE : RE : RE : RE : RE : [fpc-pascal] How to translate this union ?

2011-05-05 Thread Ludo Brands
I guess DOCUMENTATION_ONLY is defined in an external tool such as doxygen. Applications wouldn't define this. My point is that if the "pseudo" members are documented, someone will soon or later use them. If this header translation is for your personal use only, then all is fine... -Message