api-translation.texi 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. @c -*-texinfo-*-
  2. @c This is part of the GNU Guile Reference Manual.
  3. @c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004
  4. @c Free Software Foundation, Inc.
  5. @c See the file guile.texi for copying conditions.
  6. @page
  7. @node Translation
  8. @section Support for Translating Other Languages
  9. [Describe translation framework.]
  10. @menu
  11. * Emacs Lisp Support:: Helper primitives for Emacs Lisp.
  12. @end menu
  13. @node Emacs Lisp Support
  14. @subsection Emacs Lisp Support
  15. @deffn {Scheme Procedure} nil-car x
  16. @deffnx {C Function} scm_nil_car (x)
  17. Return the car of @var{x}, but convert it to LISP nil if it
  18. is Scheme's end-of-list.
  19. @end deffn
  20. @deffn {Scheme Procedure} nil-cdr x
  21. @deffnx {C Function} scm_nil_cdr (x)
  22. Return the cdr of @var{x}, but convert it to LISP nil if it
  23. is Scheme's end-of-list.
  24. @end deffn
  25. @deffn {Scheme Procedure} nil-cons x y
  26. @deffnx {C Function} scm_nil_cons (x, y)
  27. Create a new cons cell with @var{x} as the car and @var{y} as
  28. the cdr, but convert @var{y} to Scheme's end-of-list if it is
  29. a Lisp nil.
  30. @end deffn
  31. @deffn {Scheme Procedure} nil-eq x y
  32. Compare @var{x} and @var{y} and return Lisp's t if they are
  33. @code{eq?}, return Lisp's nil otherwise.
  34. @end deffn
  35. @deffn {Scheme Procedure} null x
  36. @deffnx {C Function} scm_null (x)
  37. Return Lisp's @code{t} if @var{x} is nil in the LISP sense,
  38. return Lisp's nil otherwise.
  39. @end deffn
  40. @c Local Variables:
  41. @c TeX-master: "guile.texi"
  42. @c End: