[Pidgin] #2524: G_GNUC_NULL_TERMINATED should exist in purple include for plugins
Pidgin
trac at pidgin.im
Wed Aug 22 18:10:51 EDT 2007
#2524: G_GNUC_NULL_TERMINATED should exist in purple include for plugins
---------------------------+------------------------------------------------
Reporter: rageboy | Owner:
Type: defect | Status: new
Priority: minor | Milestone:
Component: pidgin (gtk) | Version: 2.1.0
Resolution: | Keywords:
Pending: 0 |
---------------------------+------------------------------------------------
Comment (by sadrul):
How about we have a libpurple/purple.h, which has this define, and also
includes all the other header files, so that plugins can just do away with
"#include <purple.h>" (much like "#include <gtk/gtk.h>" for GTK+ apps).
So the purple.h would look like:
{{{
#include <glib.h>
#ifndef G_GNUC_NULL_TERMINATED
# if __GNUC__ >= 4
# define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__))
# else
# define G_GNUC_NULL_TERMINATED
# endif /* __GNUC__ >= 4 */
#endif /* G_GNUC_NULL_TERMINATED */
#include <account.h>
#include <blist.h>
...
}}}
--
Ticket URL: <http://developer.pidgin.im/ticket/2524#comment:1>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list