summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2022-02-17 14:02:28 +0100
committerPhilipp Stephani <phst@google.com>2022-02-17 14:02:28 +0100
commite303cb18077538b5ec32e73ce8def958d40c361f (patch)
treeb9ab8095f93ce88b0bf29b10542bb96fab709a2c
parentb30ef0991915fbcab016a9485b1dece6f15f801c (diff)
downloademacs-e303cb18077538b5ec32e73ce8def958d40c361f.tar.gz
Fix indexing of module functions that return complex types.
Return types that consist of more than one word need to be enclosed in braces, see Info node `(texinfo) Typed Functions'. Otherwise they are indexed incorrectly. * doc/lispref/internals.texi (Module Values): Enclose multi-word return types in braces.
-rw-r--r--doc/lispref/internals.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/lispref/internals.texi b/doc/lispref/internals.texi
index 33664d949a2..39e26aaf8fb 100644
--- a/doc/lispref/internals.texi
+++ b/doc/lispref/internals.texi
@@ -1629,7 +1629,7 @@ This function returns the value of a Lisp float specified by
@var{arg}, as a C @code{double} value.
@end deftypefn
-@deftypefn Function struct timespec extract_time (emacs_env *@var{env}, emacs_value @var{arg})
+@deftypefn Function {struct timespec} extract_time (emacs_env *@var{env}, emacs_value @var{arg})
This function, which is available since Emacs 27, interprets @var{arg}
as an Emacs Lisp time value and returns the corresponding @code{struct
timespec}. @xref{Time of Day}. @code{struct timespec} represents a
@@ -1934,7 +1934,7 @@ garbage-collected. Don't run any expensive code in a finalizer,
because GC must finish quickly to keep Emacs responsive.
@end deftypefn
-@deftypefn Function void *get_user_ptr (emacs_env *@var{env}, emacs_value @var{arg})
+@deftypefn Function {void *}get_user_ptr (emacs_env *@var{env}, emacs_value @var{arg})
This function extracts the C pointer from the Lisp object represented
by @var{arg}.
@end deftypefn