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
b39031cd
...
b39031cd770c8736463a022baf22e8f90a42eb5b
authored
2008-01-22 09:13:02 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bugfix
1 parent
459dc315
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
examples/listop.c
mailbox/testsuite/mailbox/list.exp
examples/listop.c
View file @
b39031c
...
...
@@ -253,6 +253,7 @@ shell (mu_list_t list)
mu_iterator_t
itr
[
NITR
];
int
rc
;
memset
(
&
itr
,
0
,
sizeof
itr
);
num
=
0
;
while
(
1
)
{
...
...
@@ -261,6 +262,14 @@ shell (mu_list_t list)
int
argc
;
char
**
argv
;
if
(
!
itr
[
num
])
{
rc
=
mu_list_get_iterator
(
list
,
&
itr
[
num
]);
if
(
rc
)
lperror
(
"mu_list_get_iterator"
,
rc
);
mu_iterator_first
(
itr
[
num
]);
}
rc
=
mu_iterator_current
(
itr
[
num
],
(
void
**
)
&
text
);
if
(
rc
)
lperror
(
"mu_iterator_current"
,
rc
);
...
...
mailbox/testsuite/mailbox/list.exp
View file @
b39031c
# -*- tcl -*-
# This file is part of Mailutils testsuite.
# Copyright (C
)
2003, 2005, 2007 Free Software Foundation
# Copyright (C
)
2003, 2005, 2007
, 2008
Free Software Foundation
#
# This program is free software
;
you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -63,6 +63,7 @@ prompt_text "tre"
mailbox_prog_test
"next 2"
prompt_iterator 1
prompt_text
"en"
mailbox_prog_test
"iter 1"
prompt_text
"to"
...
...
Please
register
or
sign in
to post a comment