RSS/Atom feed Twitter
Site is read-only, email is disabled

Success-return-value

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Success-return-value Oliver Bandel 22 Apr 15:46
  Success-return-value Sven Neumann 22 Apr 20:29
Oliver Bandel
2010-04-22 15:46:44 UTC (over 14 years ago)

Success-return-value

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

Sven Neumann
2010-04-22 20:29:32 UTC (over 14 years ago)

Success-return-value

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