pidgin/pidgin

Move g_return_if_fail to top of function and exit early.
release-2.x.y
2014-01-19, Mark Doliner
c3077dd1c5c7
Move g_return_if_fail to top of function and exit early.

This way the meat of the function isn't needlessly indented.
I think it's easier to read code structured this way.
/** @page plugin-signals Plugin Signals
@signals
@signal plugin-load
@signal plugin-unload
@endsignals
@see plugin.h
<hr>
@signaldef plugin-load
@signalproto
void (*plugin_load)(PurplePlugin *plugin);
@endsignalproto
@signaldesc
Emitted when a plugin is loaded.
@param plugin The plugin that was loaded.
@endsignaldef
@signaldef plugin-unload
@signalproto
void (*plugin_unload)(PurplePlugin *plugin);
@endsignalproto
@signaldesc
Emitted when a plugin is unloaded.
@param plugin The plugin that was unloaded.
@endsignaldef
*/
// vim: syntax=c.doxygen tw=75 et