bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #23681] Function declarators with empty parentheses should not be u


From: Ludovic Courtès
Subject: [bug #23681] Function declarators with empty parentheses should not be used
Date: Mon, 23 Jun 2008 11:45:46 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080222 BonEcho/2.0.0.12

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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]