| History log of /src/tests/usr.bin/mkdep |
| Revision | Date | Author | Comments |
| 1.3 | 20-Aug-2021 |
rillig | mkdep: avoid memory allocation in findcc
This change takes the idea of handling strings as pairs in the form (start, len) by Robert Elz from https://mail-index.netbsd.org/source-changes-d/2021/08/20/msg013427.html and expands it by avoiding one more memory allocation, for iterating the PATH environment variable.
No functional change.
|
| 1.2 | 11-Aug-2021 |
rillig | tests/mkdep: test findcc
This function is used by both mkdep and lint.
|
| 1.1 | 30-May-2011 |
njoly | Add testcase for PR bin/45004, to exercize suffixes lists for mkdep(1).
|
| 1.1 | 11-Aug-2021 |
rillig | tests/mkdep: test findcc
This function is used by both mkdep and lint.
|
| 1.3 | 20-Aug-2021 |
rillig | mkdep: avoid memory allocation in findcc
This change takes the idea of handling strings as pairs in the form (start, len) by Robert Elz from https://mail-index.netbsd.org/source-changes-d/2021/08/20/msg013427.html and expands it by avoiding one more memory allocation, for iterating the PATH environment variable.
No functional change.
|
| 1.2 | 20-Aug-2021 |
rillig | mkdep: make argument of findcc const
Previously, findcc modified its argument string, even though it had been declared as 'const char *'. This triggered a lint warning that "strchr effectively discards 'const char *' from argument", in fact, this code caused the lint check to be implemented in the first place.
The first attempt at fixing it by removing the 'const' from the parameter type was a bad idea since it made the API of that function more complicated.
Revert back to making the parameter a 'const char *' and duplicate that string internally as necessary. Add a few more tests for absolute pathnames since these had been missing before. There are no tests yet for snprintf with too long strings, but the current change does not modify that part of the code.
|
| 1.1 | 11-Aug-2021 |
rillig | tests/mkdep: test findcc
This function is used by both mkdep and lint.
|
| 1.4 | 26-Aug-2012 |
jmmv | Add a new "-P prefix" option to mkdep(1).
This option prepends the string given in prefix to every target filename. This is useful for programs that have source files in multiple subdirectories and a single Makefile that references all of them explicitly (without using the VPATH functionality because there can be files with the same name in each subdirectory).
|
| 1.3 | 14-Jun-2011 |
njoly | branches: 1.3.2; mkdep(1) needs cc(1). Make testcase check for them.
|
| 1.2 | 31-May-2011 |
njoly | branches: 1.2.2; Adjust testcase for recent changes. - suffixes output order is now reversed. - remove expected failure for empty list.
|
| 1.1 | 30-May-2011 |
njoly | Add testcase for PR bin/45004, to exercize suffixes lists for mkdep(1).
|
| 1.2.2.1 | 23-Jun-2011 |
cherry | Catchup with rmind-uvmplock merge.
|
| 1.3.2.1 | 30-Oct-2012 |
yamt | sync with head
|