Received: by mail.netbsd.org (Postfix, from userid 605) id C9C6885EAE; Sun, 2 Oct 2016 13:09:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 54CF485E9C for ; Sun, 2 Oct 2016 13:09:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id 4_JIYc_JlIpI for ; Sun, 2 Oct 2016 13:09:24 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 97DF784CBD for ; Sun, 2 Oct 2016 13:09:24 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 8DD4BFBD2; Sun, 2 Oct 2016 13:09:24 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 2 Oct 2016 13:09:24 +0000 From: "Kamil Rytarowski" Subject: CVS commit: src To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20161002130924.8DD4BFBD2@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Kamil Rytarowski" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: kamil Date: Sun Oct 2 13:09:24 UTC 2016 Modified Files: src/distrib/sets/lists/comp: mi src/include: Makefile Added Files: src/include: stdnoreturn.h Log Message: Import This header conforms to the C11 standard Reference: ISO/IEC 9899:201x 7.23 _Noreturn According to ISO/IEC 9899:201x (draft) 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 choice for not checking for C99 - follow and declare the __noreturn_is_defined guard - use a standard header guard (_STDNORETURN_H_), similar to Reviewed by and To generate a diff of this commit: cvs rdiff -u -r1.2060 -r1.2061 src/distrib/sets/lists/comp/mi cvs rdiff -u -r1.141 -r1.142 src/include/Makefile cvs rdiff -u -r0 -r1.1 src/include/stdnoreturn.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.