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=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16233 invoked from network); 21 Jan 2021 18:06:42 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 21 Jan 2021 18:06:42 -0000 Received: from mail-io1-f47.google.com ([209.85.166.47]) by 1ess; Thu Jan 21 12:30:48 -0500 2021 Received: by mail-io1-f47.google.com with SMTP id d13so5594122ioy.4 for <9front@9front.org>; Thu, 21 Jan 2021 09:30:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=8eDkHEwOqbKfuGhH5Ni6A6TeXVklSj761Wp1VQcLJAM=; b=TOg5YnKvRAc3x5TtKPLj8ZVhYZfJ23nDAql5RdFY3HwiT43FcChMXGVlQZHo+yORyX tah2WdaNj+wG3OYdSx6RHmOCsIdRQ8VtNsWAdXhj/lsWFlDIZxq0a52PeJF1oV/JmPNh GKObiTn5J0wIbsLG7EnhyOS6Q3RsFlFzOM4wgeFrJkZdAt7tk8pgig7e/xHdFSfKjuc/ gBPHD3Oj1JYuXM9i4SvRejdn4GJL4fK9sjoAX9+A6tsAW+zHInUIbBQSn3skvf2RWMzj VvL6C1657aRhpDKodYdy0XXkK7nlmgCXdG6+81RO09DaxTO3GErFK6beAKxg6/HIhmtU QFJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=8eDkHEwOqbKfuGhH5Ni6A6TeXVklSj761Wp1VQcLJAM=; b=J8NzXyX1ISIiNLpLJnIk7kFDDS96BvfIcrOQ7JGHSCH5ZRp4kSuIlYBrmP52qeMT9d orgZt5yH5O3ysKiwlm6AAcUJ2/pi7mxA1vmm0EBZ2bcvrFlo4PL31mUdFofL/uMIsQef oPr44M8symNKYMPcvaUW1sSYjaxeWHL0c4Go7Tr1o9jciSO7TxUCYGSgS19S2QxVLSrU r/m5gfPmtMmDtqfQzVPrcTq9YsK0ZqQQkZbVRSUuUMkIVljKahhpx3lDDGPGU2Eh+nSq NwErtlZBszKlgv8YQfFb4MSR9Ti72g0R9vOE4lJs3CRvsvY6Zx5dGP1bfZtxOGxoytGx qpaA== X-Gm-Message-State: AOAM533fO41kdUqKksMz0Fl7faRMPwQnaAOH2WUs0o0LBJk1wKjokOPL 2iAjGcQVKsrwU4pOFWFlgAdmaCULFrQ= X-Google-Smtp-Source: ABdhPJzzQ7VmRZ1nkBMl+Rk+YdFVuv7al+iL35EcNuWIOFUDD2xf9WRNvJn9HzjgAHf2rU3ff1UrJg== X-Received: by 2002:a05:6e02:1c85:: with SMTP id w5mr660704ill.253.1611250239627; Thu, 21 Jan 2021 09:30:39 -0800 (PST) Return-Path: Received: from [10.0.1.7] (c-67-184-39-205.hsd1.il.comcast.net. [67.184.39.205]) by smtp.gmail.com with ESMTPSA id v18sm3541350ila.29.2021.01.21.09.30.38 for <9front@9front.org> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jan 2021 09:30:39 -0800 (PST) From: Xiao-Yong Jin Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Date: Thu, 21 Jan 2021 11:30:38 -0600 References: <104278AC-1809-4746-B15E-376E33C8E212@gmail.com> To: 9front@9front.org In-Reply-To: Message-Id: <74F866D4-D477-4848-8D5C-27BBFB530315@gmail.com> X-Mailer: Apple Mail (2.3654.40.0.2.32) List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: scale-out metadata enhancement scripting controller Subject: Re: [9front] pcc macro issue Reply-To: 9front@9front.org Precedence: bulk h= ttps://github.com/gambit/gambit/blob/ca8b488447f78d4165f3f3064875c57424b42= a3e/include/gambit.h.in#L6338-L6380 > On Jan 21, 2021, at 4:48 AM, Jonas Amoson = wrote: >=20 > This is a distilled example. Do you have a real case where > you encountered a problem? I am no expert in C macros, > but it could be interesting to try to see. >=20 > On Thu, 21 Jan 2021 at 08:25, Xiao-Yong Jin = wrote: >>=20 >> The following is wrong. >>=20 >> cpu% cat test.c >> #define N >> #define F(x) >> #define M F(N) >> M >> cpu% pcc -E test.c >> cpp: test.c:4 Disagreement in number of macro arguments >> #line 1 "/tmp/test.c" >>=20 >>=20 >>=20 >> F() >> pcc: cpp: cpp 25337: errors >>=20