Re: [PATCH] doc: clarify integer requirements in some functions

2022-02-12 Thread Mike Frysinger
On 12 Feb 2022 14:55, Paul Eggert wrote: > On 2/12/22 01:03, Mike Frysinger wrote: > > i > > don't think, based on the description of AS_VAR_ARITH, this is unreasonable: > >blah=2 > >AS_VAR_ARITH([foo], [$blah + 0.1]) > > True enough. I installed the attached, which is a bit fancier than w

Re: [PATCH] doc: clarify integer requirements in some functions

2022-02-12 Thread Paul Eggert
On 2/12/22 01:03, Mike Frysinger wrote: i don't think, based on the description of AS_VAR_ARITH, this is unreasonable: blah=2 AS_VAR_ARITH([foo], [$blah + 0.1]) True enough. I installed the attached, which is a bit fancier than what you proposed, and which nails down more details about A

Re: [PATCH] doc: clarify integer requirements in some functions

2022-02-12 Thread Mike Frysinger
On 12 Feb 2022 00:35, Paul Eggert wrote: > On 2/12/22 00:28, Mike Frysinger wrote: > > These functions do not accept decimal values with fractional parts. > > Describe them in terms of integers to clarify. > > I dunno, those values all must be integers by their nature so saying > "integer" in the

Re: [PATCH] doc: clarify integer requirements in some functions

2022-02-12 Thread Paul Eggert
On 2/12/22 00:28, Mike Frysinger wrote: These functions do not accept decimal values with fractional parts. Describe them in terms of integers to clarify. I dunno, those values all must be integers by their nature so saying "integer" in the doc doesn't help much; conversely, if the doc omits t

[PATCH] doc: clarify integer requirements in some functions

2022-02-12 Thread Mike Frysinger
These functions do not accept decimal values with fractional parts. Describe them in terms of integers to clarify. * doc/autoconf.texi: Change decimal to integer for m4_count, m4_max, m4_min, and AS_VAR_ARITH. * lib/m4sugar/m4sh.m4: Change decimal to integer for AS_FUNCTION_DESCRIBE, AS_HELP_STRIN