% July 2003 %
% %
% %
-% Copyright 1999-2010 ImageMagick Studio LLC, a non-profit organization %
+% Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization %
% dedicated to making software imaging solutions freely available. %
% %
% You may not use this file except in compliance with the License. You may %
% The format of the GetConfigureInfoList function is:
%
% const ConfigureInfo **GetConfigureInfoList(const char *pattern,
-% unsigned long *number_options,ExceptionInfo *exception)
+% size_t *number_options,ExceptionInfo *exception)
%
% A description of each parameter follows:
%
#endif
MagickExport const ConfigureInfo **GetConfigureInfoList(const char *pattern,
- unsigned long *number_options,ExceptionInfo *exception)
+ size_t *number_options,ExceptionInfo *exception)
{
const ConfigureInfo
**options;
register const ConfigureInfo
*p;
- register long
+ register ssize_t
i;
/*
*/
assert(pattern != (char *) NULL);
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",pattern);
- assert(number_options != (unsigned long *) NULL);
+ assert(number_options != (size_t *) NULL);
*number_options=0;
p=GetConfigureInfo("*",exception);
if (p == (const ConfigureInfo *) NULL)
UnlockSemaphoreInfo(configure_semaphore);
qsort((void *) options,(size_t) i,sizeof(*options),ConfigureInfoCompare);
options[i]=(ConfigureInfo *) NULL;
- *number_options=(unsigned long) i;
+ *number_options=(size_t) i;
return(options);
}
\f
% The format of the GetConfigureList function is:
%
% char **GetConfigureList(const char *pattern,
-% unsigned long *number_options,ExceptionInfo *exception)
+% size_t *number_options,ExceptionInfo *exception)
%
% A description of each parameter follows:
%
#endif
MagickExport char **GetConfigureList(const char *pattern,
- unsigned long *number_options,ExceptionInfo *exception)
+ size_t *number_options,ExceptionInfo *exception)
{
char
**options;
register const ConfigureInfo
*p;
- register long
+ register ssize_t
i;
/*
*/
assert(pattern != (char *) NULL);
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",pattern);
- assert(number_options != (unsigned long *) NULL);
+ assert(number_options != (size_t *) NULL);
*number_options=0;
p=GetConfigureInfo("*",exception);
if (p == (const ConfigureInfo *) NULL)
UnlockSemaphoreInfo(configure_semaphore);
qsort((void *) options,(size_t) i,sizeof(*options),ConfigureCompare);
options[i]=(char *) NULL;
- *number_options=(unsigned long) i;
+ *number_options=(size_t) i;
return(options);
}
\f
(void) AppendValueToLinkedList(paths,ConstantString(path));
#endif
}
+ /*
+ Search current directory.
+ */
+ (void) AppendValueToLinkedList(paths,ConstantString(""));
#endif
{
char
}
}
#endif
- /*
- Search current directory.
- */
- (void) AppendValueToLinkedList(paths,ConstantString(""));
return(paths);
}
\f
const ConfigureInfo
**configure_info;
- long
+ ssize_t
j;
- register long
+ register ssize_t
i;
- unsigned long
+ size_t
number_options;
if (file == (const FILE *) NULL)
if (configure_info == (const ConfigureInfo **) NULL)
return(MagickFalse);
path=(const char *) NULL;
- for (i=0; i < (long) number_options; i++)
+ for (i=0; i < (ssize_t) number_options; i++)
{
if (configure_info[i]->stealth != MagickFalse)
continue;
if (configure_info[i]->name != (char *) NULL)
name=configure_info[i]->name;
(void) fprintf(file,"%s",name);
- for (j=(long) strlen(name); j <= 12; j++)
+ for (j=(ssize_t) strlen(name); j <= 12; j++)
(void) fprintf(file," ");
(void) fprintf(file," ");
value="unknown";
% The format of the LoadConfigureList method is:
%
% MagickBooleanType LoadConfigureList(const char *xml,const char *filename,
-% const unsigned long depth,ExceptionInfo *exception)
+% const size_t depth,ExceptionInfo *exception)
%
% A description of each parameter follows:
%
%
*/
static MagickBooleanType LoadConfigureList(const char *xml,const char *filename,
- const unsigned long depth,ExceptionInfo *exception)
+ const size_t depth,ExceptionInfo *exception)
{
char
keyword[MaxTextExtent],
MagickStatusType
status;
- register long
+ register ssize_t
i;
/*
return(MagickFalse);
}
}
- for (i=0; i < (long) (sizeof(ConfigureMap)/sizeof(*ConfigureMap)); i++)
+ for (i=0; i < (ssize_t) (sizeof(ConfigureMap)/sizeof(*ConfigureMap)); i++)
{
ConfigureInfo
*configure_info;