CVS commit: src/usr.bin/make

2020-10-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Oct 18 13:02:10 UTC 2020 Modified Files: src/usr.bin/make: arch.c dir.c job.c lst.c lst.h main.c make.c meta.c parse.c suff.c targ.c src/usr.bin/make/unit-tests: deptgt.mk Log Message: make(1): rename

CVS commit: src/usr.bin/make

2020-10-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Oct 18 14:32:04 UTC 2020 Modified Files: src/usr.bin/make: dir.c Log Message: make(1): replace Lst_Open with simple iteration in Dir_FindFile To generate a diff of this commit: cvs rdiff -u -r1.167 -r1.168

CVS commit: src/usr.bin/make

2020-10-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Oct 18 14:36:09 UTC 2020 Modified Files: src/usr.bin/make: dir.c Log Message: make(1): replace Lst_Open with simple iteration in Dir_SetPATH To generate a diff of this commit: cvs rdiff -u -r1.168 -r1.169

CVS commit: src/usr.bin/make

2020-10-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Oct 19 23:43:55 UTC 2020 Modified Files: src/usr.bin/make: config.h dir.h job.c make.c make.h make_malloc.h meta.h nonints.h targ.c Log Message: make(1): clean up headers, no functional change To generate a diff

CVS commit: src/usr.bin/make

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 10:27:22 UTC 2020 Modified Files: src/usr.bin/make: var.c Log Message: make(1): save a variable lookup when adding a read-only variable To generate a diff of this commit: cvs rdiff -u -r1.463 -r1.464

CVS commit: src/usr.bin/make

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 18:57:32 UTC 2020 Modified Files: src/usr.bin/make: arch.c Log Message: make(1): make ArchStatMember ready for WARNS=6 To generate a diff of this commit: cvs rdiff -u -r1.94 -r1.95 src/usr.bin/make/arch.c Please

CVS commit: src/usr.bin/make

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 18:59:01 UTC 2020 Modified Files: src/usr.bin/make: arch.c Log Message: make(1): make ArchFindMember ready for WARNS=6 To generate a diff of this commit: cvs rdiff -u -r1.95 -r1.96 src/usr.bin/make/arch.c Please

CVS commit: src

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 13:50:17 UTC 2020 Modified Files: src/distrib/sets/lists/tests: mi src/usr.bin/make/unit-tests: Makefile Added Files: src/usr.bin/make/unit-tests: cond-cmp-numeric-eq.exp

CVS commit: src/usr.bin/make/unit-tests

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 14:28:04 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile opt-ignore.exp opt-ignore.mk opt-keep-going.exp opt-keep-going.mk opt-var-expanded.exp opt-var-expanded.mk

CVS commit: src/usr.bin/make

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 17:04:21 UTC 2020 Modified Files: src/usr.bin/make: lst.h make.h metachar.h Log Message: make(1): remove unused declarations from header files To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43

CVS commit: src/usr.bin/make

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 16:59:44 UTC 2020 Modified Files: src/usr.bin/make: lst.h Log Message: make(1): remove parameter names from function prototypes Thanks kre for noticing. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42

CVS commit: src/usr.bin/make

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 16:58:03 UTC 2020 Modified Files: src/usr.bin/make: arch.c cond.c dir.c lst.c lst.h main.c meta.c suff.c Log Message: make(1): reverse order of the Lst_Find parameters The other callbacks all have (function, param),

CVS commit: src/usr.bin/make

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 18:26:35 UTC 2020 Modified Files: src/usr.bin/make: compat.c for.c job.c main.c nonints.h str.c var.c Log Message: make(1): make brk_string return size_t for the number of words To generate a diff of this commit: cvs

CVS commit: src/usr.bin/make/unit-tests

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 14:46:33 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile sh-leading-plus.exp sh-leading-plus.mk Log Message: make(1): add test for + commands with the -n command line option To generate a

CVS commit: src/usr.bin/make/unit-tests

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 15:13:22 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: modmisc.exp modmisc.mk varmod-hash.exp varmod-hash.mk varmod-localtime.exp varmod-localtime.mk varmod-range.exp varmod-range.mk Log

CVS commit: src/usr.bin/make

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 17:22:52 UTC 2020 Modified Files: src/usr.bin/make: Makefile Log Message: make(1): allow to run only selected tests via the command line To generate a diff of this commit: cvs rdiff -u -r1.91 -r1.92

CVS commit: src/usr.bin/make/unit-tests

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 15:09:15 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: modmisc.exp modmisc.mk varmod-extension.exp varmod-extension.mk varmod-head.exp varmod-head.mk varmod-root.exp varmod-root.mk

CVS commit: src/usr.bin/make

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 17:49:37 UTC 2020 Modified Files: src/usr.bin/make: arch.c Log Message: make(1): replace tricky malloc+realloc+strlen+snprintf with Buffer The code for handling archives is not widely used. Therefore it does not need

CVS commit: src/usr.bin/make/unit-tests

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 17:51:24 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: archive.exp archive.mk Log Message: make(1): in archive test, use wildcard that matches more than 1 file This is to make sure that the buffer used for

CVS commit: src/usr.bin/make

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 19:00:19 UTC 2020 Modified Files: src/usr.bin/make: compat.c Log Message: make(1): make compat.c ready for WARNS=6 To generate a diff of this commit: cvs rdiff -u -r1.128 -r1.129 src/usr.bin/make/compat.c Please

CVS commit: src/usr.bin/make

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 10:53:27 UTC 2020 Modified Files: src/usr.bin/make: compat.c lst.c lst.h Log Message: make(1): handle special case of a list containing null pointers GNode.commands is the only place in make where a list can contain

CVS commit: src/usr.bin/make

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 11:13:08 UTC 2020 Modified Files: src/usr.bin/make: lst.c Log Message: make(1): remove another piece of code for circular lists To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/usr.bin/make/lst.c

CVS commit: src/usr.bin/make/unit-tests

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 14:07:20 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: cond-func-commands.mk cond-func-exists.mk cond-func-target.mk Log Message: make(1): add tests for functions in .if conditions To generate a

CVS commit: src/usr.bin/make/unit-tests

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 15:18:43 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: modmisc.exp modmisc.mk varmod-remember.exp varmod-remember.mk varmod-to-upper.exp varmod-to-upper.mk Log Message: make(1): move tests for the

CVS commit: src/usr.bin/make

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 16:18:12 UTC 2020 Modified Files: src/usr.bin/make: lst.c Log Message: make(1): make navigating lists in debugging mode easier Lst is an untyped list of pointers. During debugging, it is often necessary to inspect

CVS commit: src/usr.bin/make

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 16:43:35 UTC 2020 Modified Files: src/usr.bin/make: lst.c lst.h meta.c Log Message: make(1): define aliases for function types in list processing This makes the prototypes of the functions clearer. To generate a

CVS commit: src/usr.bin/make

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 18:03:35 UTC 2020 Modified Files: src/usr.bin/make: str.c Log Message: make(1): prepare str.c for WARNS=6 The next step is to make brk_string return size_t instead of int. To generate a diff of this commit: cvs

CVS commit: src/usr.bin/make

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 18:53:13 UTC 2020 Modified Files: src/usr.bin/make: arch.c Log Message: make(1): make Arch_MemMTime ready for WARNS=6 To generate a diff of this commit: cvs rdiff -u -r1.93 -r1.94 src/usr.bin/make/arch.c Please note

CVS commit: src/usr.bin/make/unit-tests

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 14:52:07 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: sysv.exp sysv.mk varmod-sysv.exp varmod-sysv.mk Log Message: make(1): move some of the SysV modifier tests into another file To generate a

CVS commit: src/usr.bin/make/unit-tests

2020-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 23 17:34:46 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: archive.exp archive.mk Log Message: make(1): add test for wildcards in archive dependency To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3

CVS commit: src/usr.bin/make

2020-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 25 17:37:09 UTC 2020 Modified Files: src/usr.bin/make: buf.h make_malloc.h metachar.h strlist.c Log Message: make(1): allow make to be compiled in C90 mode Since the inline functions are the only C99 feature used by now,

CVS commit: src/usr.bin/make

2020-08-25 Thread Roland Illig
/make/enum.h Tue Aug 25 16:27:24 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: enum.h,v 1.7 2020/08/24 20:15:51 rillig Exp $ */ +/* $NetBSD: enum.h,v 1.8 2020/08/25 16:27:24 rillig Exp $ */ /* Copyright (c) 2020 Roland Illig @@ -44,36 +44,39 @@ typedef struct { const char *Enum_FlagsToString(char

CVS commit: src/usr.bin/make

2020-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 25 16:39:19 UTC 2020 Modified Files: src/usr.bin/make: Makefile Log Message: make(1): allow custom build options To generate a diff of this commit: cvs rdiff -u -r1.92 -r1.93 src/usr.bin/make/Makefile Please note that

CVS commit: src/usr.bin/make

2020-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 25 16:50:02 UTC 2020 Modified Files: src/usr.bin/make: main.c parse.c suff.c Log Message: make(1): fix obvious bugs in -DCLEANUP mode The outdated type name FreeProc had been renamed to LstFreeProc. Casting the function

CVS commit: src/usr.bin/make/unit-tests

2020-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 25 16:07:39 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: var-op-assign.exp var-op-assign.mk Log Message: make(1): add test for variable assignment using the '=' operator To generate a diff of this commit: cvs

CVS commit: src/usr.bin/make/unit-tests

2020-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 25 16:20:32 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: var-op-assign.exp var-op-assign.mk Log Message: make(1): demonstrate how the parser handles spaces in variable names Not that anyone would need this

CVS commit: src/usr.bin/make/unit-tests

2020-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 25 18:59:30 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: varmod-assign.mk Log Message: make(1): explain the varmod-assign test I have no idea why I added the mod-assign-nested test. It is completely boring and

CVS commit: src/usr.bin/make/unit-tests

2020-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 25 20:49:40 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: moderrs.exp moderrs.mk varmod-assign.exp varmod-assign.mk Log Message: make(1): move test for the ::= modifier to varmod-assign To generate a

CVS commit: src/usr.bin/make/unit-tests

2020-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 25 21:58:08 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: varmod-defined.mk Log Message: make(1): add test for the :D modifier To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3

CVS commit: src/usr.bin/make

2020-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 25 21:16:54 UTC 2020 Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: varmod-assign.exp varmod-assign.mk Log Message: make(1): fix error message for ::!= modifier with shell error It's just

CVS commit: src/usr.bin/make/unit-tests

2020-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 25 22:25:05 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: varmod-l-name-to-value.mk Log Message: make(1): add test for the :L modifier To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 \

CVS commit: src/usr.bin/make/unit-tests

2020-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 25 21:07:39 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: varmod-assign.exp varmod-assign.mk Log Message: make(1): add test for ::!= modifier with shell error To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/make/unit-tests

2020-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 25 22:51:54 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: varname-dot-alltargets.exp varname-dot-alltargets.mk Log Message: make(1): add test for the .ALLTARGETS special variable To generate a diff

CVS commit: src/usr.bin/make

2020-08-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Aug 19 06:10:07 UTC 2020 Modified Files: src/usr.bin/make: make.1 src/usr.bin/make/unit-tests: varmod-subst.mk Log Message: make(1): fix a few inconsistencies in the manual page To generate a diff of this commit:

CVS commit: src/usr.bin/make/unit-tests

2020-08-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Aug 19 05:13:18 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile opt-query.exp opt-query.mk Log Message: make(1): add test for the -q option To generate a diff of this commit: cvs rdiff -u -r1.100 -r1.101

CVS commit: src/usr.bin/make/unit-tests

2020-08-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Aug 19 05:25:26 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile opt-no-action.exp opt-no-action.mk Log Message: make(1): add test for the -n option To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/make/unit-tests

2020-08-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Aug 19 05:40:07 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: varname-dollar.exp varname-dollar.mk Log Message: make(1): add test for the $$ expression To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2

CVS commit: src/usr.bin/make/unit-tests

2020-08-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Aug 19 05:51:19 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: varname-dot-newline.exp varname-dot-newline.mk Log Message: make(1): add test for the .newline variable To generate a diff of this commit:

CVS commit: src/usr.bin/make

2020-08-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Aug 19 06:30:37 UTC 2020 Modified Files: src/usr.bin/make: Makefile Log Message: make(1): don't optimize when measuring the code coverage https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96622 To generate a diff of this

CVS commit: src/usr.bin/make

2020-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 06:37:21 UTC 2020 Modified Files: src/usr.bin/make: suff.c Log Message: make(1): fix assertion failure in suffix handling Found by running ./build.sh, in the very early stage. Fixed by restoring the previous behavior

CVS commit: src/usr.bin/make

2020-08-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 04:48:57 UTC 2020 Modified Files: src/usr.bin/make: arch.c compat.c cond.c dir.c job.c lst.c lst.h main.c make.c meta.c parse.c suff.c targ.c Log Message: make(1): remove trailing 'S' from names of Lst

CVS commit: src/usr.bin/make

2020-08-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 04:28:45 UTC 2020 Modified Files: src/usr.bin/make: arch.c cond.c dir.c lst.c lst.h main.c meta.c suff.c Log Message: make(1): migrate Lst_Find to Lst_FindS To generate a diff of this commit: cvs rdiff -u -r1.99

CVS commit: src/usr.bin/make/unit-tests

2020-08-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 04:05:35 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile deptgt-suffixes.mk Log Message: make(1): add test for the undocumented .NULL special dependency target To generate a diff of this commit: cvs

CVS commit: src/usr.bin/make/unit-tests

2020-08-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 04:07:14 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: deptgt-suffixes.exp Log Message: make(1): add test for the undocumented .NULL special dependency target To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/make

2020-08-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 04:16:58 UTC 2020 Modified Files: src/usr.bin/make: dir.c lst.h Log Message: make(1): remove unused reference to Lst_Last To generate a diff of this commit: cvs rdiff -u -r1.116 -r1.117 src/usr.bin/make/dir.c cvs

CVS commit: src/usr.bin/make

2020-08-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 04:59:18 UTC 2020 Modified Files: src/usr.bin/make: dir.c Log Message: make(1): clean up Dir_AddDir Extract the null check for path to the top level. This has the side-effect of only incrementing dotLast.refCount if

CVS commit: src/usr.bin/make

2020-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 06:47:15 UTC 2020 Modified Files: src/usr.bin/make: meta.c Log Message: make(1): fix the other assertion from Lst_FindFrom When I migrated the Lst_FindFrom to the strict API variant, I forgot that Lst_FindFrom

CVS commit: src/usr.bin/make

2020-08-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 04:14:31 UTC 2020 Modified Files: src/usr.bin/make: dir.c lst.c lst.h main.c make.c meta.c suff.c Log Message: make(1): migrate Lst_First to Lst_FirstS To generate a diff of this commit: cvs rdiff -u -r1.115 -r1.116

CVS commit: src/usr.bin/make/unit-tests

2020-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 13:50:48 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: cond-op.mk Log Message: make(1): add test for operator precedence in conditions To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3

CVS commit: src/usr.bin/make/unit-tests

2020-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 12:59:36 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: cond-func-exists.mk Log Message: make(1): extend test for the exists function in conditions To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4

CVS commit: src/usr.bin/make/unit-tests

2020-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 14:07:51 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: cond-op.exp cond-op.mk Log Message: make(1): add test for unquoted string literals To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2

CVS commit: src/usr.bin/make/unit-tests

2020-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 14:48:38 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: cond-op-and.mk cond-op-not.mk cond-op-or.mk Log Message: make(1): add tests for the &&, || and ! operators To generate a diff of this commit:

CVS commit: src/usr.bin/make

2020-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 19:21:00 UTC 2020 Modified Files: src/usr.bin/make: suff.c Log Message: make(1): rename SuffixCmpData to SuffSuffIsSuffixArgs The new name makes the comment above that struct redundant. To generate a diff of this

CVS commit: src/usr.bin/make/unit-tests

2020-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 17:21:03 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: varmod-to-lower.mk varmod-to-upper.mk Log Message: make(1): add tests for :tl and :tu modifiers To generate a diff of this commit: cvs rdiff -u -r1.2

CVS commit: src/usr.bin/make/unit-tests

2020-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 18:16:22 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: cmd-interrupt.exp cmd-interrupt.mk Log Message: make(1): fix test for interrupted command execution In the first version of this test, I had completely

CVS commit: src

2020-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 15:40:54 UTC 2020 Modified Files: src/distrib/sets/lists/tests: mi src/usr.bin/make/unit-tests: Makefile Added Files: src/usr.bin/make/unit-tests: cmd-interrupt.exp cmd-interrupt.mk Log Message:

CVS commit: src/usr.bin/make

2020-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 17:27:21 UTC 2020 Modified Files: src/usr.bin/make: suff.c Log Message: make(1): clean up suffix handling To generate a diff of this commit: cvs rdiff -u -r1.126 -r1.127 src/usr.bin/make/suff.c Please note that

CVS commit: src/usr.bin/make

2020-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 18:34:46 UTC 2020 Modified Files: src/usr.bin/make: arch.c Log Message: make(1): clean up arch.c Remove redundant parts of the function comments. Move the "side effects" to the main section, since these effects are

CVS commit: src/usr.bin/make

2020-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 19:14:07 UTC 2020 Modified Files: src/usr.bin/make: make.h targ.c Log Message: make(1): clean up targ.c The main part is removing redundant or outdated information from comments. In a few places, the expression cond

CVS commit: src/usr.bin/make

2020-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 17:15:04 UTC 2020 Modified Files: src/usr.bin/make: make.1 src/usr.bin/make/unit-tests: varmod-subst-regex.exp varmod-subst-regex.mk Log Message: make(1): fix manual page about the modifiers of the

CVS commit: src/usr.bin/make

2020-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 20:57:54 UTC 2020 Modified Files: src/usr.bin/make: Makefile Log Message: make(1): remove redundant MAKEFLAGS from subdir make The make flags are passed via the environment, not via the command line. This is not as

CVS commit: src/usr.bin/make

2020-08-28 Thread Roland Illig
/08/24 20:15:51 rillig Exp $ */ +/* $NetBSD: enum.c,v 1.5 2020/08/28 19:46:04 rillig Exp $ */ /* Copyright (c) 2020 Roland Illig @@ -28,15 +28,16 @@ */ #ifndef MAKE_NATIVE -static char rcsid[] = "$NetBSD: enum.c,v 1.4 2020/08/24 20:15:51 rillig Exp $"; +static char rcsid[]

CVS commit: src/usr.bin/make

2020-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 19:52:14 UTC 2020 Modified Files: src/usr.bin/make: lst.c Log Message: make(1): inline LstIsValid and LstNodeIsValid A simple null pointer comparison is easier to understand than the fuzzy word "valid". To generate

CVS commit: src/usr.bin/make

2020-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 20:23:20 UTC 2020 Modified Files: src/usr.bin/make: job.c Log Message: make(1): remove unused variable not_parallel The variable malloc_options seems unused as well, but the manual page for jemalloc(3) mentions it.

CVS commit: src/usr.bin/make

2020-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Aug 28 20:16:19 UTC 2020 Modified Files: src/usr.bin/make: hash.c Log Message: make(1): remove redundant comments from hash.c To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/usr.bin/make/hash.c Please

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 07:52:56 UTC 2020 Modified Files: src/usr.bin/make: main.c make.h nonints.h parse.c str.c var.c Log Message: make(1): allow for strict type checking for Boolean Having Boolean aliased to int creates ambiguities since

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 07:13:17 UTC 2020 Modified Files: src/usr.bin/make: main.c Log Message: make(1): clean up code in make.c Var_Subst never returns NULL. In Main_ExportMAKEFLAGS, don't compare ints with booleans. In MainParseArgs, use

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 08:09:07 UTC 2020 Modified Files: src/usr.bin/make: compat.c make.h Log Message: make(1): add another Boolean variant to check during development To generate a diff of this commit: cvs rdiff -u -r1.132 -r1.133

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 08:59:08 UTC 2020 Modified Files: src/usr.bin/make: main.c Log Message: make(1): fix null pointer dereference when sys.mk is not found This is quite hard to trigger in a real-life scenario since it requires precise

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 07:05:12 UTC 2020 Modified Files: src/usr.bin/make: main.c Log Message: make(1): rename confusing function ReadAllMakefiles The old name implied that the function would read multiple files, which was not the case.

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 10:06:23 UTC 2020 Modified Files: src/usr.bin/make: lst.c lst.h meta.c suff.c Log Message: make(1): migrate remaining Lst_Find to Lst_FindB While here, rename SuffSuffIsSuffix to SuffSuffGetSuffix since a function

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 10:32:00 UTC 2020 Modified Files: src/usr.bin/make: for.c Log Message: make(1): remove duplicate code for allocation a substring To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 src/usr.bin/make/for.c

CVS commit: src/usr.bin/make/unit-tests

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 10:52:47 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile opt-debug-g1.exp Log Message: make(1): fix test opt-debug-g1 Including the directory cache made the test output fragile. To generate a diff of

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 12:48:17 UTC 2020 Modified Files: src/usr.bin/make: var.c Log Message: make(1): add comments for ModifyWord_Subst Without any comments, the code is unnecessarily hard to follow. To generate a diff of this commit:

CVS commit: src

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 14:47:26 UTC 2020 Modified Files: src/distrib/sets/lists/tests: mi src/usr.bin/make: compat.c src/usr.bin/make/unit-tests: Makefile Added Files: src/usr.bin/make/unit-tests: archive-suffix.exp

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 09:30:10 UTC 2020 Modified Files: src/usr.bin/make: arch.c cond.c dir.c lst.c lst.h main.c Log Message: make(1): start replacing Lst_Find with Lst_FindB Lst_Find is called with a "comparison" function that returns the

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 12:27:10 UTC 2020 Modified Files: src/usr.bin/make: var.c Log Message: make(1): split ApplyModifier_To into paragraphs To generate a diff of this commit: cvs rdiff -u -r1.474 -r1.475 src/usr.bin/make/var.c Please

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 13:04:30 UTC 2020 Modified Files: src/usr.bin/make: main.c Log Message: make(1): make getBoolean simpler This function is so seldom used that there is no point having complicated code for it. To generate a diff of

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 10:35:03 UTC 2020 Modified Files: src/usr.bin/make: job.c Log Message: make(1): clean up indentation, comments and variable scope in job.c To generate a diff of this commit: cvs rdiff -u -r1.221 -r1.222

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 11:13:43 UTC 2020 Modified Files: src/usr.bin/make: hash.h parse.c suff.c Log Message: make(1): merge duplicate code for bmake_strldup To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 12:01:47 UTC 2020 Modified Files: src/usr.bin/make: nonints.h suff.c Log Message: make(1): clean up comments in suff.c, small refactorings In SuffParseTransform, the parameter names have been renamed to make the "side

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 12:36:20 UTC 2020 Modified Files: src/usr.bin/make: compat.c Log Message: make(1): clean up documentation for CompatInterrupt and Compat_Run To generate a diff of this commit: cvs rdiff -u -r1.133 -r1.134

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 13:38:48 UTC 2020 Modified Files: src/usr.bin/make: arch.c cond.c parse.c suff.c var.c Log Message: make(1): trust that Var_Parse never returns NULL That function is quite long, but all its return paths lead either to

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 10:12:06 UTC 2020 Modified Files: src/usr.bin/make: arch.c cond.c dir.c lst.c lst.h main.c meta.c suff.c Log Message: make(1): rename Lst_FindB back to Lst_Find The migration from "comparison function" to "match

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 10:41:13 UTC 2020 Modified Files: src/usr.bin/make: dir.c job.c lst.c lst.h main.c meta.c suff.c Log Message: make(1): rename LstNode functions to match their type To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 11:24:54 UTC 2020 Modified Files: src/usr.bin/make: make_malloc.c make_malloc.h parse.c suff.c var.c Log Message: make(1): add bmake_strsedup for duplicating a substring To generate a diff of this commit: cvs rdiff

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 12:20:17 UTC 2020 Modified Files: src/usr.bin/make: arch.c job.c job.h make.h parse.c Log Message: make(1): remove ReturnStatus, SUCCESS and FAILURE These are used in so few places now that it is easier to use a

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 12:39:32 UTC 2020 Modified Files: src/usr.bin/make: dir.c Log Message: make(1): clean up comments in dir.c To generate a diff of this commit: cvs rdiff -u -r1.123 -r1.124 src/usr.bin/make/dir.c Please note that

CVS commit: src/usr.bin/make

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 13:16:55 UTC 2020 Modified Files: src/usr.bin/make: main.c make.c meta.c suff.c var.c Log Message: make(1): trust that Var_Subst never returns NULL It really never does, and it doesn't even report errors. It just

CVS commit: src/usr.bin/make/unit-tests

2020-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 29 15:06:33 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: depsrc-ignore.exp depsrc-ignore.mk Log Message: make(1): add test for the special .IGNORE dependency source To generate a diff of this commit: cvs rdiff

<    1   2   3   4   5   6   7   8   9   10   >