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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'defs2d.awk') 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"); -- cgit v1.2.1