MagickPassFail & MagickBool

Bob Friesenhahn <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.core,gmane.comp.video.graphicsmagick.apis
Message-ID <[email protected]>
Currently GraphicsMagick functions return an 'unsigned int' in order
to return pass/fail status, and 'unsigned int' is used as a boolean
type.

Recently I added the defines

#define MagickPassFail unsigned int
#define MagickPass     1
#define MagickFail     0

#define MagickBool     unsigned int
#define MagickTrue     1
#define MagickFalse    0

to GraphicsMagick so that the purpose of these values can be clarified
without actually changing the interface.  I plan to migrate the
function definitions and implementation to using these defines so that
it is more clear what return values and arguments mean.

Bob
======================================
Bob Friesenhahn
[email protected]
http://www.simplesystems.org/users/bfriesen



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.