Next: Memory allocation and garbage collection, Previous: Type predicates, Up: GH
These C functions mirror Scheme's equality predicate procedures with one
important difference. The C routines return C boolean values (0 and 1)
instead of SCM_BOOL_T
and SCM_BOOL_F
.
The Scheme notational convention of putting a ?
at the end of
predicate procedure names is mirrored in C by placing _p
at the
end of the procedure. For example, (equal? ...)
maps to
gh_equal_p(...)
.
Returns 1 if x and y are equal in the sense of Scheme's
eq?
predicate, 0 otherwise.
Returns 1 if x and y are equal in the sense of Scheme's
eqv?
predicate, 0 otherwise.
Returns 1 if x and y are equal in the sense of Scheme's
equal?
predicate, 0 otherwise.