summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-08-14 21:12:31 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-08-14 21:12:31 -0700
commit63704bd63b83a524215cefd0be3f72282c4378d7 (patch)
tree82780651d1f7e3c3b386ebaa1f1d65d2284d6e31 /lib.h
parent70ee17726d2c419c049ad87098e61a73bcd14766 (diff)
downloadtxr-63704bd63b83a524215cefd0be3f72282c4378d7.tar.gz
txr-63704bd63b83a524215cefd0be3f72282c4378d7.tar.bz2
txr-63704bd63b83a524215cefd0be3f72282c4378d7.zip
seq_iter: remove pointless one-member union.
* lib.h (struct seq_iter): union ul with just one member replaced by that member itself. * lib.c (seq_iter_get_vec, seq_iter_peek_vec, seq_iter_init): refer to it->len instead of it->ul.len.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib.h b/lib.h
index 92ae34df..c7296b7b 100644
--- a/lib.h
+++ b/lib.h
@@ -375,9 +375,7 @@ typedef struct seq_iter {
val iter;
cnum index;
} ui;
- union {
- cnum len;
- } ul;
+ cnum len;
int (*get)(struct seq_iter *, val *pval);
int (*peek)(struct seq_iter *, val *pval);
} seq_iter_t;