Re: mandoc: -Tlint: spurious warning about empty IP macro

2022-11-10 Thread G. Branden Robinson
Hi Alex, At 2022-11-10T00:31:27+0100, Alejandro Colomar wrote: > mandoc: man2/mount_setattr.2:644:2: WARNING: skipping paragraph macro: > IP empty I suspect this warning did not anticipate that a paragraphing macro might be used solely for its spacing function, which is not redundant with an adja

sizeof in Macros. (Was: Specifying dependencies more clearly)

2022-11-10 Thread Ralph Corderoy
Howdy Alejandro, > > Okay, here we go for a rant. Consider the cost of lost opportunities. > Since I wrote the code from memory, I had a few typos, but the idea > was there... > > >     typedef struct { > >     size_t  length; > >     u_char  *start; > >     } str_t; > > > >     #d

Re: Subsections are not recognized

2022-11-10 Thread G. Branden Robinson
Hi Alex, At 2022-11-09T23:46:43+0100, Alejandro Colomar wrote: > I remember having reported this, but can't seem to find the report. > Just to make sure it's not forgotten before 1.23.0, I'll remind about > it: > > $ make lint-man V=1 > LINT (groff) tmp/lint/man2type/open_how.2type.lint-man.grof

Re: Subsections are not recognized

2022-11-10 Thread Alejandro Colomar
Hi Branden! On 11/10/22 10:31, G. Branden Robinson wrote: Hi Alex, At 2022-11-09T23:46:43+0100, Alejandro Colomar wrote: I remember having reported this, but can't seem to find the report. Just to make sure it's not forgotten before 1.23.0, I'll remind about it: $ make lint-man V=1 LINT (grof

Re: mandoc: -Tlint: spurious warning about empty IP macro

2022-11-10 Thread Alejandro Colomar
On 11/10/22 09:56, G. Branden Robinson wrote: At 2022-11-10T00:31:27+0100, Alejandro Colomar wrote: mandoc: man2/mount_setattr.2:644:2: WARNING: skipping paragraph macro: IP empty I suspect this warning did not anticipate that a paragraphing macro might be used solely for its spacing functio

MR macro 4th argument (was: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters)

2022-11-10 Thread Alejandro Colomar
Of course I forgot to rename the title, and to agg groff@. Nice. Forwarded Message Subject: Re: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters Date: Thu, 10 Nov 2022 18:47:38 +0100 From: Alejandro Colomar To: G. Branden Robinson CC: Ingo Schwarze , li

Re: MR macro 4th argument (was: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters)

2022-11-10 Thread Alejandro Colomar
Hi Branden, Another interesting thing is what to do here: $ sed -n 319,320p man2/timerfd_create.2 .TP .BR poll "(2), " select "(2) (and similar)" Can I have multiple input lines as the tag for a TP? How to put 2 MR references in there? Cheers, Alex --

Re: MR macro 4th argument (was: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters)

2022-11-10 Thread Alejandro Colomar
On 11/10/22 19:11, Alejandro Colomar wrote: Hi Branden, Another interesting thing is what to do here: $ sed -n 319,320p man2/timerfd_create.2 .TP .BR poll "(2), " select "(2) (and similar)" Can I have multiple input lines as the tag for a TP?  How to put 2 MR references in there? Or mayb

Re: MR macro 4th argument (was: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters)

2022-11-10 Thread Alejandro Colomar
Hi Branden, On 11/10/22 19:04, Alejandro Colomar wrote: Of course I forgot to rename the title, and to agg groff@.  Nice. Forwarded Message Subject: Re: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters Date: Thu, 10 Nov 2022 18:47:38 +0100 From: Alejandr

Re: MR macro 4th argument (was: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters)

2022-11-10 Thread Alejandro Colomar
On 11/10/22 20:37, Alejandro Colomar wrote: Hi Branden, On 11/10/22 19:04, Alejandro Colomar wrote: Of course I forgot to rename the title, and to agg groff@.  Nice. Forwarded Message Subject: Re: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters Date:

Pascal rides again (was: Specifying dependencies more clearly)

2022-11-10 Thread G. Branden Robinson
(Some of this is off-topic for the groff list.) Hi Alex, At 2022-11-08T22:05:25+0100, Alejandro Colomar wrote: > Okay, here we go for a rant. > > Let's say there's some software with cowboy programmers, which has > things like: > > typedef struct { > size_t length; > u_char

Re: mandoc: -Tlint: spurious warning about empty IP macro

2022-11-10 Thread G. Branden Robinson
Hi Alex, At 2022-11-10T11:40:26+0100, Alejandro Colomar wrote: > On 11/10/22 09:56, G. Branden Robinson wrote: > Not really. .P (or .PP, which I did try) would break the formatting. > Let's show a bit mre of the current page: > >• The underlying filesystem must support ID‐mapped mounts.

build, BuildFoundries, and gropdf changes coming

2022-11-10 Thread G. Branden Robinson
Hi all, As alluded to in my last message to Alex... Deri's improvement of gropdf's font file resolution procedure for embedded fonts[1] has pulled on a loose thread and is having interesting results. Here are some selected commits from my working copy. The creation of the compiled groff man pag

Re: MR macro 4th argument (was: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters)

2022-11-10 Thread G. Branden Robinson
Hi Alex, At 2022-11-10T19:04:46+0100, Alejandro Colomar wrote: > Of course I forgot to rename the title, and to agg groff@. Nice. It gave me time to reply to this one. :) > On 11/10/22 11:59, Alejandro Colomar wrote: > I won't be applying the patch now, to avoid contributors seeing people > su

Re: MR macro 4th argument (was: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters)

2022-11-10 Thread Alejandro Colomar
Hi Branden, On 11/10/22 23:55, G. Branden Robinson wrote: Hi Alex, At 2022-11-10T19:04:46+0100, Alejandro Colomar wrote: Of course I forgot to rename the title, and to agg groff@. Nice. It gave me time to reply to this one. :) :) [...] The big issue is that your MR doesn't support lea

Re: Pascal rides again (was: Specifying dependencies more clearly)

2022-11-10 Thread Alejandro Colomar
On 11/10/22 22:19, G. Branden Robinson wrote: (Some of this is off-topic for the groff list.) Hi Branden, Hi Alex, At 2022-11-08T22:05:25+0100, Alejandro Colomar wrote: Okay, here we go for a rant. Let's say there's some software with cowboy programmers, which has things like: typed

Re: Pascal rides again (was: Specifying dependencies more clearly)

2022-11-10 Thread Alejandro Colomar
On 11/11/22 03:09, Alejandro Colomar wrote: On 11/10/22 22:19, G. Branden Robinson wrote: especially when these are used by the naïve or slack-jawed.[1] I developed this stpecpy()[1] to fix this performance problem present in strlcpy(3).  I plan to start using it (or similar ones adapted to t

Re: Pascal rides again (was: Specifying dependencies more clearly)

2022-11-10 Thread G. Branden Robinson
Hi Alex, At 2022-11-11T03:09:51+0100, Alejandro Colomar wrote: > > Write and demonstrate an exploit[6]. It won't make you any more > > popular than your present approach, but it will knock the jocks' > > cowboy hats askew. [...] > > [6] But do it in a sandbox lest you become the next Tom Christia

Re: MR macro 4th argument (was: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters)

2022-11-10 Thread G. Branden Robinson
At 2022-11-11T00:55:18+0100, Alejandro Colomar wrote: > Hmm, will need to parse that. Anyway, I think now that I have the MR > with 4 arguments, moving the 4th to the previous line with sed and N > should not be that difficult. Okay. > Well, being a compatible extension to the others is not that