make/src
Paul Smith 116767901f Convert word, wordlist, and intcmp functions to use long long
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.
2021-11-28 14:27:10 -05:00
..
w32 Clean up more Windows warnings. 2021-09-07 01:14:33 -04:00
amiga.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
amiga.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
ar.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
arscan.c Avoid some valgrind warnings 2020-11-29 17:59:40 -05:00
commands.c [SV 60659] Set $$< properly in second expansion 2021-05-30 15:53:41 -04:00
commands.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
config.ami.template Convert word, wordlist, and intcmp functions to use long long 2021-11-28 14:27:10 -05:00
config.h-vms.template Convert word, wordlist, and intcmp functions to use long long 2021-11-28 14:27:10 -05:00
config.h.W32.template Convert word, wordlist, and intcmp functions to use long long 2021-11-28 14:27:10 -05:00
configh.dos.template Apply spelling corrections from Fossies spellcheck 2020-01-20 19:25:54 -05:00
debug.h [SV 59169] Add --debug=why and --debug=print options 2020-12-05 16:25:12 -05:00
default.c * src/default.c (default_variables): Use CPP in PREPROCESS.S. 2021-09-06 20:42:34 -04:00
dep.h Fix build and test issues on Windows 2021-03-28 16:25:52 -04:00
dir.c Fix build and test issues on Windows 2021-03-28 16:25:52 -04:00
expand.c Ensure variable_buffer is always set. 2021-03-15 01:17:06 -04:00
file.c [SV 60435] Ensure intermediate grouped files are removed 2021-09-07 01:14:20 -04:00
filedef.h [SV 60435] Ensure intermediate grouped files are removed 2021-09-07 01:14:20 -04:00
function.c Convert word, wordlist, and intcmp functions to use long long 2021-11-28 14:27:10 -05:00
getopt.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
getopt.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
getopt1.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
gettext.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
gmk-default.scm Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
gnumake.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
guile.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
hash.c Clean up a few Windows build warnings (not all!) 2021-09-05 21:09:27 -04:00
hash.h Rework directory structure to use GNU-recommended "src" directory. 2017-11-19 14:07:22 -05:00
implicit.c * src/implicit.c (pattern_search): Fix text for easier translation. 2021-11-27 22:00:12 -05:00
job.c [SV 61042] Enhance logging of implicit rule search 2021-10-18 23:00:21 -04:00
job.h Apply spelling corrections from Fossies spellcheck 2020-01-20 19:25:54 -05:00
load.c [SV 57930] Cast char to unsigned char to call ctype functions 2020-05-03 14:54:56 -04:00
loadapi.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
main.c * src/main.c (decode_debug_flags): [SV 607777] Preserve -d options 2021-09-06 20:36:15 -04:00
makeint.h Convert word, wordlist, and intcmp functions to use long long 2021-11-28 14:27:10 -05:00
misc.c [SV 61042] Enhance logging of implicit rule search 2021-10-18 23:00:21 -04:00
os.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
output.c [SV 57967] Only set APPEND mode for regular files 2020-03-31 00:19:20 -04:00
output.h * src/output.h: [WINDOWS32] [SV 57888] Use gnulib fcntl if available 2020-03-31 01:07:43 -04:00
posixos.c [SV 58232] Disable inheritance of jobserver FDs for recursive make 2020-05-02 20:09:29 -04:00
read.c [SV 60435] Ensure intermediate grouped files are removed 2021-09-07 01:14:20 -04:00
remake.c [SV 61042] Enhance logging of implicit rule search 2021-10-18 23:00:21 -04:00
remote-cstms.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
remote-stub.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
rule.c [SV 61042] Enhance logging of implicit rule search 2021-10-18 23:00:21 -04:00
rule.h [SV 61042] Enhance logging of implicit rule search 2021-10-18 23:00:21 -04:00
signame.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
strcache.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
variable.c Add support for the POSIX :::= assignment operator. 2021-09-20 00:29:31 -04:00
variable.h Add support for the POSIX :::= assignment operator. 2021-09-20 00:29:31 -04:00
version.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
vms_exit.c Apply spelling corrections from Fossies spellcheck 2020-01-20 19:25:54 -05:00
vms_export_symbol.c Apply spelling corrections from Fossies spellcheck 2020-01-20 19:25:54 -05:00
vms_progname.c [SV 57930] Cast char to unsigned char to call ctype functions 2020-05-03 14:54:56 -04:00
vmsdir.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
vmsfunctions.c Apply spelling corrections from Fossies spellcheck 2020-01-20 19:25:54 -05:00
vmsify.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
vmsjobs.c [SV 57930] Cast char to unsigned char to call ctype functions 2020-05-03 14:54:56 -04:00
vpath.c Clean up a few Windows build warnings (not all!) 2021-09-05 21:09:27 -04:00