doc: Update the section on SMOBs and memory management.
authorLudovic Courtès <ludo@gnu.org>
Mon, 14 Oct 2013 20:58:35 +0000 (22:58 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 14 Oct 2013 20:59:28 +0000 (22:59 +0200)
commitaaa9ef33d8ace7c3060fa05c9a8bc64434616476
treefb0115a318f0ce168c28c72a1867e6a1db308053
parentc61be45084d04b1db792b7e232f5bd77099f3287
doc: Update the section on SMOBs and memory management.

* doc/ref/libguile-smobs.texi (Describing a New Type): Only list 'print'
  and 'equalp' as compulsory.  Explain why 'mark' and 'free' are
  optional.
  (Creating Smob Instances): Remove paragraphs about allocations that
  might fail etc.  Use 'scm_gc_malloc_pointerless' for the pixel
  buffer.
  (Garbage Collecting Smobs): Explain when the 'mark' and 'free'
  functions are needed.
  (Garbage Collecting Simple Smobs): Remove.
doc/ref/libguile-smobs.texi