From nobody Wed Nov 20 20:09:40 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XtssJ2ht4z5dhrf; Wed, 20 Nov 2024 20:09:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XtssJ1v95z4kJ4; Wed, 20 Nov 2024 20:09:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732133380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5rfDwNxIyZnDqz5yDZxLwDQJDQ9aMj2fsCV6X8v6dbY=; b=FakEDuwrQBHbQJ8lvvh81sAeV/W9TGeC6GPm5lsJ6nrUUKi790tiKrrmxPiALvgBIkFeVx df0JZiq/zq8zcGyIZuKpq/6m1j42M+qFX2dwV/OC6MA07apepzF6XkrDdjCX+dAdITeVO4 kvLv1InCHa/kiqRWqiBKwuIwlbaPrdmKbrneNZq6TkGN2XdKbXIQRYkCa3XzKbLg36Td4y aLk8XnM80Rp7qtQU/enUt8ePPUgRGemxYZyd14adI9+y12y3Wyk2safN9aamsf5TVJW8D3 eIr0a475D4vWjz06hSwmGVfMfLopRN93lDYO4bjQ7t3pf7/N+1KQvp1IUbGwjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732133380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5rfDwNxIyZnDqz5yDZxLwDQJDQ9aMj2fsCV6X8v6dbY=; b=DlFEGhaXVFqJJ6yoGklY/RqEEBTHn7y5TwjuRKwdpQE7L9+CkpxEMecIJNuVRGcMezHLWR LDX5PrkigByV1wiLBbjCg0IUaDPz4xqvvttQpdnTmTouq6LKJx9fbM9wbxaZhH89UOCseX 6h8CulDXaGAzwuP1j6Mk8CJf+lYHy9k1skAJ9JZKo6dItU9cbBK75CcbDUI+qCyMyvwfZp eDoB5OzIyRbQP/DLmdgsEo88VhGNh+tiBbuan3C6mhhCYsUPVO3nLePivhMVbBjEYOWg1O CQTxK/7KqHmIO4REVKr69e51QrNIa9ioZC0J+nFIbMRC7PLy5NIl5d+BYOq3TA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732133380; a=rsa-sha256; cv=none; b=j7XmXhyVvw2EdyFgPtphyjILfRnZjoJ91xXUmnEeS56nMDLcDI7pCWwh1kYW7+fS/jqOqL CYk7/RbuU56/LdeMXk5znJnasuyvtVkoSZovT+GI61OrOP6WcxRt0zMogA5pOt06iPrfsu lwO/UYcvSp8hpbyOVcVcMuNBwF3dXte4Fx4g1VIEo4Uz9SLHqEIW8tiwSWeTr/0uB7afzb O/3kdCCWUWrCSZlUrmjecKyjO89nqbawKNuotmuELhi0DiMVp+If0H91CYkT4oP+ATh2kr /hMonFKy60c53y2ZMjS40RcVKQcLk2lUZHZQ/8bIV66ytU6lBzwDUSW2luEUSw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XtssJ1DS5z17lF; Wed, 20 Nov 2024 20:09:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AKK9eqP044458; Wed, 20 Nov 2024 20:09:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AKK9epl044455; Wed, 20 Nov 2024 20:09:40 GMT (envelope-from git) Date: Wed, 20 Nov 2024 20:09:40 GMT Message-Id: <202411202009.4AKK9epl044455@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jessica Clarke Subject: git: 7a3af393d8ac - main - sys/cdefs.h: Add comments to make #if/#else/#endif triple more obvious List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jrtc27 X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7a3af393d8ac2dfe72d24fe401344b60c4f87866 Auto-Submitted: auto-generated The branch main has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=7a3af393d8ac2dfe72d24fe401344b60c4f87866 commit 7a3af393d8ac2dfe72d24fe401344b60c4f87866 Author: Jessica Clarke AuthorDate: 2024-11-20 20:09:28 +0000 Commit: Jessica Clarke CommitDate: 2024-11-20 20:09:28 +0000 sys/cdefs.h: Add comments to make #if/#else/#endif triple more obvious This block has a lot of nesting, not helped by two adjacent nested blocks involving _POSIX_C_SOURCE, with only the inner one commented, looking like it's the end of the outer one. Comment the outer one as well so it's not quite so hard to figure out. MFC after: 1 week --- sys/sys/cdefs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 0f53ff816527..4f4f09a3d763 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -596,7 +596,7 @@ #undef __ISO_C_VISIBLE #define __ISO_C_VISIBLE 2011 #endif -#else +#else /* _POSIX_C_SOURCE */ /*- * Deal with _ANSI_SOURCE: * If it is defined, and no other compilation environment is explicitly @@ -640,7 +640,7 @@ #define __ISO_C_VISIBLE 2023 #define __EXT1_VISIBLE 1 #endif -#endif +#endif /* _POSIX_C_SOURCE */ /* User override __EXT1_VISIBLE */ #if defined(__STDC_WANT_LIB_EXT1__)