Bruce Evans <[EMAIL PROTECTED]> writes:
> Both have large namespace pollution (p and n are in the application
> namespace).  Both give huge code wih a copy of the function in every
> object file whose source file(s) include this header if inline functions
> are not actually inline (which happens if the compiler is gcc -O0 or
> non-gcc).

I fixed the namespace problems in the version I posted for review on
-standards.  Do you see any problems with changing FD_ZERO() to:

#define FD_ZERO(p)      do {                            \
        fd_set *_p = (p);                               \
        __size_t _n = _howmany(FD_SETSIZE, _NFDBITS);   \
        while (_n > 0)                                  \
                _p->__fds_bits[--_n] = 0;               \
} while (0);

...to overcome the issues with the inline version?

Best regards,
Mike Barcroft

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to