I agree with you that using "square" and "inverse" is not a good idea.

> So what to do?  Bracket square() and inverse() into some
>
> #ifdef _USING_AVR_LIBC_EXTENSIONS
> ...
> #endif
>
> macro?  That's usually the take operating systems vendors chose for
> their public header files.  It would require another macro though that
> needs to be published and documented.
>
> Export them as _square() and _inverse()?  That way, they are in the
> implementation name space, thus cannot collide with the application.

I don't have a strong opinion on that but when I'd have to choose, I'd 
probably take the second one.

Regards,

Bj�rn


_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to