Ignore:
Timestamp:
04/22/12 04:51:01 (14 months ago)
Author:
anthony
Message:

Refactoring option handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/MagickWand/wandcli.c

    r7436 r7587  
    118118  cli_wand->draw_info=CloneDrawInfo(cli_wand->wand.image_info,(DrawInfo *) NULL); 
    119119  cli_wand->quantize_info=AcquireQuantizeInfo(cli_wand->wand.image_info); 
     120  cli_wand->process_flags=MagickCommandOptionFlags;  /* assume "magick" CLI */ 
     121  cli_wand->command=(const OptionInfo *)NULL;     /* no option at this time */ 
    120122  cli_wand->image_list_stack=(Stack *)NULL; 
    121123  cli_wand->image_info_stack=(Stack *)NULL; 
    122   cli_wand->process_flags=MagickCommandOptionFlags;  /* assume "magick" CLI */ 
    123124 
    124125  /* default exception location... 
    125126     EG: sprintf(locaiton, filename, line, column); 
    126127  */ 
    127   cli_wand->location="from \"%s\"";   /* location format: */ 
    128   cli_wand->filename="unknown";       /* unknown source */ 
    129   cli_wand->line=0; 
    130   cli_wand->column=0; 
     128  cli_wand->location="from \"%s\"";   /* location format using arguments: */ 
     129                                      /*      filename, line, column */ 
     130  cli_wand->filename="unknown";       /* script filename, unknown source */ 
     131  cli_wand->line=0;                   /* line from script OR CLI argument */ 
     132  cli_wand->column=0;                 /* column from script */ 
    131133 
    132134  cli_wand->signature=WandSignature; 
     
    214216%  only, or all errors, according to 'all_execeptions' boolean argument. 
    215217% 
    216 %  The function returns true is errors are fatal, in which case the caller 
     218%  The function returns true if errors are fatal, in which case the caller 
    217219%  should abort and re-call with an 'all_exceptions' argument of true before 
    218220%  quitting. 
     
    225227%    MagickBooleanType CLICatchException(MagickCLI *cli_wand, 
    226228%              const MagickBooleanType all_exceptions ); 
     229% 
     230%  Arguments are 
     231% 
     232%    o cli_wand:   The Wand CLI that holds the exception Information 
     233% 
     234%    o all_exceptions:   Report all exceptions, including the fatal one 
    227235% 
    228236*/ 
Note: See TracChangeset for help on using the changeset viewer.