Hi Bruce,

2013/4/29 Bruce Evans <b...@optusnet.com.au>:
> - usr.bin/rlogin/rlogin.c has it in a gratuitously different form, as
>   'static _Noreturn void        usage(void);'.  This is bogus since
>   _Noreturn is a wrapper for a new C++ feature

I hate to correct you here, but _Noreturn is not a wrapper for a new
C++ feature, it's a keyword that's part of C11. See:

http://en.wikipedia.org/wiki/C11_(C_standard_revision)#Changes_from_C99

All C11 keywords can be implemented on top of GCC-specific constructs,
with the exception of _Generic. I would strongly prefer it if we used
these keywords over our FreeBSD-specific solutions.

If the only objection is the spelling of these keywords (underscores,
uppercase, etc), be sure to:

#include <stdalign.h> /* For alignas/alignof. */
#include <stdnoreturn.h> /* For noreturn. */
#include <threads.h> /* For thread_local. */

--
Ed Schouten <e...@80386.nl>
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to