DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(guile.info.gz) Equality predicates

Info Catalog (guile.info.gz) Type predicates (guile.info.gz) GH (guile.info.gz) Memory allocation and garbage collection
 
 19.10 Equality predicates
 =========================
 
 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(...)'.
 
  -- Function: int gh_eq_p (SCM x, SCM y)
      Returns 1 if X and Y are equal in the sense of Scheme's `eq?'
      predicate, 0 otherwise.
 
  -- Function: int gh_eqv_p (SCM x, SCM y)
      Returns 1 if X and Y are equal in the sense of Scheme's `eqv?'
      predicate, 0 otherwise.
 
  -- Function: int gh_equal_p (SCM x, SCM y)
      Returns 1 if X and Y are equal in the sense of Scheme's `equal?'
      predicate, 0 otherwise.
 
  -- Function: int gh_string_equal_p (SCM S1, SCM S2)
      Returns 1 if the strings S1 and S2 are equal, 0 otherwise.
 
  -- Function: int gh_null_p (SCM L)
      Returns 1 if L is an empty list or pair; 0 otherwise.
 
Info Catalog (guile.info.gz) Type predicates (guile.info.gz) GH (guile.info.gz) Memory allocation and garbage collection
automatically generated byinfo2html