(void) CopyMagickString(path,token,MaxTextExtent);
else
(void) ConcatenateMagickString(path,token,MaxTextExtent);
- xml=FileToString(path,~0,exception);
+ xml=FileToString(path,~0UL,exception);
if (xml != (char *) NULL)
{
status=LoadCoderList(xml,path,depth+1,exception);
(void) CopyMagickString(path,token,MaxTextExtent);
else
(void) ConcatenateMagickString(path,token,MaxTextExtent);
- xml=FileToString(path,~0,exception);
+ xml=FileToString(path,~0UL,exception);
if (xml != (char *) NULL)
{
status=LoadColorList(xml,path,depth+1,exception);
(void) CopyMagickString(path,token,MaxTextExtent);
else
(void) ConcatenateMagickString(path,token,MaxTextExtent);
- xml=FileToString(path,~0,exception);
+ xml=FileToString(path,~0UL,exception);
if (xml != (char *) NULL)
{
status=LoadConfigureList(xml,path,depth+1,exception);
(void) CopyMagickString(path,token,MaxTextExtent);
else
(void) ConcatenateMagickString(path,token,MaxTextExtent);
- xml=FileToString(path,~0,exception);
+ xml=FileToString(path,~0UL,exception);
if (xml != (char *) NULL)
{
status=LoadDelegateList(xml,path,depth+1,exception);
/*
Unknown image format.
*/
- text=FileToString(filename,~0,exception);
+ text=FileToString(filename,~0UL,exception);
if (text == (char *) NULL)
return((Image *) NULL);
textlist=StringToList(text);
if (*draw_info->primitive != '@')
primitive=AcquireString(draw_info->primitive);
else
- primitive=FileToString(draw_info->primitive+1,~0,exception);
+ primitive=FileToString(draw_info->primitive+1,~0UL,exception);
if (primitive == (char *) NULL)
return(MagickFalse);
primitive_extent=(double) strlen(primitive);
start.y=0.0;
number_coordinates=0;
z_count=0;
+ end=0;
primitive_type=primitive_info->primitive;
q=primitive_info;
for (p=path; *p != '\0'; )
}
for (i=0; i <= (ssize_t) MaxMap; i++)
{
- grays[i].red=(~0U);
- grays[i].green=(~0U);
- grays[i].blue=(~0U);
- grays[i].alpha=(~0U);
- grays[i].black=(~0U);
+ grays[i].red=(~0UL);
+ grays[i].green=(~0UL);
+ grays[i].blue=(~0UL);
+ grays[i].alpha=(~0UL);
+ grays[i].black=(~0UL);
}
status=MagickTrue;
image_view=AcquireVirtualCacheView(image,exception);
(void) ResetMagickMemory(&gray,0,sizeof(gray));
for (i=0; i <= (ssize_t) MaxMap; i++)
{
- if (grays[i].red != ~0U)
+ if (grays[i].red != ~0UL)
grays[gray.red++].red=grays[i].red;
- if (grays[i].green != ~0U)
+ if (grays[i].green != ~0UL)
grays[gray.green++].green=grays[i].green;
- if (grays[i].blue != ~0U)
+ if (grays[i].blue != ~0UL)
grays[gray.blue++].blue=grays[i].blue;
if (image->colorspace == CMYKColorspace)
- if (grays[i].black != ~0U)
+ if (grays[i].black != ~0UL)
grays[gray.black++].black=grays[i].black;
if (image->alpha_trait == BlendPixelTrait)
- if (grays[i].alpha != ~0U)
+ if (grays[i].alpha != ~0UL)
grays[gray.alpha++].alpha=grays[i].alpha;
}
/*
if (*expression != '@')
fx_expression=ConstantString(expression);
else
- fx_expression=FileToString(expression+1,~0,exception);
+ fx_expression=FileToString(expression+1,~0UL,exception);
for (i=0; i < (ssize_t) number_threads; i++)
{
MagickBooleanType
(void) CopyMagickString(path,token,MaxTextExtent);
else
(void) ConcatenateMagickString(path,token,MaxTextExtent);
- xml=FileToString(path,~0,exception);
+ xml=FileToString(path,~0UL,exception);
if (xml != (char *) NULL)
{
status=LoadLocaleList(xml,path,locale,depth+1,exception);
(void) CopyMagickString(path,token,MaxTextExtent);
else
(void) ConcatenateMagickString(path,token,MaxTextExtent);
- xml=FileToString(path,~0,exception);
+ xml=FileToString(path,~0UL,exception);
if (xml != (char *) NULL)
{
status&=LoadLogList(xml,path,depth+1,exception);
(void) CopyMagickString(path,token,MaxTextExtent);
else
(void) ConcatenateMagickString(path,token,MaxTextExtent);
- xml=FileToString(path,~0,exception);
+ xml=FileToString(path,~0UL,exception);
if (xml != (char *) NULL)
{
status=LoadMagicList(xml,path,depth+1,exception);
(void) CopyMagickString(path,attribute,MaxTextExtent);
else
(void) ConcatenateMagickString(path,attribute,MaxTextExtent);
- xml=FileToString(path,~0,exception);
+ xml=FileToString(path,~0UL,exception);
if (xml != (char *) NULL)
{
status=LoadMimeList(xml,path,depth+1,exception);
(void) CopyMagickString(path,token,MaxTextExtent);
else
(void) ConcatenateMagickString(path,token,MaxTextExtent);
- xml=FileToString(path,~0,exception);
+ xml=FileToString(path,~0UL,exception);
if (xml != (char *) NULL)
{
status=LoadPolicyList(xml,path,depth+1,exception);
value;
if (*length < 2)
- return((unsigned short) ~0U);
+ return((unsigned short) ~0UL);
for (i=0; i < 2; i++)
{
c=(int) (*(*p)++);
OptionError,"UnableToAccessPath","%s",p);
return((char *) NULL);
}
- return(FileToString(p,~0,exception));
+ return(FileToString(p,~0UL,exception));
}
/*
else
(void) ConcatenateMagickString(path,token,MaxTextExtent);
sans_exception=AcquireExceptionInfo();
- xml=FileToString(path,~0,sans_exception);
+ xml=FileToString(path,~0UL,sans_exception);
sans_exception=DestroyExceptionInfo(sans_exception);
if (xml != (char *) NULL)
{
*/
(void) FormatLocaleString(path,MaxTextExtent,"%s%s%s",font_path,
DirectorySeparator,filename);
- option=FileToString(path,~0,exception);
+ option=FileToString(path,~0UL,exception);
if (option != (void *) NULL)
{
status&=LoadTypeList(option,path,0,exception);
Generate file list from file list (e.g. @filelist.txt).
*/
exception=AcquireExceptionInfo();
- files=FileToString(option+1,~0,exception);
+ files=FileToString(option+1,~0UL,exception);
exception=DestroyExceptionInfo(exception);
if (files == (char *) NULL)
continue;
*/
(void) IdentifyImage(image,file,MagickTrue,exception);
(void) fclose(file);
- text=FileToString(filename,~0,exception);
+ text=FileToString(filename,~0UL,exception);
(void) RelinquishUniqueFileResource(filename);
if (text == (char *) NULL)
{
}
(void) IdentifyImage(wand->images,file,MagickTrue,wand->exception);
(void) fclose(file);
- description=FileToString(filename,~0,wand->exception);
+ description=FileToString(filename,~0UL,wand->exception);
(void) RelinquishUniqueFileResource(filename);
return(description);
}
Color correct with a color decision list.
*/
(void) SyncImageSettings(mogrify_info,*image,exception);
- color_correction_collection=FileToString(argv[i+1],~0,exception);
+ color_correction_collection=FileToString(argv[i+1],~0UL,exception);
if (color_correction_collection == (char *) NULL)
break;
(void) ColorDecisionListImage(*image,color_correction_collection,
Decipher pixels.
*/
(void) SyncImageSettings(mogrify_info,*image,exception);
- passkey=FileToStringInfo(argv[i+1],~0,exception);
+ passkey=FileToStringInfo(argv[i+1],~0UL,exception);
if (passkey != (StringInfo *) NULL)
{
(void) PasskeyDecipherImage(*image,passkey,exception);
Encipher pixels.
*/
(void) SyncImageSettings(mogrify_info,*image,exception);
- passkey=FileToStringInfo(argv[i+1],~0,exception);
+ passkey=FileToStringInfo(argv[i+1],~0UL,exception);
if (passkey != (StringInfo *) NULL)
{
(void) PasskeyEncipherImage(*image,passkey,exception);
/*
Color correct with a color decision list.
*/
- color_correction_collection=FileToString(arg1,~0,_exception);
+ color_correction_collection=FileToString(arg1,~0UL,_exception);
if (color_correction_collection == (char *) NULL)
break;
(void) ColorDecisionListImage(_image,color_correction_collection,
StringInfo
*passkey;
- passkey=FileToStringInfo(arg1,~0,_exception);
+ passkey=FileToStringInfo(arg1,~0UL,_exception);
if (passkey == (StringInfo *) NULL)
CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
StringInfo
*passkey;
- passkey=FileToStringInfo(arg1,~0,_exception);
+ passkey=FileToStringInfo(arg1,~0UL,_exception);
if (passkey != (StringInfo *) NULL)
{
(void) PasskeyEncipherImage(_image,passkey,_exception);
*/
cin.image.orientation=(unsigned char) ReadBlobByte(image);
offset++;
- if (cin.image.orientation != (unsigned char) (~0U))
+ if (cin.image.orientation != (unsigned char) (~0UL))
(void) FormatImageProperty(image,"dpx:image.orientation","%d",
cin.image.orientation);
switch (cin.image.orientation)
offset+=4;
dpx.file.ditto_key=ReadBlobLong(image);
offset+=4;
- if (dpx.file.ditto_key != ~0U)
+ if (dpx.file.ditto_key != ~0UL)
(void) FormatImageProperty(image,"dpx:file.ditto.key","%u",
dpx.file.ditto_key);
dpx.file.generic_size=ReadBlobLong(image);
}
dpx.file.encrypt_key=ReadBlobLong(image);
offset+=4;
- if (dpx.file.encrypt_key != ~0U)
+ if (dpx.file.encrypt_key != ~0UL)
(void) FormatImageProperty(image,"dpx:file.encrypt_key","%u",
dpx.file.encrypt_key);
offset+=ReadBlob(image,sizeof(dpx.file.reserve),(unsigned char *)
*/
dpx.orientation.x_offset=ReadBlobLong(image);
offset+=4;
- if (dpx.orientation.x_offset != ~0U)
+ if (dpx.orientation.x_offset != ~0UL)
(void) FormatImageProperty(image,"dpx:orientation.x_offset","%u",
dpx.orientation.x_offset);
dpx.orientation.y_offset=ReadBlobLong(image);
offset+=4;
- if (dpx.orientation.y_offset != ~0U)
+ if (dpx.orientation.y_offset != ~0UL)
(void) FormatImageProperty(image,"dpx:orientation.y_offset","%u",
dpx.orientation.y_offset);
dpx.orientation.x_center=ReadBlobFloat(image);
dpx.orientation.y_center);
dpx.orientation.x_size=ReadBlobLong(image);
offset+=4;
- if (dpx.orientation.x_size != ~0U)
+ if (dpx.orientation.x_size != ~0UL)
(void) FormatImageProperty(image,"dpx:orientation.x_size","%u",
dpx.orientation.x_size);
dpx.orientation.y_size=ReadBlobLong(image);
offset+=4;
- if (dpx.orientation.y_size != ~0U)
+ if (dpx.orientation.y_size != ~0UL)
(void) FormatImageProperty(image,"dpx:orientation.y_size","%u",
dpx.orientation.y_size);
offset+=ReadBlob(image,sizeof(dpx.orientation.filename),(unsigned char *)
dpx.orientation.border[i]=ReadBlobShort(image);
offset+=2;
}
- if ((dpx.orientation.border[0] != (unsigned short) (~0U)) &&
- (dpx.orientation.border[1] != (unsigned short) (~0U)))
+ if ((dpx.orientation.border[0] != (unsigned short) (~0UL)) &&
+ (dpx.orientation.border[1] != (unsigned short) (~0UL)))
(void) FormatImageProperty(image,"dpx:orientation.border","%dx%d%+d%+d", dpx.orientation.border[0],dpx.orientation.border[1],
dpx.orientation.border[2],dpx.orientation.border[3]);
for (i=0; i < 2; i++)
dpx.orientation.aspect_ratio[i]=ReadBlobLong(image);
offset+=4;
}
- if ((dpx.orientation.aspect_ratio[0] != ~0U) &&
- (dpx.orientation.aspect_ratio[1] != ~0U))
+ if ((dpx.orientation.aspect_ratio[0] != ~0UL) &&
+ (dpx.orientation.aspect_ratio[1] != ~0UL))
(void) FormatImageProperty(image,"dpx:orientation.aspect_ratio",
"%ux%u",dpx.orientation.aspect_ratio[0],
dpx.orientation.aspect_ratio[1]);
dpx.film.format);
dpx.film.frame_position=ReadBlobLong(image);
offset+=4;
- if (dpx.film.frame_position != ~0U)
+ if (dpx.film.frame_position != ~0UL)
(void) FormatImageProperty(image,"dpx:film.frame_position","%u",
dpx.film.frame_position);
dpx.film.sequence_extent=ReadBlobLong(image);
offset+=4;
- if (dpx.film.sequence_extent != ~0U)
+ if (dpx.film.sequence_extent != ~0UL)
(void) FormatImageProperty(image,"dpx:film.sequence_extent","%u",
dpx.film.sequence_extent);
dpx.film.held_count=ReadBlobLong(image);
offset+=4;
- if (dpx.film.held_count != ~0U)
+ if (dpx.film.held_count != ~0UL)
(void) FormatImageProperty(image,"dpx:film.held_count","%u",
dpx.film.held_count);
dpx.film.frame_rate=ReadBlobFloat(image);
offset+=ReadBlob(image,sizeof(dpx.user.id),(unsigned char *) dpx.user.id);
if (*dpx.user.id != '\0')
(void) FormatImageProperty(image,"dpx:user.id","%.32s",dpx.user.id);
- if ((dpx.file.user_size != ~0U) &&
+ if ((dpx.file.user_size != ~0UL) &&
((size_t) dpx.file.user_size > sizeof(dpx.user.id)))
{
StringInfo
/*
Convert DPX raster image to pixel packets.
*/
- if ((dpx.image.image_element[n].data_offset != (unsigned int) (~0U)) &&
+ if ((dpx.image.image_element[n].data_offset != (unsigned int) (~0UL)) &&
(dpx.image.image_element[n].data_offset != 0U))
{
MagickOffsetType
(void) strncpy(dpx.file.copyright,value,sizeof(dpx.file.copyright));
offset+=WriteBlob(image,sizeof(dpx.file.copyright),(unsigned char *)
dpx.file.copyright);
- dpx.file.encrypt_key=(~0U);
+ dpx.file.encrypt_key=(~0UL);
offset+=WriteBlobLong(image,dpx.file.encrypt_key);
offset+=WriteBlob(image,sizeof(dpx.file.reserve),(unsigned char *)
dpx.file.reserve);
(void) LogMagickEvent(ConfigureEvent,GetMagickModule(),
"Loading quantization tables \"%s\" ...",filename);
table=(QuantizationTable *) NULL;
- xml=FileToString(filename,~0U,exception);
+ xml=FileToString(filename,~0UL,exception);
if (xml == (char *) NULL)
return(table);
quantization_tables=NewXMLTree(xml,exception);
Allocate layered image.
*/
layer_info[i].image=CloneImage(image,layer_info[i].page.width,
- layer_info[i].page.height == ~0U ? 1 : layer_info[i].page.height,
+ layer_info[i].page.height == ~0UL ? 1 : layer_info[i].page.height,
MagickFalse,exception);
if (layer_info[i].image == (Image *) NULL)
{
#define TAG_SIZE 4
#define CHUNK_SIZE_BYTES 4
#define CHUNK_HEADER_SIZE 8
-#define MAX_CHUNK_PAYLOAD (~0U-CHUNK_HEADER_SIZE-1)
+#define MAX_CHUNK_PAYLOAD (~0UL-CHUNK_HEADER_SIZE-1)
ssize_t
offset;