From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16150 invoked from network); 20 Apr 2022 14:38:08 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 20 Apr 2022 14:38:08 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob0.topicbox.com (Postfix) with ESMTP id E51071ACA5 for ; Wed, 20 Apr 2022 10:38:06 -0400 (EDT) (envelope-from bounce.mMabed3218d4cc85a6f48f03f7.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id E07904AF6DA4; Wed, 20 Apr 2022 10:38:06 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:subject:in-reply-to:message-id :references:mime-version:content-type:list-help:list-id :list-post:list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1650465486; bh=kGXTQqijJHYVr7jo MmWlg/krpdRA1Tb9o8C7lZArozk=; b=GH0QGSyxeZrYdiGGxtipjSPEe+4pAMxU hCo6cYHvYs3JFLYPcvt/0WreCu4OjpAM2NKOyvMMi7ZGOvh72/b4lQQBfhOijTKX k54N0NKcs7EsbIrjXM65e4fm/WNpOPI1BYOsZTKUzByrKcPWqTbeLJK5NSZ6RNY5 U1mHe+MXFP0= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1650465486; b=aAckYH/+E6tZfmv+Tdv3LjQC7A9o021R5pvWM31x6ufXocL6x5 bf9OC9dt2q9TFCaedxE5LEPysRy+50HF2jASdokDm/Qobb8QfpQQk5ulY/TRSpWx 21wbfQbpG+mbIfZUQSqnZNj/eMWU/cdnCdmsNb3M30XuUTt4YSmUagci8= Authentication-Results: topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; iprev=pass smtp.remote-ip=205.166.94.24 (mx.sdf.org); spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx.sdf.org policy.ptr=mx.sdf.org; x-return-mx=pass header.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-return-mx=pass smtp.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=date:from :to:subject:in-reply-to:message-id:references:mime-version :content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; bh=XGLZJbUqW+ks5jZnhNHBh4HMVBGx4cigLNy1If0XucE=; b=Hae3q0tzatIq 113QPvuls9lcRq5SaXUK3Lp3jzIucHY+VFFLNk/73qDpyuKfgGUZmj8ohz01qe47 U/OgNe+EeqPJ2oUHiJaGZKz/WX7NViBblmJDoPDsg7ArXv9zfDz4USJ3B5r/ah8O CT7m6u6bgo29veYxjbQr7QVyITxC7bo= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 7DF1D139F6DF for <9fans@9fans.net>; Wed, 20 Apr 2022 10:37:51 -0400 (EDT) (envelope-from adr@SDF.ORG) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id 83E1290CE48; Wed, 20 Apr 2022 10:37:51 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1650465471; b=qz4Ex5swG54WGT1sbmPdjyTmNpxX0J6rGOWVZIKHwlYevAHBNt Y97k68clEIaX4Bw1Uhq8RQ73eHeslXjSi6C5I8tRNt6mAgOjp65DhMawW91O9/zZ STd2dbVhAuTp10u8ZB9NXLnzGCN84suhZ7xQV/OpRx/H4piO19CDR1xTEz/OhRVj aNBX7HI8OFGEskFV3khgIzqLEcYTblfVqfq0d7qwmmPztNiwIrqMWiJwv2oqQtPI R8FmENQyW5iLZ41ySEEcGx0s6OnBWiSY3FMKacKeeEq0Rb/Aa0IH2rFvo0DfL3Td AGX0gElVBTL9N6dJs3sGBR67nkLAmk/wEN5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:subject:in-reply-to:message-id :references:mime-version:content-type; s=arcseal; t=1650465471; bh=miPg2TTnaejdBcZ4wMyLZoj5aQyG2apl/l9i7yMV+b0=; b=YL/FVn2RB04I hGG9qOATeEtv2rOUQtoZiYKtvBPP38MS31oO3mQ7Wu1mg5JoxDGjikabQvwuHE3L N1ejicSHbi8Bl5xTjXl6cQ2G+DXVcHu2iR0Lryt+afqagIYeZojNG0I9dQEzqYN+ 1y/Vpp829zAk1C/2yU/5RNwbIW0YGS+nZAF0E82ROmgnAQc1GJcWajDT26ziyY0H 3azBkvlrmKDywWNacIW2syJDz531WH6F/8U05ZIH051blcxkvQMZ36ojUYUznZvR lexjfynnbQaDrZ7rxT+CexiMZwF/5WmpoUxC/kP9UebeIpEYUHGYWFEc9Ws/xyJn xqRlQuKl9g== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; iprev=pass smtp.remote-ip=205.166.94.24 (mx.sdf.org); spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx.sdf.org policy.ptr=mx.sdf.org; x-return-mx=pass header.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-return-mx=pass smtp.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvvddrvddtvddgfedtucdltddurdegudehrddttd dmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgf nhhsuhgsshgtrhhisggvpdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttd enucenucfjughrpeffhffvufgjkfhfgggtsehttdertddttddvnecuhfhrohhmpegrughr uceorggurhesufffhfdrqfftifeqnecuggftrfgrthhtvghrnhepkeehtdevffehvefhtd eghfehgfevleevudejteejtdehuddvfedvkeegtdffhfffnecukfhppedvtdehrdduieei rdelgedrvdegpddvtdehrdduieeirdelgedrudeinecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehinhgvthepvddthedrudeiiedrleegrddvgedphhgvlhhopehmgidr shgufhdrohhrghdpmhgrihhlfhhrohhmpeeorggurhesufffhfdrqfftifeq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (sdf.org: 205.166.94.24 is authorized to use 'adr@SDF.ORG' in 'mfrom' identity (mechanism 'ip4:205.166.94.0/24' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="adr@SDF.ORG"; helo=mx.sdf.org; client-ip=205.166.94.24 Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Wed, 20 Apr 2022 10:37:50 -0400 (EDT) (envelope-from adr@SDF.ORG) Received: from sdf.org (IDENT:adr@sdf.org [205.166.94.16]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 23KEbmSu005487 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for <9fans@9fans.net>; Wed, 20 Apr 2022 14:37:48 GMT Received: from localhost (adr@localhost) by sdf.org (8.15.2/8.12.8/Submit) with ESMTP id 23KEblhn005166 for <9fans@9fans.net>; Wed, 20 Apr 2022 14:37:48 GMT Date: Wed, 20 Apr 2022 14:37:47 +0000 (UTC) From: adr To: 9fans <9fans@9fans.net> Subject: Re: [9fans] Conversion of constants in C compiler In-Reply-To: Message-ID: References: <16a447c9-e11-c379-598-7430d2ed39d4@SDF.ORG> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 78170140-c0b7-11ec-97cb-f5df04bdb589 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UMjI3NTRmMTBiMjQxOTkxYy1NYWJlZDMyMThkNGNjODVhNmY0OGYw?= =?UTF-8?B?M2Y3Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: quoted-printable List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Mabed3218d4cc85a6f48f03f7:1:ToACOfnO9sLNl6nAa992Sn2-Mxw4UNsfPyKg8YnCIH4 On Wed, 20 Apr 2022, Charles Forsyth wrote: > The short answer is whatever the historical reasons for the current inter= pretation(s), it > should follow C99 rules to avoid confusion. This should do the trick. I hope to not have to send another patch in half = an hour... Charles, you are part of the p9f board, if you serve the 9legacy sources there it would be really easy to send you a patch. In my opinion it makes more sense to let the editions be archived as isos and substitute the sources 9p service with a 9legacy one. Just a suggestion, adr. /sys/src/cmd/cc/lex.c: [...] vv =3D yylval.vval; if(c1 & Numvlong || convvtox(vv, TUVLONG) > convvtox(vv, TULONG) || (c1 & (Numdec|Numuns)) =3D=3D Numdec && convvtox(vv, TLONG) < 0) { if((c1 & Numuns) || convvtox(vv, TVLONG) < 0) { c =3D LUVLCONST; t =3D TUVLONG; goto nret; } c =3D LVLCONST; t =3D TVLONG; goto nret; } if(c1 & Numlong || convvtox(vv, TULONG) > convvtox(vv, TUINT) || (c1 & (Numdec|Numuns)) =3D=3D Numdec && convvtox(vv, TINT) < 0) { if((c1 & Numuns) || convvtox(vv, TLONG) < 0) { c =3D LULCONST; t =3D TULONG; goto nret; } c =3D LLCONST; t =3D TLONG; goto nret; } if((c1 & Numuns) || convvtox(vv, TINT) < 0) { c =3D LUCONST; t =3D TUINT; goto nret; } c =3D LCONST; t =3D TINT; goto nret; nret: yylval.vval =3D convvtox(vv, t); if(yylval.vval !=3D vv){ nearln =3D lineno; warn(Z, "truncated constant: %T %s", types[t], symb); } return c; [...] ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T22754f10b241991c-Mabed3= 218d4cc85a6f48f03f7 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription