]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 10 Sep 2014 12:51:49 +0000 (12:51 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 10 Sep 2014 12:51:49 +0000 (12:51 +0000)
MagickCore/option.c

index 0fb8f49ff5c3c6e27408be4bc677bbf12a80bf5a..f2ce42da534c7e3a508ea53c49205ec41994f52d 100644 (file)
@@ -2192,7 +2192,7 @@ MagickExport ssize_t GetCommandOptionFlags(const CommandOption option,
 %
 %  The format of the GetCommandOptionInfo method is:
 %
-%      const char **GetCommandOptions(const CommandOption option)
+%      const char **GetCommandOptionInfo(const CommandOption option)
 %
 %  A description of each parameter follows:
 %
@@ -2243,21 +2243,21 @@ MagickExport const OptionInfo *GetCommandOptionInfo(const char *option)
 %                                                                             %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %
-%  GetCommandOptions() returns a list of values.
+%  GetCommandOptions() returns a list of command options.
 %
 %  The format of the GetCommandOptions method is:
 %
-%      const char **GetCommandOptions(const CommandOption value)
+%      const char **GetCommandOptions(const CommandOption option)
 %
 %  A description of each parameter follows:
 %
-%    o value: the value.
+%    o option: the option.
 %
 */
-MagickExport char **GetCommandOptions(const CommandOption value)
+MagickExport char **GetCommandOptions(const CommandOption option)
 {
   char
-    **values;
+    **options;
 
   const OptionInfo
     *option_info;
@@ -2265,17 +2265,17 @@ MagickExport char **GetCommandOptions(const CommandOption value)
   register ssize_t
     i;
 
-  option_info=GetOptionInfo(value);
+  option_info=GetOptionInfo(option);
   if (option_info == (const OptionInfo *) NULL)
     return((char **) NULL);
   for (i=0; option_info[i].mnemonic != (const char *) NULL; i++) ;
-  values=(char **) AcquireQuantumMemory((size_t) i+1UL,sizeof(*values));
-  if (values == (char **) NULL)
+  options=(char **) AcquireQuantumMemory((size_t) i+1UL,sizeof(*options));
+  if (options == (char **) NULL)
     ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
   for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
-    values[i]=AcquireString(option_info[i].mnemonic);
-  values[i]=(char *) NULL;
-  return(values);
+    options[i]=AcquireString(option_info[i].mnemonic);
+  options[i]=(char *) NULL;
+  return(options);
 }
 \f
 /*