Re: Optimization for $(if ...) function

2017-10-28 Thread Paul Smith
On Sun, 2017-10-15 at 16:49 +0100, Rob W wrote: > I think it only needs to test if the first character is not nul. This > is the change: Thanks that's a good change. ___ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-m

Optimization for $(if ...) function

2017-10-15 Thread Rob W
The $(if ...) function uses strlen to decide if the expanded condition is true. But it only needs to know if the string is not empty, and not the length of the string. I think it only needs to test if the first character is not nul. This is the change: 1248c1248 < result = strlen (expansion