Module Name: src Committed By: rillig Date: Thu Sep 24 08:23:29 UTC 2020
Modified Files: src/usr.bin/make: lst.c lst.h Log Message: make(1): make the API of the List partially public Accessing the fields List.first, List.last, ListNode.prev, ListNode.next and ListNode.datum in read-only mode should be more efficient than a whole function call. All modifications to the lists or their nodes must still happen via function calls. This change reduces the code size, makes the code faster to execute and allows Lst_ForEach to be written inline without the visual overhead of function calls. To generate a diff of this commit: cvs rdiff -u -r1.69 -r1.70 src/usr.bin/make/lst.c cvs rdiff -u -r1.65 -r1.66 src/usr.bin/make/lst.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.