diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-08-14 21:12:31 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-08-14 21:12:31 -0700 |
commit | 63704bd63b83a524215cefd0be3f72282c4378d7 (patch) | |
tree | 82780651d1f7e3c3b386ebaa1f1d65d2284d6e31 /lib.h | |
parent | 70ee17726d2c419c049ad87098e61a73bcd14766 (diff) | |
download | txr-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.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |