Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dmitry Baryshkov
nettle
Commits
585b586a
Commit
585b586a
authored
22 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
(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
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
sexp.c
+16
-0
16 additions, 0 deletions
sexp.c
sexp.h
+8
-0
8 additions, 0 deletions
sexp.h
with
24 additions
and
0 deletions
sexp.c
+
16
−
0
View file @
585b586a
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
sexp.h
+
8
−
0
View file @
585b586a
...
@@ -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
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment