]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix indexing of module functions that return complex types.
authorPhilipp Stephani <phst@google.com>
Thu, 17 Feb 2022 13:02:28 +0000 (14:02 +0100)
committerPhilipp Stephani <phst@google.com>
Thu, 17 Feb 2022 13:02:28 +0000 (14:02 +0100)
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.

doc/lispref/internals.texi

index 33664d949a25af887556427abc48dccac4731f74..39e26aaf8fbc3f332621c9bf8186c7f01b898835 100644 (file)
@@ -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