From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 3E5AE225F4 for ; Tue, 26 Mar 2024 01:33:21 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1711413201; b=dmO6rsfkPY27pIkD2PJ6excsKgY61wbAITq+7a1asQmSipo8Ih6/msd3R14JT1h/L8abei6Suw W79sPqlkAsN1KyJJzyFEGit5QnxevobAOsEUMEehSkz9+I37qDux/ruOljby/78vzBEKe5EU2x zgqpkmVqsjFn8Kzq70PN/WznmrULEZYb34UHeUgYYsnTIvthe62JUqysABD26CJpu7Y3BI7GRo hbV0KdRBnIMbwIdkM06PKnP0m2v/sd0ZkGbbBO+9s4Vy6h85hdXM9FuSGZ4Wem1VNTXhwbPt47 nWmKgcoBf9vQn8GU7V7bJ9CxLLCs/B4h4FnI/ni4zueGhw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (iris.zentaur.org) smtp.remote-ip=198.58.127.206; dkim=pass header.d=zentaur.org header.s=dkim20200120 header.a=rsa-sha256; dmarc=pass header.from=zentaur.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1711413201; bh=FpxsnixlsIZqAqNSGS7PKgLDpZgntW2FyMSM6eZHq0A=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature: DKIM-Signature; b=mo6tSvTkZw3Om6O9nTws/SxwE2VHVSilQCKTstvkQhSrsJLc9IQI0QqsBt59f8lb7WqcG3JJK3 j4yqB/fskLILQS/bQCvTC4fsfoJ8pgyq2U23poBHmKY22oPFtDhICfxg1E1shIVgKcQURnNEuS /G43pMjAz99ZBPcOs3Ppt1c/sNtRIf4wPjsWcKJbCOprEKtt9LZ0NNHSgJAazUGzaZW592FS33 wVVfVbM5VOtKfbnkcNg5RNys6Rht2Yie8hN/TzjC6YsdYQ3rAHqieS0MW0El/DZgFRlkq8iReA m8Xc6BDMnnsTirYAD5sQYwInwcetBv/sJoauLbs1Ey6Caw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=FpxsnixlsIZqAqNSGS7PKgLDpZgntW2FyMSM6eZHq0A=; b=djOb2HtUvN7y9jAs8Z6jcCpyPm 5nbuKz258UsJ6vkAjPxL9pzX6t95t3VTUg5yfvqfrOtbcbLyyqz6dP/Qqnx9YKm8gkiseNekUWgFx gflVwK/4cDEBOp2nVVapBoWj2JzrhWtmgFx/3CvMMg8MxeCY2IeFj7SefJYEMg7WxRl/6T1FSt+In tkiSZsFLGheSDmo/hhAFkZOnmRJKNRageFWCs7SysBhdgxFcE0yBmtJGTbn/w27v3bcHj3KvJKfo1 dNHzXMM6sO7cBazrD5FB2ifc/MOMhYb/941XLCUN73UhcCHxbZDaQ6EaTam0XgZ1S6XEvY2mN/ZbK hbIchoeA==; Received: by zero.zsh.org with local id 1roukj-000CZC-LW; Tue, 26 Mar 2024 00:33:21 +0000 Authentication-Results: zsh.org; iprev=pass (iris.zentaur.org) smtp.remote-ip=198.58.127.206; dkim=pass header.d=zentaur.org header.s=dkim20200120 header.a=rsa-sha256; dmarc=pass header.from=zentaur.org; arc=none Received: from iris.zentaur.org ([198.58.127.206]:51694) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rouk6-000CFC-Fo; Tue, 26 Mar 2024 00:32:45 +0000 Received: from iris.zentaur.org (localhost [127.0.0.1]) by iris.zentaur.org (Postfix) with ESMTP id 4V3W3Y0LFfz3wZv for ; Tue, 26 Mar 2024 00:32:41 +0000 (UTC) Authentication-Results: iris.zentaur.org (amavis); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=zentaur.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zentaur.org; h= content-transfer-encoding:content-type:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version :date:message-id; s=dkim20200120; t=1711413160; x=1711416761; bh=FpxsnixlsIZqAqNSGS7PKgLDpZgntW2FyMSM6eZHq0A=; b=EmsJ7VRDAiob 2OEr6CxfIwd4u0m6bs/DtX09ZcDejjcWW9Q3hxP3XhFUgCF0Ztxd8K7SEh2BDK6r QVFGZHnIzKyqSORCq7EmVVXULUaK4k2uPvdBaft3Nog4ekJs9MziKlw4CGsMTQ9N gD62/NFMrFXT2sQdG53ZVqXwQyBEpGRqVyO4AF8LrfI1vQexQJFRwflUpJd/ctow d5sRoL0NNCagjzl37dsZ4gbxKC6RIrYk7zEQEMUUgtOr6Dfhb9bdWqRmmCo850Ss s00hAzebp7JRuNV5J2Gw1b/bBZE1maI7A/2zJWGOUB4gyXJBZ08dQKVO0j9+7/Ep eypuiors+Q== X-Virus-Scanned: amavis at iris.zentaur.org Received: from iris.zentaur.org ([127.0.0.1]) by iris.zentaur.org (iris.zentaur.org [127.0.0.1]) (amavis, port 10026) with ESMTP id ndg2fMlztZgO for ; Tue, 26 Mar 2024 00:32:40 +0000 (UTC) Received: from [IPV6:2605:a601:a57c:ee00::4000] (unknown [IPv6:2605:a601:a57c:ee00::4000]) by iris.zentaur.org (Postfix) with ESMTPSA id 4V3W3X5GQyz3wZt for ; Tue, 26 Mar 2024 00:32:40 +0000 (UTC) Message-ID: <727e3cdf-f00c-43cc-9965-5451975731fd@zentaur.org> Date: Mon, 25 Mar 2024 19:32:40 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: ANSI C standard of zsh Content-Language: en-US To: zsh-workers@zsh.org References: <4da53188-feb2-42d2-9294-899715991be1@zentaur.org> <64761-1710348596.938223@kqf9.hufK.7DeO> <50d25960-4789-42af-8105-51a364325903@zentaur.org> <33556-1711410422.646791@rS7o.x_eU.PA_L> From: Clinton Bunch In-Reply-To: <33556-1711410422.646791@rS7o.x_eU.PA_L> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Seq: 52819 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On 3/25/2024 18:47, Oliver Kiddle wrote: > Clinton Bunch wrote: >> Here is my first cut at replacement wording for the first two paragrap= hs >> of the C coding style section: > This looks good to me. > >> If you wish to use features not present in the ANSI C 99 standard, the= re >> are preprocessor macros to provide safe access to some of these.=C2=A0= Always >> use the macros if you want to use these facilities. > I was trying to think how this reads to someone completely unfamiliar > with the zsh code and what macros we have that meet this description. > Autoconf detects mostly system library/OS features and the macros > related to that are either defined to 1 (or left undefined). So the > macros allow you to make the use of such features conditional. "provide > safe access" sounds more like a wrapper =E2=80=93 I couldn't think of a= n > example but that's not to say there aren't any. The preprocessor macros > are for anything that isn't portable rather than a particular language > standard. > > Oliver I think what was intended was macros like _POSIX_C_SOURCE and=20 _XOPEN_SOURCE and __STDC__.=C2=A0 The glibc man pages are littered with t= hem.