mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-01 12:20:26 +02:00
(Booleans): Flag all function-like definitions as "C Functions".
This commit is contained in:
parent
c309617ce7
commit
c67fd6ec36
1 changed files with 5 additions and 5 deletions
|
@ -131,24 +131,24 @@ The @code{SCM} representation of the Scheme object @code{#t}.
|
||||||
The @code{SCM} representation of the Scheme object @code{#f}.
|
The @code{SCM} representation of the Scheme object @code{#f}.
|
||||||
@end deftypevr
|
@end deftypevr
|
||||||
|
|
||||||
@deftypefn {C Macro} int scm_is_true (SCM obj)
|
@deftypefn {C Function} int scm_is_true (SCM obj)
|
||||||
Return @code{0} if @var{obj} is @code{#f}, else return @code{1}.
|
Return @code{0} if @var{obj} is @code{#f}, else return @code{1}.
|
||||||
@end deftypefn
|
@end deftypefn
|
||||||
|
|
||||||
@deftypefn {C Macro} int scm_is_false (SCM obj)
|
@deftypefn {C Function} int scm_is_false (SCM obj)
|
||||||
Return @code{1} if @var{obj} is @code{#f}, else return @code{0}.
|
Return @code{1} if @var{obj} is @code{#f}, else return @code{0}.
|
||||||
@end deftypefn
|
@end deftypefn
|
||||||
|
|
||||||
@deftypefn {C Macro} scm_is_bool (SCM obj)
|
@deftypefn {C Function} int scm_is_bool (SCM obj)
|
||||||
Return @code{1} if @var{obj} is either @code{#t} or @code{#f}, else
|
Return @code{1} if @var{obj} is either @code{#t} or @code{#f}, else
|
||||||
return @code{0}.
|
return @code{0}.
|
||||||
@end deftypefn
|
@end deftypefn
|
||||||
|
|
||||||
@deftypefn {C Macro} SCM scm_from_bool (int val)
|
@deftypefn {C Function} SCM scm_from_bool (int val)
|
||||||
Return @code{#f} if @var{val} is @code{0}, else return @code{#t}.
|
Return @code{#f} if @var{val} is @code{0}, else return @code{#t}.
|
||||||
@end deftypefn
|
@end deftypefn
|
||||||
|
|
||||||
@deftypefn {C Macro} int scm_to_bool (SCM val)
|
@deftypefn {C Function} int scm_to_bool (SCM val)
|
||||||
Return @code{1} if @var{val} is @code{SCM_BOOL_T}, return @code{0}
|
Return @code{1} if @var{val} is @code{SCM_BOOL_T}, return @code{0}
|
||||||
when @var{val} is @code{SCM_BOOL_F}, else signal a `wrong type' error.
|
when @var{val} is @code{SCM_BOOL_F}, else signal a `wrong type' error.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue