HCoop
/
bpt
/
guile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
regenerate psyntax-pp
[bpt/guile.git]
/
libguile
/
throw.c
diff --git
a/libguile/throw.c
b/libguile/throw.c
index
4b3c75e
..
e3b5afa
100644
(file)
--- a/
libguile/throw.c
+++ b/
libguile/throw.c
@@
-322,7
+322,7
@@
scm_handle_by_proc_catching_all (void *handler_data, SCM tag, SCM throw_args)
int
scm_exit_status (SCM args)
{
int
scm_exit_status (SCM args)
{
- if (
!SCM_NULL_OR_NIL_P
(args))
+ if (
scm_is_pair
(args))
{
SCM cqa = SCM_CAR (args);
{
SCM cqa = SCM_CAR (args);
@@
-330,8
+330,14
@@
scm_exit_status (SCM args)
return (scm_to_int (cqa));
else if (scm_is_false (cqa))
return EXIT_FAILURE;
return (scm_to_int (cqa));
else if (scm_is_false (cqa))
return EXIT_FAILURE;
+ else
+ return EXIT_SUCCESS;
}
}
- return EXIT_SUCCESS;
+ else if (scm_is_null (args))
+ return EXIT_SUCCESS;
+ else
+ /* A type error. Strictly speaking we shouldn't get here. */
+ return EXIT_FAILURE;
}
}