Searched hist:1.2061 (Results 1 - 3 of 3) sorted by relevance

/src/doc/
H A D3RDPARTY1.2061 Thu Nov 21 10:18:07 GMT 2024 wiz less-668 is out
H A DCHANGES1.2061 Fri Mar 27 00:45:00 GMT 2015 msaitoh wm(4): Add X540 support.
/src/distrib/sets/lists/comp/
H A Dmi1.2061 Sun Oct 02 13:09:24 GMT 2016 kamil Import <stdnoreturn.h>

This header conforms to the C11 standard
Reference: ISO/IEC 9899:201x 7.23 _Noreturn <stdnoreturn.h>

According to ISO/IEC 9899:201x (draft) <stdnoreturn.> defines the
noreturn macro which expands to _Noreturn.

The _Noreturn keyword appears in a function declaration and specifies
that the function does not return by reaching the end of the function
body.

Design choices:
- don't implicitly break C++ code including this header with #error
C++11 offers [[noreturn]] which conflicts with C11 _Noreturn

- don't check for __STDC_VERSION__, everybody is free to reuse it with
a nonstandard compiler not conforming to C11 but supporting _Noreturn

gcc(1) and clang(1) support _Noreturn in -std=c99 and older standards

this follows <stdbool.h> choice for not checking for C99

- follow <stdbool.h> and declare the __noreturn_is_defined guard

- use a standard header guard (_STDNORETURN_H_), similar to <stdbool.h>

Reviewed by <pgoyette> and <joerg>

Completed in 370 milliseconds