summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-03-01 18:51:37 -0500
committerJakob Kaivo <jkk@ung.org>2019-03-01 18:51:37 -0500
commitcf342ad275c05edf177206b8931ebca8890f591a (patch)
tree2f4fa01306878a884465ee530f8dec84525ed5d8
parenta3dcafdf2fbc4445498b14d999c7680ed2329b54 (diff)
put *all* the distinct values in the array
-rwxr-xr-xdefs2d.awk2
-rw-r--r--signal.d1
2 files changed, 2 insertions, 1 deletions
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,
};