diff options
author | Niels Möller <nisse@lysator.liu.se> | 2002-11-21 23:28:49 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2002-11-21 23:28:49 +0100 |
commit | 585b586aef8304b333d956e5c4658c882e1834dc (patch) | |
tree | f4d5505cde0eb7848994c0eb0fd4179bab3acbe9 /sexp.c | |
parent | 1283d5f6ace4cf8514e743c5563e07ecad5452cf (diff) | |
download | nettle-585b586aef8304b333d956e5c4658c882e1834dc.tar.gz |
(sexp_iterator_exit_lists): New function, #if:ed out for
now.
Rev: src/nettle/sexp.c:1.13
Rev: src/nettle/sexp.h:1.10
Diffstat (limited to 'sexp.c')
-rw-r--r-- | sexp.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -212,6 +212,22 @@ sexp_iterator_exit_list(struct sexp_iterator *iterator) return sexp_iterator_parse(iterator); } +#if 0 +/* What's a reasonable interface for this? */ +int +sexp_iterator_exit_lists(struct sexp_iterator *iterator, + unsigned level) +{ + assert(iterator->level >= level); + + while (iterator->level > level) + if (!sexp_iterator_exit_list(iterator)) + return 0; + + return 1; +} +#endif + const uint8_t * sexp_iterator_subexpr(struct sexp_iterator *iterator, unsigned *length) |