GNU bug report logs - #17869
wrong return type for void scm_c_export(const char *name, ...) in docs

Previous Next

Package: guile;

Reported by: Alexei Matveev <alexei.matveev <at> gmail.com>

Date: Sun, 29 Jun 2014 11:56:02 UTC

Severity: normal

Done: Mark H Weaver <mhw <at> netris.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17869 in the body.
You can then email your comments to 17869 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#17869; Package guile. (Sun, 29 Jun 2014 11:56:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alexei Matveev <alexei.matveev <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Sun, 29 Jun 2014 11:56:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alexei Matveev <alexei.matveev <at> gmail.com>
To: bug-guile <at> gnu.org
Subject: wrong return type for void scm_c_export(const char *name, ...) in docs
Date: Sun, 29 Jun 2014 13:55:13 +0200
[Message part 1 (text/plain, inline)]
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 <at> 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}.
[Message part 2 (text/html, inline)]

Reply sent to Mark H Weaver <mhw <at> netris.org>:
You have taken responsibility. (Wed, 01 Oct 2014 23:16:02 GMT) Full text and rfc822 format available.

Notification sent to Alexei Matveev <alexei.matveev <at> gmail.com>:
bug acknowledged by developer. (Wed, 01 Oct 2014 23:16:03 GMT) Full text and rfc822 format available.

Message #10 received at 17869-done <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: Alexei Matveev <alexei.matveev <at> gmail.com>
Cc: 17869-done <at> debbugs.gnu.org
Subject: Re: bug#17869: wrong return type for void scm_c_export(const char
 *name, ...) in docs
Date: Wed, 01 Oct 2014 19:15:06 -0400
Fixed in b1451ad859183ae48c624d19ec144306bd2d3e3a on the stable-2.0
branch.  It will be in 2.0.12.

     Thanks!
       Mark




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 30 Oct 2014 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 152 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.