summaryrefslogtreecommitdiff
path: root/sexp.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2002-11-21 23:28:49 +0100
committerNiels Möller <nisse@lysator.liu.se>2002-11-21 23:28:49 +0100
commit585b586aef8304b333d956e5c4658c882e1834dc (patch)
treef4d5505cde0eb7848994c0eb0fd4179bab3acbe9 /sexp.c
parent1283d5f6ace4cf8514e743c5563e07ecad5452cf (diff)
downloadnettle-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.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/sexp.c b/sexp.c
index 1e093485..e246211b 100644
--- a/sexp.c
+++ b/sexp.c
@@ -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)