Mercurial > pidgin.yaz
comparison pidgin/plugins/perl/common/gtkmodule.h @ 24292:8282911d5e17
Build everything with the *_DISABLE_DEPRECATED flags set. This allows us
to detect when we're still using deprecated functions internally (and by
extension, when we've deprecated something we shouldn't have). In the
course of developing this changeset, I fixed a few such cases.
Given that the plan is to switch from PURPLE_HIDE_STRUCTS to
PURPLE_DISABLE_DEPRECATED as each struct is fully dealt with, this will
also ensure we have no regressions on the struct hiding work.
Deprecated functions are still available to the respective .c file, to
avoid missing prototype errors. Also, Perl and DBus undef the
*_DISABLE_DEPRECATED defines as appropriate so that deprecated functions
will still be exported to Perl plugins and via DBus. (Otherwise, we'd
be breaking backwards compatibility.)
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 30 Oct 2008 22:40:49 +0000 |
parents | e622745f6f42 |
children |
comparison
equal
deleted
inserted
replaced
24291:f52b94f3b6ca | 24292:8282911d5e17 |
---|---|
1 /* Allow the Perl code to see deprecated functions, so we can continue to | |
2 * export them to Perl plugins. */ | |
3 #undef PIDGIN_DISABLE_DEPRECATED | |
4 | |
1 typedef struct group *Pidgin__Group; | 5 typedef struct group *Pidgin__Group; |
2 | 6 |
3 #define group perl_group | 7 #define group perl_group |
4 | 8 |
5 #include <glib.h> | 9 #include <glib.h> |