Linux Manual Pages development
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx+linux-man@kernel.org>
To: Martin Uecker <uecker@tugraz.at>
Cc: Christopher Bazley <chris.bazley.wg14@gmail.com>,
	 "Michael Kerrisk (man7.org)" <mtk@man7.org>,
	linux-man@vger.kernel.org,
	 Michael Kerrisk <mtk.manpages@gmail.com>,
	Sam James <sam@gentoo.org>, Carlos O'Donell <carlos@redhat.com>,
	 "Joseph S. Myers" <josmyers@redhat.com>,
	corbet@lwn.net
Subject: Re: [PATCH] man/: SYNOPSIS: Remove GNU forward-declarations of parameters for lengths of array parameters
Date: Sun, 25 Oct 2026 09:57:33 +0100	[thread overview]
Message-ID: <at3CrSg8Rpf5JDOY@debian> (raw)
In-Reply-To: <76bff7cc342961bf81acc4a2d60e8c3d01918433.camel@tugraz.at>

[-- Attachment #1: Type: text/plain, Size: 2163 bytes --]

Hi Martin,

> Date: 2026-10-25 09:40:52+0100
> From: Martin Uecker <uecker@tugraz.at>
>
> Am Sonntag, dem 25.10.2026 um 08:38 +0100 schrieb Alejandro Colomar:
[...]
> > > Yes, but we do not even have a proposal and [static 1] exists today.
> > 
> > Actually, we do have one: n3803.
> > <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3803.txt>
> > 
> > The wording on this one is good.  I think I forgot some trivial
> > duplication of the diff for both the non-abstract and the abstract
> > declarators, but I can fix that when I arrive home, so we could have it
> > in time for the next meeting.
> 
> Yes, please.  But this would also not work for function pointer,
> so I thought you meant something new.

Done.  I've asked Dan for a number, and sent the draft to the mailing
list.

> > > > And we also have the issue that it changes the meaning of the bound.
> > > > It's just terrible.
> > > 
> > > The bound in [1] has no meaning in parameters,
> > 
> > This is not true.  ISO C is just toilet paper in this regard.
> > It has a meaning in SDCC and GCC, and every programmer that ever wrote
> > [1] assigned a meaning to it.  Moreover, I'm using [1] myself to express
> > pointers to exactly 1 element.
> 
> In GCC [static n] and [n] have the same meaning, except
> that [static] additionally implies that the pointer is not null.
> I have worked on this, so please assume I know this.

Indeed, I know you know.

> In ISO C it is as I said, [n] has no meaning and [static n]
> is a strict subset of what we want.

And I insist that ISO C should be ignored.  It doesn't matter what ISO C
says about it, and your statement that [1] has no meaning in parameters
is giving it too much credibility.

> So I am really confused about what you are trying to tell me.

I'm trying to say that [1] has a meaning, even outside of GCC.  Every
programmer that ever wrote [n] meant the obvious thing.  The fact that
ISO C ignores this shouldn't be an excuse to claim that [static n]
doesn't change the meaning, because it is a de-facto change of meaning.


Cheers,
Alex

-- 
<https://www.alejandro-colomar.es>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2026-10-25  8:57 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-22 16:44 [PATCH] man/: SYNOPSIS: Remove GNU forward-declarations of parameters for lengths of array parameters Alejandro Colomar
2026-10-22 17:11 ` Martin Uecker
2026-10-22 20:01   ` Alejandro Colomar
2026-10-22 20:27     ` Alejandro Colomar
2026-10-22 17:37 ` Christopher Bazley
     [not found] ` <CAEHU8x9jET+vcrR0NpDz6t57egQG8TZqx5XtV52srH9ZRvdxSQ@mail.gmail.com>
2026-10-22 19:54   ` Alejandro Colomar
2026-10-23 11:53     ` Michael Kerrisk (man7.org)
2026-10-23 12:42       ` Alejandro Colomar
2026-10-23 15:51       ` Christopher Bazley
2026-10-24 12:45         ` Michael Kerrisk (man7.org)
2026-10-24 13:38           ` Alejandro Colomar
2026-10-24 16:16             ` Christopher Bazley
2026-10-24 16:37               ` Alejandro Colomar
2026-10-24 18:11                 ` Martin Uecker
2026-10-25  6:59                   ` Alejandro Colomar
2026-10-25  7:22                     ` Martin Uecker
2026-10-25  7:38                       ` Alejandro Colomar
2026-10-25  8:29                         ` G. Branden Robinson
2026-10-25  8:40                         ` Martin Uecker
2026-10-25  8:57                           ` Alejandro Colomar [this message]
2026-10-25  9:05                             ` Martin Uecker
2026-10-23 12:11     ` Alejandro Colomar
2026-10-22 22:03 ` Mark Harris
2026-10-23  9:43   ` Alejandro Colomar
2026-10-23 19:32     ` Mark Harris
2026-10-23 20:06       ` Alejandro Colomar
2026-10-24  7:53   ` Martin Uecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=at3CrSg8Rpf5JDOY@debian \
    --to=alx+linux-man@kernel.org \
    --cc=carlos@redhat.com \
    --cc=chris.bazley.wg14@gmail.com \
    --cc=corbet@lwn.net \
    --cc=josmyers@redhat.com \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    --cc=mtk@man7.org \
    --cc=sam@gentoo.org \
    --cc=uecker@tugraz.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox