scc

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

commit ad4c907b4fa78b5b6e884e28945e6b14cf9eced2
parent 93439757a0fddb65cda02ffe6ff97365cdc68583
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 19 Jan 2024 13:33:07 +0100

make: Skip leading spaces in command lines

Leading spaces in command lines can hide modifiers characters
like @, - or +.

Diffstat:
Msrc/cmd/make/parser.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/cmd/make/parser.c b/src/cmd/make/parser.c @@ -706,6 +706,8 @@ readcmd(void) int n, c; char *line; + skipspaces(); + n = 0; line = NULL; while ((c = nextc()) != EOF) {