summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark H Weaver <mhw@netris.org>2015-09-02 13:51:05 -0400
committerAndy Wingo <wingo@pobox.com>2016-05-22 19:42:13 +0200
commit3cf70e36f11b211fc2fa88bf4ecc59a6f8812bc3 (patch)
treefe305aca3d97fe517f01a437cefdb1cf977fe3ab
parentd77247b90b836e149b58e9efccdd9861a28a7576 (diff)
downloadguile-3cf70e36f11b211fc2fa88bf4ecc59a6f8812bc3.tar.gz
Fix uses of 'scm_gc_protect', which does not exist, in the manual.
* doc/ref/api-memory.texi (Garbage Collection Functions), doc/ref/libguile-concepts.texi (Garbage Collection): Change 'scm_gc_protect' --> 'scm_gc_protect_object'.
-rw-r--r--doc/ref/api-memory.texi4
-rw-r--r--doc/ref/libguile-concepts.texi6
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/ref/api-memory.texi b/doc/ref/api-memory.texi
index 0e37d16fc..a2a27e43b 100644
--- a/doc/ref/api-memory.texi
+++ b/doc/ref/api-memory.texi
@@ -1,6 +1,6 @@
@c -*-texinfo-*-
@c This is part of the GNU Guile Reference Manual.
-@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2009, 2010, 2012, 2013, 2014
+@c Copyright (C) 1996, 1997, 2000-2004, 2009, 2010, 2012-2016
@c Free Software Foundation, Inc.
@c See the file guile.texi for copying conditions.
@@ -36,7 +36,7 @@ explicitly. It is called automatically when appropriate.
Protects @var{obj} from being freed by the garbage collector, when it
otherwise might be. When you are done with the object, call
@code{scm_gc_unprotect_object} on the object. Calls to
-@code{scm_gc_protect}/@code{scm_gc_unprotect_object} can be nested, and
+@code{scm_gc_protect_object}/@code{scm_gc_unprotect_object} can be nested, and
the object remains protected until it has been unprotected as many times
as it was protected. It is an error to unprotect an object more times
than it has been protected. Returns the SCM object it was passed.
diff --git a/doc/ref/libguile-concepts.texi b/doc/ref/libguile-concepts.texi
index 9e2eb7503..9785f4d6f 100644
--- a/doc/ref/libguile-concepts.texi
+++ b/doc/ref/libguile-concepts.texi
@@ -1,7 +1,7 @@
@c -*-texinfo-*-
@c This is part of the GNU Guile Reference Manual.
-@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2010,
-@c 2011, 2013, 2014 Free Software Foundation, Inc.
+@c Copyright (C) 1996-1997, 2000-2005, 2010-2011, 2013-2016
+@c Free Software Foundation, Inc.
@c See the file guile.texi for copying conditions.
@node General Libguile Concepts
@@ -197,7 +197,7 @@ sections, function arguments or local variables on the C and Scheme
stacks, and values in machine registers. Other references to @code{SCM}
objects, such as those in other random data structures in the C heap
that contain fields of type @code{SCM}, can be made visible to the
-garbage collector by calling the functions @code{scm_gc_protect} or
+garbage collector by calling the functions @code{scm_gc_protect_object} or
@code{scm_permanent_object}. Collectively, these values form the ``root
set'' of garbage collection; any value on the heap that is referenced
directly or indirectly by a member of the root set is preserved, and all