Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
585b586a
Commit
585b586a
authored
Nov 21, 2002
by
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
sexp.c
View file @
585b586a
...
...
@@ -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
)
...
...
sexp.h
View file @
585b586a
...
...
@@ -77,6 +77,14 @@ sexp_iterator_enter_list(struct sexp_iterator *iterator);
int
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
* sexp_iterator_next. */
const
uint8_t
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment