scc

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

commit 6fb283ecec245963ec4afa4f7a0b09d4479dcdf9
parent 7db5fecc884b37f628b2948e6c49a80a26e8a2c5
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 15 Sep 2021 07:03:15 +0200

cc: Small space fixes

Diffstat:
Msrc/cmd/cc/posix/cc.c | 20++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/cmd/cc/posix/cc.c b/src/cmd/cc/posix/cc.c @@ -11,12 +11,12 @@ #define _POSIX_C_SOURCE 200809L #undef _ANSI_SOURCE +#include <fcntl.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include <errno.h> -#include <fcntl.h> #include <limits.h> #include <signal.h> #include <stdio.h> @@ -53,15 +53,15 @@ static struct tool { int in, out, init; pid_t pid; } tools[] = { - [CC1] = { .cmd = "cc1" }, - [TEEIR] = { .bin = "tee", .cmd = "tee", }, - [CC2] = { .cmd = "cc2" }, - [TEEQBE] = { .bin = "tee", .cmd = "tee", }, - [QBE] = { .bin = "qbe", .cmd = "qbe", }, - [TEEAS] = { .bin = "tee", .cmd = "tee", }, - [AS] = { .bin = "as", .cmd = "as", }, - [LD] = { .bin = "ld", .cmd = "ld", }, - [STRIP] = { .bin = "strip", .cmd = "strip", }, + [CC1] = {.cmd = "cc1"}, + [TEEIR] = {.bin = "tee", .cmd = "tee"}, + [CC2] = {.cmd = "cc2"}, + [TEEQBE] = {.bin = "tee", .cmd = "tee"}, + [QBE] = {.bin = "qbe", .cmd = "qbe"}, + [TEEAS] = {.bin = "tee", .cmd = "tee"}, + [AS] = {.bin = "as", .cmd = "as"}, + [LD] = {.bin = "ld", .cmd = "ld"}, + [STRIP] = {.bin = "strip", .cmd = "strip"}, }; char *argv0;