% September 1996 %
% %
% %
-% Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization %
+% Copyright 1999-2010 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 %
{
#pragma unused (source_rectangle,matrix,mode,mask,matte,matte_rectangle,flags)
- long
+ ssize_t
size;
Ptr
int
status;
- long
+ ssize_t
version;
Rect
*/
static OSErr HGetVInfo(short volume_index,StringPtr volume_name,short *volume,
- unsigned long *free_bytes,unsigned long *total_bytes)
+ size_t *free_bytes,size_t *total_bytes)
{
HParamBlockRec
pb;
OSErr
result;
- unsigned long
+ size_t
blocksize;
unsigned short
if (result != noErr)
return(result);
*volume=pb.volumeParam.ioVRefNum;
- blocksize=(unsigned long) pb.volumeParam.ioVAlBlkSiz;
+ blocksize=(size_t) pb.volumeParam.ioVAlBlkSiz;
allocation_blocks=(unsigned short) pb.volumeParam.ioVNmAlBlks;
free_blocks=(unsigned short) pb.volumeParam.ioVFrBlk;
*free_bytes=free_blocks*blocksize;
MagickExport MagickBooleanType MACIsMagickConflict(const char *magick)
{
- unsigned long
+ size_t
free_bytes,
number_bytes;
%
%
*/
-static OSErr MacGSExecuteCommand(const char *command,long length)
+static OSErr MacGSExecuteCommand(const char *command,ssize_t length)
{
AEAddressDesc
event_descriptor;
%
%
*/
-static OSErr MacGSLaunchApplicationCore(long flags)
+static OSErr MacGSLaunchApplicationCore(ssize_t flags)
{
FSSpec
file_info;
%
% The format of the MACSystemCommand method is:
%
-% int MACSystemCommand(const char * command)
+% int MACSystemCommand(MagickFalse,const char * command)
%
% A description of each parameter follows:
%
% o command: This string is the command to execute.
%
-%
*/
MagickExport int MACSystemCommand(const char * command)
{
errno=error;
return((DIR *) NULL);
}
- entry=(DIR *) AcquireMagickMemory(sizeof(DIR));
+ entry=(DIR *) AcquireAlignedMemory(1,sizeof(DIR));
if (entry == (DIR *) NULL)
return((DIR *) NULL);
entry->d_VRefNum=search_info.hFileInfo.ioVRefNum;
depth,
status;
- long
+ ssize_t
y;
MagickBooleanType
image->rows=picture_info.sourceRect.bottom-picture_info.sourceRect.top;
if ((depth <= 8) && ((*(picture_info.theColorTable))->ctSize != 0))
{
- unsigned long
+ size_t
number_colors;
/*
for (y=0; y < image->rows; y++)
{
register IndexPacket
- *__restrict indexes;
+ *restrict indexes;
- register long
+ register ssize_t
x;
register PixelPacket
- *__restrict q;
+ *restrict q;
q=QueueAuthenticPixels(image,0,y,image->columns,1,exception);
if (q == (PixelPacket *) NULL)
HParamBlockRec
parameter_info;
- long
+ ssize_t
buffer_size = 16384;
OSErr
%
% The format of the seekdir method is:
%
-% void seekdir(DIR *entry,long position)
+% void seekdir(DIR *entry,ssize_t position)
%
% A description of each parameter follows:
%
%
%
*/
-MagickExport void seekdir(DIR *entry,long position)
+MagickExport void seekdir(DIR *entry,ssize_t position)
{
assert(entry != (DIR *) NULL);
entry->d_index=position;
%
%
*/
-MagickExport long telldir(DIR *entry)
+MagickExport ssize_t telldir(DIR *entry)
{
return(entry->d_index);
}