[PATCH 3/3] Introduce $(compare ...) for numerical comparison

2021-07-16 Thread Jouke Witteveen
Numbers can come from $(words ...), automatic variables such as $(MAKELEVEL), from environment variables, or from shell output such as through $(shell expr ...). The $(compare ...) function allows conditional evaluation controlled by numerical variables. * NEWS: Announce this feature. * doc/make.

[PATCH 2/3] Use strtol instead of atoi

2021-07-16 Thread Jouke Witteveen
strtol is part of C89 and a fallback is provided by gnulib * src/function.c (func_word, func_wordlist): Use strtol instead of atoi * test/scripts/functions/word: Add out-of-range verification testing --- bootstrap.conf | 1 + src/function.c | 51 ++

[PATCH 1/3] * src/makeint.h: Removed unused atol declaration

2021-07-16 Thread Jouke Witteveen
--- src/makeint.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/makeint.h b/src/makeint.h index fcfb7bd..ca6d49d 100644 --- a/src/makeint.h +++ b/src/makeint.h @@ -631,7 +631,6 @@ void spin (const char* suffix); #if !defined (__GNU_LIBRARY__) && !defined (POSIX) && !defined (_POSIX_VE