Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
e6066cdd
...
e6066cdd59ed5e145759d1a912cb71c5bd92addd
authored
2004-06-28 22:39:32 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(struct _iterator): rewritten as a general-purpose iterator structure.
1 parent
8772fbd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
mailbox/include/iterator0.h
mailbox/include/iterator0.h
View file @
e6066cd
...
...
@@ -30,17 +30,21 @@ extern "C" {
struct
_iterator
{
struct
_iterator
*
next
;
/* Next iterator in the chain */
list_t
list
;
/* Owner list */
struct
list_data
*
cur
;
/* Current list item */
int
is_advanced
;
/* Is the item already advanced */
struct
_iterator
*
next_itr
;
/* Next iterator in the chain */
void
*
owner
;
/* Object whose contents is being iterated */
int
is_advanced
;
/* Is the iterator already advanced */
int
(
*
dup
)
(
void
**
ptr
,
void
*
owner
);
int
(
*
destroy
)
(
iterator_t
itr
,
void
*
owner
);
int
(
*
first
)
(
void
*
owner
);
int
(
*
next
)
(
void
*
owner
);
int
(
*
getitem
)
(
void
*
owner
,
void
**
pret
);
int
(
*
curitem_p
)
(
void
*
owner
,
void
*
item
);
int
(
*
finished_p
)
(
void
*
owner
);
};
#ifdef __cplusplus
}
#endif
extern
void
iterator_advance
(
iterator_t
iterator
,
struct
list_data
*
e
);
#endif
/* _ITERATOR0_H */
...
...
Please
register
or
sign in
to post a comment