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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE 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 81BA02C7AD for ; Tue, 12 Mar 2024 22:44:54 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1710279894; b=NaQTSk2qxTrPJeVnt64V+rt68VqdtkAiY2yzIypL8dfXZx+ICvGY9OujBNvEVMnAKUGlOEEpK4 M0Erw06jBOGBgYlT7ZGyj2p+ZlGPw25f+2dN37ZiHEuASVEfXieRO4EnDKflMnuuAiOF7S7SG/ 0uuRa1BmbEsWiy2GUaDmE/fun8LwZVGQYNbC4KtZ+93IhvGYraDY0vBZGCF1z83jM851OZmdfH hbmwB+e13uN9RWDLT20TFz3wRhjL88PuX0BsjHjYhfdztZbgag359QMZhIT8BFseHXWDBNWQUn q8Pznpf83XVyXV0ju8UKMSFjKuafWpMkDCsTfvIL+dUvag==; 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=1710279894; bh=KfvSVABGygbeTmlmM1zbVe+4qGdgbf1rYQAI4HN2WUI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Subject:From:To:MIME-Version:Date:Message-ID:Content-Type: DKIM-Signature:DKIM-Signature; b=RKZ6hjzN6JNBAeNyILLu32yfBVMwtPf7Hb7yR4NPyGj2hdon+w/HybbK5HMCVwP1wF0fmhHZUC 5ZTAm5k0VQq4W9tTwgQdNU8iVcySmsA6sPSVLVuttIAktpNjHMVliJVLkflrsJVv8FktM6YXCH f1zUJGjfXxAG2KI7dn5kKJcwzT5Y/CFKCTr5DteI8RMnabj0Zl8uarULHqjL1HcxJDqXqL16XC TvHDUl8crKeZEuB/q32YVzJF0N3Zb3bLSLkogwwkQOQuXRItYOx8TR0xGUsUsHNFALhK0cqmHp UWs3pQps3/Kh2LkbNKCKAvOXK1SUap1fIepxGCldpoOyWg==; 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:Subject:From:To:MIME-Version:Date: Message-ID:Content-Type:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=eFSJAjKEwZZPAY0Uxgnd2gpyGkMGjT19wen/tjFIiV8=; b=E5scVZ9ZaMvlwUMIhBNCzqpqSk rfHX11J/b/h9CugNMgT3VAAzKbe0L7stJYYmpUsx4CYWOKx2zhDl3jhppEB1Seob9YLoco8BG9mt8 LW0k6AaBTQON7OgqgKivEggmLTvvsAoo1jeiMhdEvnLzxsNKNkEbCY+qdTpaMvnFMTHc0e5i1kbxs 2eP3U8M27m3qzlPz0QnizUhBvYslvgsBU1xTrEYHIOyL+eIBPIr/TwT8YC8ULyrZIvA5g9dOaVeuC 3qBH1kS0VLuzfPtDQ04+dfccNOeCfjeeQ+oTnCj/fkZeWerihKtEBrVYBIpewAHKABlXz0bxkQZ+5 n2hpV4oQ==; Received: by zero.zsh.org with local id 1rk9vY-000CyA-WC; Tue, 12 Mar 2024 21:44:53 +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]:40190) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rk9us-000CcX-Co; Tue, 12 Mar 2024 21:44:13 +0000 Received: from iris.zentaur.org (localhost [127.0.0.1]) by iris.zentaur.org (Postfix) with ESMTP id 4TvRx45px5z3wZv for ; Tue, 12 Mar 2024 21:44:08 +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= subject:from:to:content-language:user-agent:mime-version:date :message-id:content-type; s=dkim20200120; t=1710279847; x= 1710283448; bh=KfvSVABGygbeTmlmM1zbVe+4qGdgbf1rYQAI4HN2WUI=; b=G bfpSOkhT6O0HXGANUQvR1yGPMANclnCkfNyWgTGJEDujhZdAESMHLfhmWh3dU5T+ w698FZlWbm+Gr89MNJvtpC1+sHxcZLw9Ay8FklmLLdnj0YEc+FD99892vNgBKXWD H7SMsGkHeRmNs8MWk81nUS+gnLPKKUouL4MVqhBNacrr34GVaaNWS6MizcsOpyHe rQs/fwAxHtdODD3YAwDV+FyAZyEm835zqJTjjaF8K/jJv8jBEm/R4SixmrLjQgIw kkfKqoKJR8nCxVMTgpwKHZxvGh0BaUqc4cegeKa3Eraq0fpOvJQYnCx9PBX1+eTm ANZCA1EPALMGfqravdzcA== 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 MJnxVWC9H4-g for ; Tue, 12 Mar 2024 21:44:07 +0000 (UTC) Received: from [10.251.11.121] (024-173-095-034.biz.spectrum.com [24.173.95.34]) by iris.zentaur.org (Postfix) with ESMTPSA id 4TvRx35r9Mz3wZt for ; Tue, 12 Mar 2024 21:44:07 +0000 (UTC) Content-Type: multipart/alternative; boundary="------------esotOt00UQ6l0Flt9L6GKmxA" Message-ID: <4da53188-feb2-42d2-9294-899715991be1@zentaur.org> Date: Tue, 12 Mar 2024 16:44:07 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: zsh-workers@zsh.org From: Clinton Bunch Subject: ANSI C standard of zsh X-Seq: 52740 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: This is a multi-part message in MIME format. --------------esotOt00UQ6l0Flt9L6GKmxA Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable I was looking at the development guide and saw this: The primary language is ANSI C as defined by the 1989 standard, but the code should always be compatible with late K&R era compilers ("The C Programming Language" 1st edition, plus "void" and "enum"). There are many hacks to avoid the need to actually restrict the code to K&R C -- check out the configure tests -- but always bear the compatibility requirements in mind. In particular, preprocessing directives must have the "#" unindented, and string pasting is not available. 5.9 does not compile with gcc's c89 on EL 8 or 9 (Rocky specifically). I intend to test FreeBSD and Solaris as well, but haven't yet. I will point out the C99 standard is now a quarter century old. I=20 propose that we update the development guide to remove the bit about the=20 1989=C2=A0standard (much less K&R compatibility) since it is no longer tr= ue,=20 and I personally question if it even makes sense as a goal 30+ years in=20 to development. --------------esotOt00UQ6l0Flt9L6GKmxA Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I was looking at the development guide and saw this:

The primary language is ANSI C as defined by the 1989 standard, =
but the
  code should always be compatible with late K&R era compilers ("The =
C
  Programming Language" 1st edition, plus "void" and "enum").  There are
  many hacks to avoid the need to actually restrict the code to K&R C=
 --
  check out the configure tests -- but always bear the compatibility
  requirements in mind.  In particular, preprocessing directives must
  have the "#" unindented, and string pasting is not available.

5.9 does not compile with gcc's c89 on EL 8 or 9 (Rocky specific=
ally).
I intend to test FreeBSD and Solaris as well, but haven't yet.

I will point out the C99 standard is now a quarter century old. I propose that we update the development guide to remove the bit about the 1989=C2=A0standard (much less K&R compatibility) since it is = no longer true, and I personally question if it even makes sense as a goal 30+ years in to development.

--------------esotOt00UQ6l0Flt9L6GKmxA--