{ MagickBooleanType status = GetScriptToken(token_info);
cli_wand->line=token_info->token_line;
cli_wand->column=token_info->token_column;
- if( status == MagickFalse )
- break;
+ if( IfMagickFalse(status) )
+ break; /* error or end of options */
}
/* save option details */
#if MagickCommandDebug
(void) FormatLocaleFile(stderr, "Script Non-Option: \"%s\"\n", option);
#endif
- if ( IsCommandOption(option) == MagickFalse)
+ if ( IfMagickFalse(IsCommandOption(option)))
/* non-option -- treat as a image read */
CLISpecialOperator(cli_wand,"-read",option);
else
}
if ( count >= 1 ) {
- if( GetScriptToken(token_info) == MagickFalse )
+ if( IfMagickFalse(GetScriptToken(token_info)) )
CLIWandException(OptionFatalError,"MissingArgument",option);
CloneString(&arg1,token_info->token);
}
CloneString(&arg1,(char *)NULL);
if ( count >= 2 ) {
- if( GetScriptToken(token_info) == MagickFalse )
+ if( IfMagickFalse(GetScriptToken(token_info)) )
CLIWandExceptionBreak(OptionFatalError,"MissingArgument",option);
CloneString(&arg2,token_info->token);
}
#if MagickCommandDebug
(void) FormatLocaleFile(stderr, "CLI Non-Option: \"%s\"\n", option);
#endif
- if ( ( IsCommandOption(option) == MagickFalse ) &&
- ( (process_flags & ProcessNonOptionImageRead) != 0 ) )
+ if ( IfMagickFalse(IsCommandOption(option) ) &&
+ (process_flags & ProcessNonOptionImageRead) != 0 )
/* non-option -- treat as a image read */
CLISpecialOperator(cli_wand,"-read",option);
else if ( (process_flags & ProcessUnknownOptionError) != 0 )
Only "-read" needs to expand file name glob patterns
*/
status=ExpandFilenames(&argc,&argv);
- if (status == MagickFalse)
+ if ( IfMagickFalse(status))
ThrowConvertException(ResourceLimitError,"MemoryAllocationFailed",
GetExceptionMessage(errno));
#endif
cli_wand->wand.exception = (ExceptionInfo *)NULL;
cli_wand=DestroyMagickCLI(cli_wand);
- return((exception->severity > ErrorException) ? MagickFalse : MagickTrue);
+ return(IsMagickFalse(exception->severity > ErrorException));
}