Changeset 7863


Ignore:
Timestamp:
05/10/12 21:56:24 (13 months ago)
Author:
anthony
Message:
 
Location:
ImageMagick/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/MagickCore/resample.c

    r7779 r7863  
    13241324#endif 
    13251325  { 
    1326     if (IsStringTrue(GetImageArtifact(resample_filter->image, 
     1326    if (IfStringTrue(GetImageArtifact(resample_filter->image, 
    13271327             "resample:verbose")) ) 
    13281328      { 
  • ImageMagick/trunk/MagickCore/utility.c

    r7701 r7863  
    700700%  Which provide their own '@' meta-character handling. 
    701701% 
     702%  You can see the results of the expansion using "Configure" log 
     703%  events. 
     704% 
     705% 
     706%  The returned list should be freed using  DestroyStringList(). 
     707% 
     708%  However the strings in the original pointed to argv are not 
     709%  freed  (TO BE CHECKED).  So a copy of the original pointer (and count) 
     710%  should be kept separate if they need to be freed later. 
     711% 
    702712% 
    703713%  The format of the ExpandFilenames function is: 
  • ImageMagick/trunk/MagickWand/magick-cli.c

    r7751 r7863  
    687687    i; 
    688688 
    689   if (IfMagickFalse(ExpandFilenames(&argc,&argv))) 
     689  if (IfMagickFalse(  ExpandFilenames(&argc,&argv)  )) 
    690690    ThrowFileException(exception,ResourceLimitError,"MemoryAllocationFailed", 
    691691         GetExceptionMessage(errno)); 
     
    726726  ReadCommandlLine(argc,&argv); 
    727727 
    728 #if 0 
    729   status=ExpandFilenames(&argc,&argv); 
    730   if ( IfMagickFalse(status) ) 
    731     ThrowConvertException(ResourceLimitError,"MemoryAllocationFailed", 
    732       GetExceptionMessage(errno)); 
    733 #endif 
    734  
    735728  /* Initialize special "CLI Wand" to hold images and settings (empty) */ 
    736729  cli_wand=AcquireMagickCLI(image_info,exception); 
  • ImageMagick/trunk/MagickWand/operation.c

    r7713 r7863  
    42804280#if 0 
    42814281    /* Directly read 'arg1' without filename expansion handling (see below). 
    4282        This does NOT turn off the 'coder:' prefix, or '[...]' read modifiers. 
    42834282    */ 
    42844283# if !USE_WAND_METHODS 
     
    43194318    argv = (char **) &arg1; 
    43204319 
    4321     if (IfMagickFalse(ExpandFilenames(&argc,&argv))) 
     4320    /* Expand 'glob' expressions in the given filename. 
     4321       Expansion handles any 'coder:' prefix, or read modifiers attached 
     4322       to the filename, including them in the resulting expanded list. 
     4323    */ 
     4324    if (IfMagickFalse(  ExpandFilenames(&argc,&argv)  )) 
    43224325      CLIWandExceptArgReturn(ResourceLimitError,"MemoryAllocationFailed", 
    43234326          option,GetExceptionMessage(errno)); 
     
    43364339      AppendImageToList(&_images, new_images); 
    43374340    } 
    4338     /* FUTURE: how do I free the expanded filename array memory ??? */ 
    4339     //argv=DestroyStringList(argv);  /* Is this correct? */ 
     4341    argv=DestroyStringList(argv);  /* Destroy the Expanded Filename list */ 
    43404342#endif 
    43414343    return; 
Note: See TracChangeset for help on using the changeset viewer.