Skip to content
Snippets Groups Projects
Commit 585b586a authored by Niels Möller's avatar Niels Möller
Browse files

(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
parent 1283d5f6
Branches
Tags
No related merge requests found
...@@ -212,6 +212,22 @@ sexp_iterator_exit_list(struct sexp_iterator *iterator) ...@@ -212,6 +212,22 @@ sexp_iterator_exit_list(struct sexp_iterator *iterator)
return sexp_iterator_parse(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 * const uint8_t *
sexp_iterator_subexpr(struct sexp_iterator *iterator, sexp_iterator_subexpr(struct sexp_iterator *iterator,
unsigned *length) unsigned *length)
......
...@@ -77,6 +77,14 @@ sexp_iterator_enter_list(struct sexp_iterator *iterator); ...@@ -77,6 +77,14 @@ sexp_iterator_enter_list(struct sexp_iterator *iterator);
int int
sexp_iterator_exit_list(struct sexp_iterator *iterator); sexp_iterator_exit_list(struct sexp_iterator *iterator);
#if 0
/* Skips out of as many lists as necessary to get back to the given
* level. */
int
sexp_iterator_exit_lists(struct sexp_iterator *iterator,
unsigned level);
#endif
/* Gets start and length of the current subexpression. Implies /* Gets start and length of the current subexpression. Implies
* sexp_iterator_next. */ * sexp_iterator_next. */
const uint8_t * const uint8_t *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment