[Gimp-developer] Success-return-value

2010-04-22 Thread Oliver Bandel
Hello,

is there a convention for return values in Gimp,
which says: on success return TRUE or a value,
and on fauilure FALSE or NULL?

Or can it be different at different sources,
rather be a taste of the one who developped something?


Ciao,
oliver

___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Success-return-value

2010-04-22 Thread Sven Neumann
On Thu, 2010-04-22 at 15:46 +0200, Oliver Bandel wrote:

 is there a convention for return values in Gimp,
 which says: on success return TRUE or a value,
 and on failure FALSE or NULL?

That is the convention, yes.

 Or can it be different at different sources,
 rather be a taste of the one who developed something?

Well, there is lots of plug-in code that follows different coding styles
and conventions. We apply the GIMP coding style on all new files, but
there is still cruft in some corners of the code-base that has not been
cleaned up yet. So you might find code that uses a different convention
for return values.


Sven


___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer