summaryrefslogtreecommitdiffhomepage
path: root/scripts/getcls.awk
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/getcls.awk')
-rw-r--r--scripts/getcls.awk19
1 files changed, 11 insertions, 8 deletions
diff --git a/scripts/getcls.awk b/scripts/getcls.awk
index a37f927..f53dc14 100644
--- a/scripts/getcls.awk
+++ b/scripts/getcls.awk
@@ -1,18 +1,21 @@
function getcls(c)
{
- if (c == "-")
+ switch (c) {
+ case "-":
return "missing"
- if (c == "X")
+ case "X":
return "have"
- if (c == "*")
+ case "*":
return "nifc"
- if (c == "O")
+ case "O":
return "have-nifc"
- if (c == "@")
+ case "@":
return "have-proof"
- if (c == "?")
+ case "?":
return "unknown"
- if (c == "/")
+ case "/":
return "not-minted"
- return "error"
+ default:
+ return "error"
+ }
}