[Pidgin] #2524: G_GNUC_NULL_TERMINATED should exist in purple include for plugins
Pidgin
trac at pidgin.im
Sun Aug 12 13:01:58 EDT 2007
#2524: G_GNUC_NULL_TERMINATED should exist in purple include for plugins
--------------------------+-------------------------------------------------
Reporter: rageboy | Type: defect
Status: new | Priority: minor
Component: pidgin (gtk) | Version: 2.1.0
Keywords: | Pending: 0
--------------------------+-------------------------------------------------
Reading the basic how-to, there's a section that mentions all plugins
should have the following code block if they don't compile:
{{{
#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 */
}}}
Wouldn't it make more sense just to put that in something like plugin.h
which is included by all plugins anyway? Then the separate plugins won't
need to put it in themselves.
--
Ticket URL: <http://developer.pidgin.im/ticket/2524>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list