mirror of
https://github.com/mirror/make.git
synced 2025-01-09 20:00:28 +08:00
116767901f
Modify make functions that parse integer values to use long long values instead of long: on Windows long is the same as int (4 bytes) and we don't want behavior to differ between different platforms. * bootstrap.conf: Change strtol module to strtoll module. * src/function.c (parse_numeric): Use strtoll() and return long long. (func_word): Use long long. (func_wordlist): Use long long. Verify second argument is >= 0. (func_intcmp): Use long long. * src/config.ami.template: Don't define HAVE_STRTOLL. * src/config-vms.template: Define HAVE_STRTOLL. * src/config.W32.template: Define HAVE_STRTOLL. * tests/run_make_tests.pl: Set $ERR_out_of_range to the proper string. * tests/scripts/functions/word: Rework to use the new style and avoid TAB characters. Verify trailing whitespace is ignored. Add a test for a negative second argument to wordlist. Add tests for max signed integer values. Use $ERR_out_of_range for the error string. * tests/scripts/functions/intcmp: Add tests for min and max signed integer values. Use $ERR_out_of_range for the error string. |
||
---|---|---|
.. | ||
abspath | ||
addprefix | ||
addsuffix | ||
andor | ||
basename | ||
call | ||
dir | ||
error | ||
eval | ||
file | ||
filter-out | ||
findstring | ||
flavor | ||
foreach | ||
guile | ||
if | ||
intcmp | ||
join | ||
let | ||
notdir | ||
origin | ||
realpath | ||
shell | ||
sort | ||
strip | ||
substitution | ||
suffix | ||
value | ||
warning | ||
wildcard | ||
word |