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.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,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 AE2F820F35 for ; Tue, 26 Mar 2024 00:47:42 +0100 (CET) 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:Message-ID:Date: Content-Transfer-Encoding:Content-ID:Content-Type:MIME-Version:Subject:To: References:From:In-reply-to:cc:Reply-To:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Ii0axiHIE9fXZ7tjGsSCZWlEmyUMSDQTDy763+hJUtU=; b=cY3/OBfBzhcW04mWc1kpNkZjrq mJppzRrB1y2WzpbKj7iwYS83pL2tG+bM5eVpnTD879m89r/7R8CFyuHePeuhPR1kaZ6S5vt41bE/r LXRFq/fJexPxRNYjYxIwxwOhzfoByrBtT/kROSLd2hcm1rzpkcAPul5KNZiMJYRE0omkwz/yOTfyI sBJtlO72Oz6bOfuz/nYivuhqMAoeOjAme238EKy6KoRbofOuxHZEJQAjNJOBhs0ufvSyop7uxnpOj ATcgoOS7T8Bqih48qzIHm1hPp3e3UoVRo0oIRtBrmj/z075KipWaP2VeiOcTvMtLoR4hVYg9riwAy yCXLmwuw==; Received: by zero.zsh.org with local id 1rou2W-000A9z-3a; Mon, 25 Mar 2024 23:47:40 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rou1v-0009pt-8B; Mon, 25 Mar 2024 23:47:03 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.97.1) (envelope-from ) id 1rou1u-000000008jF-2jAa; Tue, 26 Mar 2024 00:47:02 +0100 cc: zsh-workers@zsh.org In-reply-to: <50d25960-4789-42af-8105-51a364325903@zentaur.org> From: Oliver Kiddle References: <4da53188-feb2-42d2-9294-899715991be1@zentaur.org> <64761-1710348596.938223@kqf9.hufK.7DeO> <50d25960-4789-42af-8105-51a364325903@zentaur.org> To: Clinton Bunch Subject: Re: ANSI C standard of zsh MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <33555.1711410422.1@hydra> Content-Transfer-Encoding: 8bit Date: Tue, 26 Mar 2024 00:47:02 +0100 Message-ID: <33556-1711410422.646791@rS7o.x_eU.PA_L> X-Seq: 52817 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: Clinton Bunch wrote: > Here is my first cut at replacement wording for the first two paragraphs > 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, there > are preprocessor macros to provide safe access to some of these.  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 – I couldn't think of an 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