Now
MAIN commitmail json YAML
src/usr.bin/make/buf.c@1.48
/
diff
/
nxr@1.48
src/usr.bin/make/buf.h@1.39 / diff / nxr@1.39
src/usr.bin/make/cond.c@1.254 / diff / nxr@1.254
src/usr.bin/make/dir.c@1.265 / diff / nxr@1.265
src/usr.bin/make/for.c@1.139 / diff / nxr@1.139
src/usr.bin/make/main.c@1.518 / diff / nxr@1.518
src/usr.bin/make/parse.c@1.534 / diff / nxr@1.534
src/usr.bin/make/var.c@1.784 / diff / nxr@1.784
src/usr.bin/make/buf.h@1.39 / diff / nxr@1.39
src/usr.bin/make/cond.c@1.254 / diff / nxr@1.254
src/usr.bin/make/dir.c@1.265 / diff / nxr@1.265
src/usr.bin/make/for.c@1.139 / diff / nxr@1.139
src/usr.bin/make/main.c@1.518 / diff / nxr@1.518
src/usr.bin/make/parse.c@1.534 / diff / nxr@1.534
src/usr.bin/make/var.c@1.784 / diff / nxr@1.784
make(1): split Buf_Destroy into Buf_Done and Buf_DoneData
In all cases except one, the boolean argument to Buf_Destroy was
constant. Removing that argument by splitting the function into two
separate functions makes the intention clearer on the call site. It
also removes the possibility for using the return value of Buf_Done,
which would have made no sense.
The function Buf_Done now pairs with Buf_Init, just as in HashTable and
Lst.
Even though Buf_Done is essentially a no-op, it is kept as a function,
both for symmetry with Buf_Init and for clearing the Buffer members
after use (this will be done only in CLEANUP mode, in a follow-up
commit).
In all cases except one, the boolean argument to Buf_Destroy was
constant. Removing that argument by splitting the function into two
separate functions makes the intention clearer on the call site. It
also removes the possibility for using the return value of Buf_Done,
which would have made no sense.
The function Buf_Done now pairs with Buf_Init, just as in HashTable and
Lst.
Even though Buf_Done is essentially a no-op, it is kept as a function,
both for symmetry with Buf_Init and for clearing the Buffer members
after use (this will be done only in CLEANUP mode, in a follow-up
commit).