Re: [dev] Better naming for arg.h API

2021-07-18 Thread Laslo Hunhold
On Thu, 8 Jul 2021 21:06:37 +0200 Hiltjo Posthuma wrote: Dear Hiltjo, > Can you please stop spamming the mailinglist? I already explained the > reasons why arg.h won't be changed. > > Feel free to blame me for being rude or whatever. I agree here. Certainly arg.h is not a big "construction sit

Re: [dev] Better naming for arg.h API

2021-07-08 Thread Hiltjo Posthuma
On Thu, Jul 08, 2021 at 05:32:38PM +0500, Nikita Zlobin wrote: > In Mon, 5 Jul 2021 13:36:50 +0200 > Hiltjo Posthuma wrote: > > > It is based on: > > https://9fans.github.io/plan9port/man/man3/arg.html > > > > argc (count) and argv (array of strings) are the program argument > > names. > > > >

Re: [dev] Better naming for arg.h API

2021-07-08 Thread Nikita Zlobin
In Mon, 5 Jul 2021 13:36:50 +0200 Hiltjo Posthuma wrote: > It is based on: > https://9fans.github.io/plan9port/man/man3/arg.html > > argc (count) and argv (array of strings) are the program argument > names. > Hmmm, now I'm confused about possible meaning for __fixargv0(). Its definition is no

Re: [dev] Better naming for arg.h API

2021-07-07 Thread Nikita Zlobin
In Mon, 5 Jul 2021 13:36:50 +0200 Hiltjo Posthuma wrote: > It is based on: > https://9fans.github.io/plan9port/man/man3/arg.html > > argc (count) and argv (array of strings) are the program argument > names. > Btw, I only just looked to header, linked in that man page: https://9fans.github.io/

Re: [dev] Better naming for arg.h API

2021-07-06 Thread Nikita Zlobin
In Mon, 5 Jul 2021 13:36:50 +0200 Hiltjo Posthuma wrote: > It is based on: > https://9fans.github.io/plan9port/man/man3/arg.html > > argc (count) and argv (array of strings) are the program argument > names. > Yup, and in this context - following name looks strange: > The function macro ARGC r

Re: [dev] Better naming for arg.h API

2021-07-05 Thread Hiltjo Posthuma
On Mon, Jul 05, 2021 at 02:48:10PM +0500, Nikita Zlobin wrote: > For now all names in arg.h use ARG for prefix. > However, considering existing argv parsing helpers like getopt, there > could be two prefixes: > OPT - for option key or name (for long opts) > ARG - optional option value if any, argum

[dev] Better naming for arg.h API

2021-07-05 Thread Nikita Zlobin
For now all names in arg.h use ARG for prefix. However, considering existing argv parsing helpers like getopt, there could be two prefixes: OPT - for option key or name (for long opts) ARG - optional option value if any, argument. This way I could propose alternated naming, which would be more cle