Module Name: src Committed By: rillig Date: Sun Oct 4 14:40:13 UTC 2020
Modified Files: src/usr.bin/make: nonints.h parse.c Log Message: make(1): don't modify the given line during Parse_DoVar Placing null characters all over the line made the code hard to understand. The null characters were placed for top-level whitespace as well as the operator. Working with a read-only line makes it easier to inspect the parsing state during debugging. This change involves an additional bmake_malloc for each variable name. This will be compensated later by extending the API of the Var module to also accept a pair of pointers (start, end) as the variable name. To generate a diff of this commit: cvs rdiff -u -r1.135 -r1.136 src/usr.bin/make/nonints.h cvs rdiff -u -r1.352 -r1.353 src/usr.bin/make/parse.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.