unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#17869: wrong return type for void scm_c_export(const char *name, ...) in docs
@ 2014-06-29 11:55 Alexei Matveev
  2014-10-01 23:15 ` Mark H Weaver
  0 siblings, 1 reply; 2+ messages in thread
From: Alexei Matveev @ 2014-06-29 11:55 UTC (permalink / raw)
  To: 17869

[-- Attachment #1: Type: text/plain, Size: 1002 bytes --]

Dear Guile Developers,

The reference guide documents the wrong return type for
the vararg function

  void scm_c_export(const char *name, ...)

saying it is SCM. Consider applying the diff below.

Also, again vararg functions are troublesome (impossible)
to call from Fortran and, maybe other languages, please dont
let them proliferate in Guile API.

Alexei

alexei@ThinkPad:~/devel/guile$ git diff
diff --git a/doc/ref/api-modules.texi b/doc/ref/api-modules.texi
index 286a37d..e2dc65f 100644
--- a/doc/ref/api-modules.texi
+++ b/doc/ref/api-modules.texi
@@ -1053,7 +1053,7 @@ module, as with @code{(use-modules @var{name})}.  The
name is
 interpreted as for @code{scm_c_define_module}.
 @end deftypefn

-@deftypefn {C Function} SCM scm_c_export ({const char *}@var{name}, ...)
+@deftypefn {C Function} void scm_c_export ({const char *}@var{name}, ...)
 Add the bindings designated by @var{name}, ... to the public interface
 of the current module.  The list of names is terminated by
 @code{NULL}.

[-- Attachment #2: Type: text/html, Size: 1965 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#17869: wrong return type for void scm_c_export(const char *name, ...) in docs
  2014-06-29 11:55 bug#17869: wrong return type for void scm_c_export(const char *name, ...) in docs Alexei Matveev
@ 2014-10-01 23:15 ` Mark H Weaver
  0 siblings, 0 replies; 2+ messages in thread
From: Mark H Weaver @ 2014-10-01 23:15 UTC (permalink / raw)
  To: Alexei Matveev; +Cc: 17869-done

Fixed in b1451ad859183ae48c624d19ec144306bd2d3e3a on the stable-2.0
branch.  It will be in 2.0.12.

     Thanks!
       Mark





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-01 23:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-29 11:55 bug#17869: wrong return type for void scm_c_export(const char *name, ...) in docs Alexei Matveev
2014-10-01 23:15 ` Mark H Weaver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).