From nobody Mon Dec 15 18:18:42 2025 X-Original-To: dev-commits-src-all@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 4dVSxH3Bpzz6L7Z0 for ; Mon, 15 Dec 2025 18:18:43 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dVSxG5zqdz4LG5 for ; Mon, 15 Dec 2025 18:18:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1765822722; 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=Tir/OXzuYkjj5oZmSwkLjSquPATdIQr6yeBsMpaMIOY=; b=m0Kxt86b2MqYnqIkA6ue/R8kxOR22TBKjKdSlllorF6IvY7vzK0YLY9l3q2DDGVJfKSCE8 ULofnL8wKuHYcuRaQSNVwSvJtliJvnYEzBkC0Xvh3PtsigbMqQla6P+XszepWnY2kJYGIA bB/IsXJVKIPVhx1tQPevOS1cV4bQ58PUsDYqxrfc7UxeXS8Rvs0YEE98gp3bI/zfQmcCjK 0zTM2gc4zfX4ZbFJxJbLPsFY8yMgtrOPIbX5uaxDIII77yM00tbiwvojLFMHFUPRv20egF 2LBzSJBbrh4LX/ELUtDpMlcpecw+vk9p/i7Vsa1C763TrASGDsL9A2+tUuNryw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1765822722; 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=Tir/OXzuYkjj5oZmSwkLjSquPATdIQr6yeBsMpaMIOY=; b=dbKkadb/LQqIpJIfrSguchsbe4ubcoT9tRlCZJCz24sfwtvOzBHl/h0SUv3lM4uruwtzGH LtWxzjyplDB3/QeAbWwqnFuHb7ZZULSaaj+wj260MkeK5JJZg3aTkZxBprto6gaizs0ueT UACUtfmssYy4nG8dV6M4BIaUgHlula2AqmInBFVN7lqoT3ltzztcrYxkHye141Qer/Fg1Q Zc0cVs5sGAoEaKa+suioK2cGPUBRmMRE8KcCAH6aFWCRoFi4FOTJboA4ZflVcdshOd6QHL dKUKABjKhe45xF+JkBd2ijbFnc649e9i/3xX703nW3M/yL7rVDttvEb92wkoGA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1765822722; a=rsa-sha256; cv=none; b=tSnOZ+aXpL1MD/T5toZcT50jfnfjTDO5/n++MR+yNNFHUAuyhYjZPYuaF547k3JKvrFVqe 9ZWnjqKtv9k0XavfauQmFjzKMcEFmVi9nEYCL0NT8xNe4pNFvXg6BTLT3BZlPXUSCezJrs GsSYcdSQH+/wtGPDoueHkPEOZYawHg+fI7bppSaGZ3EtLSQ/hhqtNtNFDS+rdQ3ySOgiLo NgUDoZiAwdMnJRlAhzdB0+K+VZEgBzy4uQgW+tTWsZv4y+9UR/3gAKlroa1OQOJ41i3TgI t8tnuKizz2tYRk6dxNqJ/eGjACu38K9qdGlPa25h1fAmvyb8CWFS8SqHP7oFbw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dVSxG5QYxzWqY for ; Mon, 15 Dec 2025 18:18:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 26202 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 15 Dec 2025 18:18:42 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Jessica Clarke Subject: git: ae54b3ca7831 - stable/13 - sys/cdefs.h: Add comments to make #if/#else/#endif triple more obvious List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/stable/13 X-Git-Reftype: branch X-Git-Commit: ae54b3ca7831ca0bbfe40b9824e1b80163be94e3 Auto-Submitted: auto-generated Date: Mon, 15 Dec 2025 18:18:42 +0000 Message-Id: <69405102.26202.7f20e0ce@gitrepo.freebsd.org> The branch stable/13 has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=ae54b3ca7831ca0bbfe40b9824e1b80163be94e3 commit ae54b3ca7831ca0bbfe40b9824e1b80163be94e3 Author: Jessica Clarke AuthorDate: 2024-11-20 20:09:28 +0000 Commit: Jessica Clarke CommitDate: 2025-12-15 17:56:35 +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 (cherry picked from commit 7a3af393d8ac2dfe72d24fe401344b60c4f87866) --- 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 c549bfc3c2f3..fbd3c3144596 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -754,7 +754,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 @@ -792,7 +792,7 @@ #define __ISO_C_VISIBLE 2011 #define __EXT1_VISIBLE 1 #endif -#endif +#endif /* _POSIX_C_SOURCE */ /* User override __EXT1_VISIBLE */ #if defined(__STDC_WANT_LIB_EXT1__)