From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48750C433FE for ; Tue, 29 Nov 2022 16:55:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236435AbiK2Qzo (ORCPT ); Tue, 29 Nov 2022 11:55:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236436AbiK2QzJ (ORCPT ); Tue, 29 Nov 2022 11:55:09 -0500 Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2042362057 for ; Tue, 29 Nov 2022 08:50:13 -0800 (PST) X-IronPort-AV: E=Sophos;i="5.96,203,1665475200"; d="scan'208";a="88488013" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 29 Nov 2022 08:49:16 -0800 IronPort-SDR: DV3r/ZlGVcWB4LgVXjRLZ1NrOZCq4w67g34l+ldHNAgjSAujPYaxddAAaa3NBfcdXrIOPaIYg+ 53yUEz00AGmRANdNOPFkNB7Jt/BRGTkzFIuDsWBbF962VkocwksMhV9yGFNjZYvrXYmontevA0 zPoD6yZeOqHdG6hpL9Fh+4aEvbrw2miX3TqQuHMAtBFFsqieweCG0snUsTulXlY5/ubO2tny95 z96wNqk5bxBUbLn3IaKfuOFuxQwL1OmweYadDktUjExJmm+9eJq6vAwbUAjCuvQ3NkxP/nJx1g TPs= Date: Tue, 29 Nov 2022 16:49:11 +0000 From: Joseph Myers To: Michael Matz CC: Alex Colomar , Martin Uecker , Ingo Schwarze , JeanHeyd Meneide , , Subject: Re: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters In-Reply-To: Message-ID: References: <20220826210710.35237-1-alx.manpages@gmail.com> <4e3fee795769544738b3dc793aa95d6b34b72047.camel@tugraz.at> <69d694b3-756-792d-8880-87bab482ea34@codesourcery.com> <76c083af-c01f-a4b2-3df-c83075c6b0de@codesourcery.com> <75c352c-e8b5-90d0-5fae-7b211c647934@codesourcery.com> <68746776-87bf-80f9-8e3e-7392e8cef1bb@gmail.com> <77c3557f-4a62-3ede-4df4-4b2b78e265b1@codesourcery.com> <5ae032cd-7a5f-f72b-29ae-6ad7f418da8@codesourcery.com> <7931044a-b707-5a70-86c2-be298c35aa57@gmail.com> <792055f0-114d-d4bc-52f0-c242d1767c0b@gmail.com> <31e1cf34-b42f-24c5-2109-f8214c28af3e@gmail.com> <494309ce-c8ec-5219-f83e-b8dda5b9bcd1@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org On Tue, 29 Nov 2022, Michael Matz via Gcc wrote: > like. But I'm generally doubtful of this whole feature within C itself. > It serves a purpose in documentation, so in man-pages it seems fine enough > (but then still could use a different puncuator to not be confusable with > C syntax). In man-pages you don't need to invent syntax at all. You can write int f(char buf[n], int n); and in the context of a man page it will be clear to readers what is meant, though such a syntax would be problematic in actual C source files because of issues with circular dependencies between parameters and with n already being declared in an outer scope. -- Joseph S. Myers joseph@codesourcery.com