scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 6435caae15b88328b6c1d1ef3b8a5b9fbecdd922
parent 2b8e013f61f498b919eef73b59fb8699804d95d2
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 24 Jan 2023 16:24:18 +0100

driver/posix: Collapse inittool() and settool() calls

As inittool returns its parameter it can be chained
with settools.

Diffstat:
Msrc/cmd/cc/posix/cc.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/cmd/cc/posix/cc.c b/src/cmd/cc/posix/cc.c @@ -633,8 +633,7 @@ operand: return failure; if (link && !failure) { - inittool(LD); - spawn(settool(LD, NULL, LAST_TOOL)); + spawn(settool(inittool(LD), NULL, LAST_TOOL)); validatetools(); }