Date: Tue, 26 Dec 2017 19:18:51 -0800 From: Eitan Adler <lists@eitanadler.com> To: FreeBSD Hackers <freebsd-hackers@freebsd.org>, benno@freebsd.org, gwollman@freebsd.org Subject: Parsing a comment in stdlib.h Message-ID: <CAF6rxg=BRGTNz8qFCuzFLxH0V5kTa6LpF8wi2JcEmHJxbJA9AQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi all, I'm trying to understand a visibility comment in stdlib.h. Is the following change technically correct? Can it be made more clear? Index: include/stdlib.h =================================================================== --- include/stdlib.h (revision 327228) +++ include/stdlib.h (working copy) @@ -120,8 +120,10 @@ int wctomb(char *, wchar_t); size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t); /* - * Functions added in C99 which we make conditionally available in the - * BSD^C89 namespace if the compiler supports `long long'. + * Functions added in C99 which we make available if + * - its C99 + * - BSD visible and not C89 + * - its C++ * The #if test is more complicated than it ought to be because * __BSD_VISIBLE implies __ISO_C_VISIBLE == 1999 *even if* `long long' * is not supported in the compilation environment (which therefore means -- Eitan Adler
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxg=BRGTNz8qFCuzFLxH0V5kTa6LpF8wi2JcEmHJxbJA9AQ>