* [bug #23681] Function declarators with empty parentheses should not be used
@ 2008-06-23 11:45 Ludovic Courtès
2010-08-18 13:51 ` Ludovic Courtès
0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2008-06-23 11:45 UTC (permalink / raw)
To: Ludovic Courtès, bug-guile
URL:
<http://savannah.gnu.org/bugs/?23681>
Summary: Function declarators with empty parentheses should
not be used
Project: Guile
Submitted by: civodul
Submitted on: Monday 06/23/2008 at 11:45
Category: None
Severity: 4 - Important
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Hello,
In Guile 1.8 and earlier, `scm_c_define_gsubr ()', `gh_new_procedure ()' and
related functions take a function pointer as an argument, where the function
type uses empty parentheses (which means that the function can have any
prototype, provided the return type matches).
Function declarators with empty parentheses are not available in C++ [0] and
are an obsolescent feature as of C99 (Section 6.11.6); it also break when
GCC's `-Wstrict-prototypes' option is used [1].
Therefore, Guile's API should eventually (e.g., in the next major release) be
changed to use a different function pointer type. Hopefully, the change can
be made almost transparent for applications that use `guile-snarf'.
Thanks,
Ludovic.
[0] http://article.gmane.org/gmane.lisp.guile.user/6613
[1] http://thread.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/2118
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?23681>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug #23681] Function declarators with empty parentheses should not be used
2008-06-23 11:45 [bug #23681] Function declarators with empty parentheses should not be used Ludovic Courtès
@ 2010-08-18 13:51 ` Ludovic Courtès
2011-02-13 11:31 ` Ludovic Courtès
0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2010-08-18 13:51 UTC (permalink / raw)
To: Ludovic Courtès, bug-guile
Follow-up Comment #1, bug #23681 (project guile):
This also breaks C++:
http://lists.gnu.org/archive/html/guile-user/2010-07/msg00084.html .
Ludo’.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?23681>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug #23681] Function declarators with empty parentheses should not be used
2010-08-18 13:51 ` Ludovic Courtès
@ 2011-02-13 11:31 ` Ludovic Courtès
2011-02-13 13:54 ` Ludovic Courtès
0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2011-02-13 11:31 UTC (permalink / raw)
To: Ludovic Courtès, bug-guile
Update of bug #23681 (project guile):
Assigned to: None => civodul
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?23681>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug #23681] Function declarators with empty parentheses should not be used
2011-02-13 11:31 ` Ludovic Courtès
@ 2011-02-13 13:54 ` Ludovic Courtès
0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2011-02-13 13:54 UTC (permalink / raw)
To: Ludovic Courtès, bug-guile
Update of bug #23681 (project guile):
Status: None => Fixed
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #2:
Fix in commit be90d0b6f9e79bc882b2289bf0a5ea1b3c082b3c.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?23681>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-02-13 13:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-23 11:45 [bug #23681] Function declarators with empty parentheses should not be used Ludovic Courtès
2010-08-18 13:51 ` Ludovic Courtès
2011-02-13 11:31 ` Ludovic Courtès
2011-02-13 13:54 ` Ludovic Courtès
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).