aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/str.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge bmake-20250707Simon J. Gerraty2025-07-191-3/+6
| | | | Merge commit '3d772e596c1acf76f555c1f51fd8d834e56b0c35'
* Merge bmake-20240711Simon J. Gerraty2024-07-201-5/+7
| | | | Merge commit '84691af93185c692058ba55fa81a04103f5bf71b'
* Merge bmake-20240430Simon J. Gerraty2024-05-031-23/+7
| | | | Merge commit '507951f55039f9d1ceae507d510f8cb68225fbc5'
* Update to bmake-20240108Simon J. Gerraty2024-01-141-40/+37
|
* Merge bmake-20230622Simon J. Gerraty2023-06-271-39/+77
| | | | Merge commit '3e39ce563b9ba25883e5aa37d9799eda9e57c1e0'
* Merge/update to bmake-20230126Simon J. Gerraty2023-01-281-4/+4
|
* Update to bmake-20220724Simon J. Gerraty2022-07-261-58/+39
| | | | Merge commit '308a28d6cd2e87028e535eabccb89a9dc2fd9515'
* Merge bmake-20220330Simon J. Gerraty2022-04-031-4/+4
| | | | Merge commit 'a052cb432096794be5070dc68a2b302eaf5a4783'
* Merge bmake-20220204Simon J. Gerraty2022-02-051-2/+27
|
* Merge bmake-20211212Simon J. Gerraty2021-12-181-5/+4
| | | | commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'
* Merge commit 'ee914ef902ae018bd4f67192832120f9bf05651f' into new_mergeSimon J. Gerraty2021-06-251-39/+62
|
* Merge bmake-20210206Simon J. Gerraty2021-02-111-8/+14
| | | | | | | | | | | Changes of interest o unit-tests: use private TMPDIR to avoid errors from other users o avoid strdup in mkTempFile o always use vfork o job.c: do not create empty shell files in jobs mode reduce unnecessary calls to waitpid o cond.c: fix debug output for comparison operators in conditionals
* Merge bmake-20210110Simon J. Gerraty2021-01-141-7/+8
| | | | | | | | | | | | | | | | | | | | | Quite a lot of churn on style, but lots of good work refactoring complicated functions and lots more unit-tests. Thanks mostly to rillig at NetBSD Some interesting entries from ChangeLog o .MAKE.{UID,GID} represent uid and gid running make. o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable checks in InitObjdir. Explicit .OBJDIR target always allows read-only directory. o add more unit tests for META MODE Merge commit '8e11a9b4250be3c3379c45fa820bff78d99d5946' into main Change-Id: I464fd4c013067f0915671c1ccc96d2d8090b2b9c
* Merge bmake-20201117Simon J. Gerraty2020-11-201-33/+27
| | | | | | | | | | | | | | | o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable checks in InitObjdir. Explicit .OBJDIR target always allows read-only directory. o More code cleanup and refactoring. o More unit tests MFC after: 1 week Notes: svn path=/head/; revision=367863
* Update to bmake-20201101Simon J. Gerraty2020-11-071-56/+6
| | | | | | | | | | | | | | Lots of new unit-tests increase code coverage. Lots of refactoring, cleanup and simlpification to reduce code size. Fixes for Bug 223564 and 245807 Updates to dirdeps.mk and meta2deps.py Notes: svn path=/head/; revision=367465
* Update to bmake-20200902Simon J. Gerraty2020-09-051-173/+68
| | | | | | | | | | | | | | | | | | | | Lots of code refactoring, simplification and cleanup. Lots of new unit-tests providing much higher code coverage. All courtesy of rillig at netbsd. Other significant changes: o new read-only variable .SHELL which provides the path of the shell used to run scripts (as defined by the .SHELL target). o variable parsing detects more errors. o new debug option -dl: LINT mode, does the equivalent of := for all variable assignments so that file and line number are reported for variable parse errors. Notes: svn path=/head/; revision=365366
* Update to bmake-20200710Simon J. Gerraty2020-07-121-85/+74
| | | | | | | | | | | | Key changes include reduced noise at end of failed build log and avoid evaluation of unnecessary terms in conditionals. In META MODE; a target flagged .META is out-of-date if meta file is missing MFC after: 1 week Notes: svn path=/head/; revision=363117
* Revert r363031Simon J. Gerraty2020-07-091-74/+85
| | | | Notes: svn path=/head/; revision=363035
* Update to bmake-20200704Simon J. Gerraty2020-07-081-85/+74
| | | | | | | | | | Key changes include reduced noise at end of failed build log and avoid evaluation of unnecessary terms in conditionals. MFC after: 1 week Notes: svn path=/head/; revision=363031
* Merge bmake-20200517Simon J. Gerraty2020-05-201-64/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes since 20181221 are mostly portability related hence the large gap in versions imported. There are however some bug fixes, and a rework of filemon handling. In NetBSD make/filemon/filemon_ktrace.c allows use of fktrace and elimination of filemon(4) which has not had the TLC it needs. FreeBSD filemon(4) is in much better shape, so bmake/filemon/filemon_dev.c allows use of that, with a bit less overhead than the ktrace model. Summary of changes from ChangeLog o str.c: empty string does not match % pattern plus unit-test changes o var.c: import handling of old sysV style modifier using '%' o str.c: refactor brk_string o meta.c: meta_oodate, CHECK_VALID_META is too aggressive for CMD a blank command is perfectly valid. o meta.c: meta_oodate, check for corrupted meta file earlier and more often. * meta.c: meta_compat_parent check for USE_FILEMON patch from Soeren Tempel o meta.c: fix compat mode, need to call meta_job_output() o job.c: extra fds for meta mode not needed if using filemon_dev o meta.c: avoid passing NULL to filemon_*() when meta_needed() returns FALSE. o filemon/filemon_{dev,ktrace}.c: allow selection of filemon implementation. filemon_dev.c uses the kernel module while filemon_ktrace.c leverages the fktrace api available in NetBSD. filemon_ktrace.c can hopefully form the basis for adding support for other tracing mechanisms such as strace on Linux. o meta.c: when target is out-of-date per normal make rules record value of .OODATE in meta file. o parse.c: don't pass NULL to realpath(3) some versions cannot handle it. o parse.c: ParseDoDependency: free paths rather than assert plus more unit-tests Notes: svn path=/head/; revision=361307
* Merge bmake-20170510Simon J. Gerraty2017-05-101-3/+3
| | | | | | | No-op change other than version update. Notes: svn path=/head/; revision=318163
* Str_Match: fix closure tests for [^] and add unit-test.Simon J. Gerraty2017-04-211-3/+6
| | | | Notes: svn path=/head/; revision=317274
* Update to bmake 20170413Simon J. Gerraty2017-04-151-5/+14
| | | | Notes: svn path=/head/; revision=316949
* Merge bmake-20160512Simon J. Gerraty2016-05-201-4/+4
| | | | Notes: svn path=/head/; revision=300313
* Update to bmake-20140620Simon J. Gerraty2014-07-081-4/+10
| | | | | | | | | Main change is detection of malformed variable references. Reviewed by: obrien Notes: svn path=/head/; revision=268437
* Merge bmake-20120831 from vendor/NetBSD/bmake/dist.Marcel Moolenaar2012-10-031-0/+508
Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg Notes: svn path=/head/; revision=241146