[PATCH 1/2] Use strtol instead of atoi

2020-06-08 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 --- Here is a proposal to start a more thorough support of numerical values. While earlier discus

[PATCH 2/2] compare function

2020-06-08 Thread Jouke Witteveen
This is an implementation of a $(compare) function as proposed by Edward Welbourne. It differs from his original proposal in that it behaves differently when given 4 or 5 arguments. In short, it's signature is $(compare lhs,rhs,less-than[,greater-or-equal]) $(compare lhs,rhs,less-than,equal,gr