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
ebf199fb
...
ebf199fb6d603c14605ed8f1ac7c03933528d601
authored
2001-09-08 10:32:38 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
handle #f when printing mailbox object
1 parent
49f791dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
libmu_scm/mu_mailbox.c
libmu_scm/mu_mailbox.c
View file @
ebf199f
...
...
@@ -58,18 +58,26 @@ mu_scm_mailbox_print (SCM mailbox_smob, SCM port, scm_print_state * pstate)
scm_puts
(
"#<mailbox "
,
port
);
p
=
url_to_string
(
url
);
if
(
p
)
if
(
mailbox_smob
==
SCM_BOOL_F
)
{
char
buf
[
64
];
scm_puts
(
p
,
port
);
snprintf
(
buf
,
sizeof
(
buf
),
" (%d)"
,
count
);
scm_puts
(
buf
,
port
);
/* mu_mailbox.* functions may return #f */
scm_puts
(
"#f"
,
port
);
}
else
scm_puts
(
"uninitialized"
,
port
);
{
p
=
url_to_string
(
url
);
if
(
p
)
{
char
buf
[
64
];
scm_puts
(
p
,
port
);
snprintf
(
buf
,
sizeof
(
buf
),
" (%d)"
,
count
);
scm_puts
(
buf
,
port
);
}
else
scm_puts
(
"uninitialized"
,
port
);
}
scm_puts
(
">"
,
port
);
return
1
;
...
...
Please
register
or
sign in
to post a comment