summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2017-03-01 21:45:14 +0100
committerAndy Wingo <wingo@pobox.com>2017-03-01 21:45:14 +0100
commitc896af55d40164f7a15cdeaf1f39841faeb37874 (patch)
treecae297a27102799f95b426fede62951284a9c85f
parentc2ab4a3b22e4d995a1365f89e2eb426c559dc64d (diff)
downloadguile-c896af55d40164f7a15cdeaf1f39841faeb37874.tar.gz
Remove useless subsection from hooks documentation
* doc/ref/api-utility.texi (Hook Reference): Remove useless "handling hooks from C" section that was also generating warnings.
-rw-r--r--doc/ref/api-utility.texi14
1 files changed, 0 insertions, 14 deletions
diff --git a/doc/ref/api-utility.texi b/doc/ref/api-utility.texi
index e2b60e2f9..d82d31a48 100644
--- a/doc/ref/api-utility.texi
+++ b/doc/ref/api-utility.texi
@@ -612,20 +612,6 @@ Return 1 if @var{x} is a Scheme-level hook, 0 otherwise.
@end deftypefn
-@subsubsection Handling Scheme-level hooks from C code
-
-Here is an example of how to handle Scheme-level hooks from C code using
-the above functions.
-
-@example
-if (scm_is_true (scm_hook_p (obj)))
- /* handle Scheme-level hook using C functions */
- scm_reset_hook_x (obj);
-else
- /* do something else (obj is not a hook) */
-@end example
-
-
@node C Hooks
@subsubsection Hooks For C Code.