Module Name: src Committed By: rillig Date: Fri Jul 31 19:50:44 UTC 2020
Modified Files: src/usr.bin/make: dir.c Log Message: make(1): refactor DirExpandCurly Separating the low-level parts into small functions reduces the need for summarizing comments between the code lines. Using a consistent naming scheme for the variables and expressive names makes the code easier to understand. The number of variables has increased from 7 to 11, their clearer names compensate for that, plus the fact that they come in triples (x, x_end, x_len). Placing the variables into appropriate registers and eliminating memory access is left as an exercise to the compiler. To generate a diff of this commit: cvs rdiff -u -r1.79 -r1.80 src/usr.bin/make/dir.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.