From cf342ad275c05edf177206b8931ebca8890f591a Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 1 Mar 2019 18:51:37 -0500 Subject: put *all* the distinct values in the array --- defs2d.awk | 2 +- signal.d | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defs2d.awk b/defs2d.awk index 1151185..23af3de 100755 --- a/defs2d.awk +++ b/defs2d.awk @@ -6,7 +6,7 @@ /distinct/ { printf("static int %s[] = {\n", $2); - for (i = 3; i < NF; i++) { + for (i = 3; i <= NF; i++) { #printf("#ifndef %s\n", $i); #printf("#error %s not defined\n", $i); #printf("#endif\n"); diff --git a/signal.d b/signal.d index 233e8b1..87ca380 100644 --- a/signal.d +++ b/signal.d @@ -6,4 +6,5 @@ static int signals[] = { SIGILL, SIGINT, SIGSEGV, + SIGTERM, }; -- cgit v1.2.1