aboutsummaryrefslogtreecommitdiff
path: root/gencode.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-09-17 18:07:58 -0700
committerGuy Harris <guy@alum.mit.edu>2017-09-17 18:07:58 -0700
commit631428faa07b5e6d828228042e003a4384e349c7 (patch)
treef78db75cdc5b65e8747f7ff6c7022d3b50d6305b /gencode.h
parentd7bdf180b158a11d116bb8a77674200e72baff44 (diff)
Make it clearer where we're testing whether a value is unknown.
Add a #define of VAL_UNKNOWN for 0, and compare val[i] values against that.
Diffstat (limited to 'gencode.h')
-rw-r--r--gencode.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gencode.h b/gencode.h
index 70fe37ea..58828ecd 100644
--- a/gencode.h
+++ b/gencode.h
@@ -266,6 +266,11 @@ struct block {
int val[N_ATOMS];
};
+/*
+ * A value of 0 for val[i] means the value is unknown.
+ */
+#define VAL_UNKNOWN 0
+
struct arth {
struct block *b; /* protocol checks */
struct slist *s; /* stmt list */