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 C1AE421319 for ; Thu, 28 Mar 2024 13:30:25 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1711629025; b=nXZjNB4MCzqqrzQZxwoow4iC0o2kPrTePKG9PTG/0uPyYcv3Ovnga4TjwePKWcVY6bfzdQvNKY gohiHI3swVfMkgnjjHc6OzUTNPxQzlQWZWkmAn6TaU6YGv0fhtdmqg2o39mqs6fzZIAjj0cllr VtkqjNkC4146+sTrvsRcJDrakXct4Vck/Lb/xaVVdK1z4CwibBwIYy7oEBZC2RIWZfCmW27r9f NaobmD45v9ZifFZZvssbBWORtcRgoidxMhSC5aJiLbdl5qNCxKuSQoNEMHQekpq/fbBszndX1U rV23SiMqMbnmZfZ7MyfQhoxkX0kyHb+swqRAe9NLkxSPHw==; 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=1711629025; bh=DmdPyHQoIi+Vki2OX2hH74F5kVi9hXbtEM0R7+l6AcA=; 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=NvtwANY4KObokTp04F5J2f8Yf2/gKC8ugOAUoCddRnE4VzLCQbVnzzXsZxpnJ0z7ZBdwZQwFT8 727gGevEWDbZyaONZPuPSKWUexulvawiSaYsYrWc21Z+UG8mxIg31aiMiiLyFl7+on54o74J3s 74ZRA7UeFLzIiaCI54+cSILmUGngtgnLo6QZ/cbArkMw+wW5Tkbz1XOCd5ccqqVSmQ19lNbTEw YQiLzfqRpVze/Ghg9PpXK6iMMQXgW4cmVpgpgOwH3WDevKZczIdJYYsgOfAeAEpY3RKDhc2XBB a1Xy+GP/AVOkc3YSNqWe6BYPhhRA2SBi65pqPFlIs/jO4A==; 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=XreLMW0lafQ2QM8le0qwG02lvZbYpGjgUlThofPS+Wk=; b=o6oYglymlUGVqodsqv1oSGQ5Ju 7Dw1DXebmdQQEXRRVCTvn7iJfyHpAkv8XFptNBmAneW8nneCJBSbv23tCvOxmMd0FJ5E8fOZWYuLC nWwmOSt2kwfrQwhz0h+Tkg+nF6p8biDvD5q1t7qRCoDenuAAfJcSLVYI2LC99VTyEUphXa6ZY+243 r7xB9BZ4kmuznDS2/yHWuzZ7j0BvmSbHcO88i9+e9NbPaKk8mXOw0ikK29NCsBHS1TqeIbWDmTexX 2XfYoKpdmSGpQ5wRORRsKHgymPBQHUOHFASmDJBx0kXbZR+viDll9wy/HUV1IikqB/qcqMm69BXH0 lhna5eQA==; Received: by zero.zsh.org with local id 1rpotk-000HrY-Uc; Thu, 28 Mar 2024 12:30:24 +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]:58570) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rpot7-000HXA-Sd; Thu, 28 Mar 2024 12:29:49 +0000 Received: from iris.zentaur.org (localhost [127.0.0.1]) by iris.zentaur.org (Postfix) with ESMTP id 4V52t03NpDz3wZv for ; Thu, 28 Mar 2024 12:29:44 +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=1711628983; x=1711632584; bh=DmdPyHQoIi+Vki2OX2hH74F5kVi9hXbtEM0R7+l6AcA=; b=yzTn5VqfENfm te7fJrksOULQBtyMNyUo7vpQLJWGPXp57V5u52vP5u2tkLJTLmWhbMobgM5NYui6 /dtepbLGxwGgaJFnMw+4CyWMgkEyMPhScm91oLpd7RZKJ4iNI8E0rQ5CIZBz1zWH G+K4fA7z/UbbU0Qz6UO8ZeDB2WMLL3QN25Q1O1DZmbhusvNjh6MbLGeUSaqybAII MY/0idqbojBCqETl6gp6i/Ytcm5jAhL9kLrFPWfdzqKEz/M70me/qqwXwDvtjbXc 7RDqL1/c7EEWiRZwzaD8OBS8IJsT2UTgfRcYRLA7/8aBWGAL7AuB7AvBeIDXiAwY KBqt+e5O1g== 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 O2LWx5z-4fzw for ; Thu, 28 Mar 2024 12:29:43 +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 4V52sz66qWz3wZt for ; Thu, 28 Mar 2024 12:29:43 +0000 (UTC) Message-ID: <9693ce55-9bb7-4fdf-ba62-467a729f5367@zentaur.org> Date: Thu, 28 Mar 2024 07:29:43 -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> <727e3cdf-f00c-43cc-9965-5451975731fd@zentaur.org> <942b86c4-6dec-4b6c-aeb3-5ca1eafbaa03@zentaur.org> <63074C4C-7ADB-4089-AAE5-7E5533595C41@kba.biglobe.ne.jp> From: Clinton Bunch In-Reply-To: <63074C4C-7ADB-4089-AAE5-7E5533595C41@kba.biglobe.ne.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Seq: 52842 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/28/2024 04:16, Jun T wrote: >> 2024/03/27 8:16=E3=80=81Clinton Bunch =E3=81=AE=E3= =83=A1=E3=83=BC=E3=83=AB: >> >> If we're going to say Zsh expects C99 we should probably update >> autoconf to check for C99 (and set any options needed) >> >> I've attached a patch for the trivial change needed. > in the attached patch: >> -AC_PROG_CC >> +AC_PROG_CC_C99 > We can use AC_PROG_CC_C99 with autoconf-2.69, but in 2.7x > it became obsolete and we need to use AC_PROG_CC, which > tries C11, C99 and C89 (in this order) to find the latest > edition the compiler supports. > > So we first need to decide which version of autoconf we > use. Maybe we will continue using 2.69 for the moment? EL 8 and 9 still ship 2.69, as does Solaris 11 FreeBSD 13.2-RELEASE-p10 has 2.71 The development guide currently says 2.50 or later. 2.71 is copyright 2021. 2.69 is 2012. I believe in updating versions when they become too limiting, but 3=20 years isn't what I'd consider limiting.=C2=A0 I don't think we should cha= nge=20 to assume 2.71 yet. Do we need to know that the compiler supports C11 unless we're using C11=20 features? > > > The following is info for someone who wants to know > what AC_PROG_CC_C99 will check. > In the comment to the AC_PROG_CC_C99 macro in c.m4 > (may be in /usr/share/autoconf/autoconf/ if you have 2.69 > installed, or lib/autoconf/ in the autoconf source tree): > > # It (AC_PROG_CC_C99) considers the compiler to be in ISO C99 > # mode if it handles > # _Bool, > # // comments, > # flexible array members, # aka incomplete array > # inline, > # long long int, > # mixed code and declarations, > # named initialization of structs, # aka designated initializer > # restrict, > # va_copy, # with and va_start etc. > # varargs macros, # macros with variable number of args > # variable declarations in for loops # for(int i=3D0; ...) > # variable length arrays > > Note that "variable length array" (optional in C11) is > required. The current development guide specifically mentions support for variable=20 length arrays. > > AC_PROG_CC_C99 does not check, for example (not comprehensive): > headers other than , i.e., , , > , , etc. > snprintf() (and any other new library functions) > universal character name: \uNNNN, \UNNNNNNNN > compound literal >