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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 AAB36213B9 for ; Thu, 28 Mar 2024 10:17:08 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1711617428; b=DSrsZlZ3rSWQ5QMS1FYzzKSyoiMSDKW7x967HhPxNWnuzsFzEbWHI41GSqKb/vWFnr6qU/K8Dj 4EnuTNfMXCeba+XfRzhiC0Jql5/b9TRT56z9AACFPaCH/YIYjuHp7QMpCE2PjnIAvTrKVVAnVk R4fOkLpE9ebaOU/oUBP+VnY7Pm1tqqxqxHN0R0Nz0ur6uHxLxNL2xpRTNUXcDo+/ZgJxwCq8HH 9rBaz2F05yH9s28fwsWnja8LdoF88rTRSFf2UjiiX4P3D857e/0hBhSD7N0BZk5wQVba5hNL0R eXAsbDYSXi1fAgR8JLIK6FDscG407hMugutTwn60hjDSlg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta-snd-w03.biglobe.ne.jp) smtp.remote-ip=27.86.113.19; dmarc=none header.from=kba.biglobe.ne.jp; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1711617428; bh=fndMaMVyLfvdRCZy0WgcssR9NqzAN5Xnn/WxJCuFVeA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Message-ID:In-Reply-To:To:References:Date:Subject: MIME-Version:Content-Transfer-Encoding:Content-Type:From:DKIM-Signature; b=ULEpc2R1M1Vq2SNwNqFo3ZrlepcwXqlWNpCV1+JW0ba3DtsKa7e3uFCdqBs1Mb5hB7/2FCcrxn jGBRimw8tpyaztoDuVHBxBlOnQ1ucw1UlzJ8RX2myFyTiHW3HAtqX9QjX3FAGzjSUUyfwFGDPn 4GTQ0E1AV9mFHz/2ue5AiRy1LVCKOZ96SbEzFtBQTPhIqeyrSkCQArXBtYsAwdHAXouV3DmY2F yt3PpmcMSssv7FnlXUdhLaeybRuvR/gJLrnIlBDH6Zh2p6HQ1tWHi0Vfdslt7uw/tVuo9LCzuR lG+c4E3Y2dviBnfAVo+DNGp9j14Tsgnqhaz73hTwQswFSg==; 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:In-Reply-To:To:References: Date:Subject:Mime-Version:Content-Transfer-Encoding:Content-Type:From: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=TDOd7aHT2BWYlWx+aw3ThrrieT5FSpukEyUT/VL2pmA=; b=kkU5JY+n7ZrNHeoy1llIz2najX pzgREx9nnjqem0c8Juwut8Fnb4xRtHFimmyjSpbl4hCDtBRcV/1ctxZYmt2jj0E/35tgzru3fuQcg Bkob7sn9ySBDKh6dYeJohI84zpgjxy7SYSlM6KWxQ7Hlokhs3j/17OIbwSJrkaA7ru8pAamT2pnfC B+7X7KF3VJajPGcU0L6ZtWh7ropC4iLxT+zZ1JNPrPRyyGqzv+yYeOzAMaIQYkKaleWaUXPdt01md Q2XCz7jDpu1IwNsmhDSEZ/mRO6afONBVM/+2Q2h9TUjqRm7dUyCmLTG8StHCFUnbjpKWVmIwZxMcW HzAhaHWA==; Received: by zero.zsh.org with local id 1rplsg-000Cac-Gg; Thu, 28 Mar 2024 09:17:06 +0000 Authentication-Results: zsh.org; iprev=pass (mta-snd-w03.biglobe.ne.jp) smtp.remote-ip=27.86.113.19; dmarc=none header.from=kba.biglobe.ne.jp; arc=none Received: from mta-snd-w03.biglobe.ne.jp ([27.86.113.19]:3489) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rplsN-000CId-UI; Thu, 28 Mar 2024 09:16:50 +0000 Received: from mail.biglobe.ne.jp by mta-snd-w03.biglobe.ne.jp with ESMTP id <20240328091642218.XUQK.60167.mail.biglobe.ne.jp@biglobe.ne.jp> for ; Thu, 28 Mar 2024 18:16:42 +0900 From: Jun T Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: ANSI C standard of zsh Date: Thu, 28 Mar 2024 18:16:31 +0900 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> To: zsh-workers@zsh.org In-Reply-To: <942b86c4-6dec-4b6c-aeb3-5ca1eafbaa03@zentaur.org> Message-Id: <63074C4C-7ADB-4089-AAE5-7E5533595C41@kba.biglobe.ne.jp> X-Mailer: Apple Mail (2.3731.700.6) X-Biglobe-Sender: takimoto-j@kba.biglobe.ne.jp X-Seq: 52841 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: > 2024/03/27 8:16=E3=80=81Clinton Bunch = =E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB: >=20 > If we're going to say Zsh expects C99 we should probably update > autoconf to check for C99 (and set any options needed) >=20 > 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? 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. 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