% December 2002 %
% %
% %
-% 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 %
struct _LinkedListInfo
{
- unsigned long
+ size_t
capacity,
elements;
SemaphoreInfo
*semaphore;
- unsigned long
+ size_t
signature;
};
*(*relinquish_key)(void *),
*(*relinquish_value)(void *);
- unsigned long
+ size_t
capacity,
entries,
next;
SemaphoreInfo
*semaphore;
- unsigned long
+ size_t
signature;
};
\f
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
if (list_info->elements == list_info->capacity)
return(MagickFalse);
- next=(ElementInfo *) AcquireAlignedMemory(1,sizeof(*next));
+ next=(ElementInfo *) AcquireMagickMemory(sizeof(*next));
if (next == (ElementInfo *) NULL)
return(MagickFalse);
next->value=(void *) value;
next->next=(ElementInfo *) NULL;
- (void) LockSemaphoreInfo(list_info->semaphore);
+ LockSemaphoreInfo(list_info->semaphore);
if (list_info->next == (ElementInfo *) NULL)
list_info->next=next;
if (list_info->elements == 0)
list_info->tail->next=next;
list_info->tail=next;
list_info->elements++;
- (void) UnlockSemaphoreInfo(list_info->semaphore);
+ UnlockSemaphoreInfo(list_info->semaphore);
return(MagickTrue);
}
\f
assert(list_info->signature == MagickSignature);
if (list_info->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
- (void) LockSemaphoreInfo(list_info->semaphore);
+ LockSemaphoreInfo(list_info->semaphore);
next=list_info->head;
while (next != (ElementInfo *) NULL)
{
list_info->tail=(ElementInfo *) NULL;
list_info->next=(ElementInfo *) NULL;
list_info->elements=0;
- (void) UnlockSemaphoreInfo(list_info->semaphore);
+ UnlockSemaphoreInfo(list_info->semaphore);
}
\f
/*
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-% Specify the CompareHashmapString() method in NewHashmap() to find an entry
-% in a hash-map based on the contents of a string.
+% CompareHashmapString() finds an entry in a hash-map based on the contents
+% of a string.
%
% The format of the CompareHashmapString method is:
%
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-% Specify the CompareHashmapStringInfo() method in NewHashmap() to find an
-% entry in a hash-map based on the contents of a string.
+% CompareHashmapStringInfo() finds an entry in a hash-map based on the
+% contents of a string.
%
% The format of the CompareHashmapStringInfo method is:
%
register EntryInfo
*entry;
- register long
+ register ssize_t
i;
assert(hashmap_info != (HashmapInfo *) NULL);
assert(hashmap_info->signature == MagickSignature);
if (hashmap_info->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
- (void) LockSemaphoreInfo(hashmap_info->semaphore);
- for (i=0; i < (long) hashmap_info->capacity; i++)
+ LockSemaphoreInfo(hashmap_info->semaphore);
+ for (i=0; i < (ssize_t) hashmap_info->capacity; i++)
{
list_info=hashmap_info->map[i];
if (list_info != (LinkedListInfo *) NULL)
hashmap_info->map=(LinkedListInfo **) RelinquishMagickMemory(
hashmap_info->map);
hashmap_info->signature=(~MagickSignature);
- (void) UnlockSemaphoreInfo(hashmap_info->semaphore);
+ UnlockSemaphoreInfo(hashmap_info->semaphore);
DestroySemaphoreInfo(&hashmap_info->semaphore);
hashmap_info=(HashmapInfo *) RelinquishMagickMemory(hashmap_info);
return(hashmap_info);
assert(list_info->signature == MagickSignature);
if (list_info->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
- (void) LockSemaphoreInfo(list_info->semaphore);
+ LockSemaphoreInfo(list_info->semaphore);
for (next=list_info->head; next != (ElementInfo *) NULL; )
{
if (relinquish_value != (void *(*)(void *)) NULL)
entry=(ElementInfo *) RelinquishMagickMemory(entry);
}
list_info->signature=(~MagickSignature);
- (void) UnlockSemaphoreInfo(list_info->semaphore);
+ UnlockSemaphoreInfo(list_info->semaphore);
DestroySemaphoreInfo(&list_info->semaphore);
list_info=(LinkedListInfo *) RelinquishMagickMemory(list_info);
return(list_info);
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
if (list_info->elements == 0)
return((void *) NULL);
- (void) LockSemaphoreInfo(list_info->semaphore);
+ LockSemaphoreInfo(list_info->semaphore);
value=list_info->tail->value;
- (void) UnlockSemaphoreInfo(list_info->semaphore);
+ UnlockSemaphoreInfo(list_info->semaphore);
return(value);
}
\f
assert(hashmap_info->signature == MagickSignature);
if (hashmap_info->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
- (void) LockSemaphoreInfo(hashmap_info->semaphore);
+ LockSemaphoreInfo(hashmap_info->semaphore);
while (hashmap_info->next < hashmap_info->capacity)
{
list_info=hashmap_info->map[hashmap_info->next];
if (entry != (EntryInfo *) NULL)
{
key=entry->key;
- (void) UnlockSemaphoreInfo(hashmap_info->semaphore);
+ UnlockSemaphoreInfo(hashmap_info->semaphore);
return(key);
}
hashmap_info->head_of_list=MagickFalse;
}
hashmap_info->next++;
}
- (void) UnlockSemaphoreInfo(hashmap_info->semaphore);
+ UnlockSemaphoreInfo(hashmap_info->semaphore);
return((void *) NULL);
}
\f
assert(hashmap_info->signature == MagickSignature);
if (hashmap_info->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
- (void) LockSemaphoreInfo(hashmap_info->semaphore);
+ LockSemaphoreInfo(hashmap_info->semaphore);
while (hashmap_info->next < hashmap_info->capacity)
{
list_info=hashmap_info->map[hashmap_info->next];
if (entry != (EntryInfo *) NULL)
{
value=entry->value;
- (void) UnlockSemaphoreInfo(hashmap_info->semaphore);
+ UnlockSemaphoreInfo(hashmap_info->semaphore);
return(value);
}
hashmap_info->head_of_list=MagickFalse;
}
hashmap_info->next++;
}
- (void) UnlockSemaphoreInfo(hashmap_info->semaphore);
+ UnlockSemaphoreInfo(hashmap_info->semaphore);
return((void *) NULL);
}
\f
assert(list_info->signature == MagickSignature);
if (list_info->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
- (void) LockSemaphoreInfo(list_info->semaphore);
+ LockSemaphoreInfo(list_info->semaphore);
if (list_info->next == (ElementInfo *) NULL)
{
- (void) UnlockSemaphoreInfo(list_info->semaphore);
+ UnlockSemaphoreInfo(list_info->semaphore);
return((void *) NULL);
}
value=list_info->next->value;
list_info->next=list_info->next->next;
- (void) UnlockSemaphoreInfo(list_info->semaphore);
+ UnlockSemaphoreInfo(list_info->semaphore);
return(value);
}
\f
%
% The format of the GetNumberOfEntriesInHashmap method is:
%
-% unsigned long GetNumberOfEntriesInHashmap(const HashmapInfo *hashmap_info)
+% size_t GetNumberOfEntriesInHashmap(const HashmapInfo *hashmap_info)
%
% A description of each parameter follows:
%
% o hashmap_info: the hashmap info.
%
*/
-MagickExport unsigned long GetNumberOfEntriesInHashmap(
+MagickExport size_t GetNumberOfEntriesInHashmap(
const HashmapInfo *hashmap_info)
{
assert(hashmap_info != (HashmapInfo *) NULL);
%
% The format of the GetNumberOfElementsInLinkedList method is:
%
-% unsigned long GetNumberOfElementsInLinkedList(
+% size_t GetNumberOfElementsInLinkedList(
% const LinkedListInfo *list_info)
%
% A description of each parameter follows:
% o list_info: the linked-list info.
%
*/
-MagickExport unsigned long GetNumberOfElementsInLinkedList(
+MagickExport size_t GetNumberOfElementsInLinkedList(
const LinkedListInfo *list_info)
{
assert(list_info != (LinkedListInfo *) NULL);
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
if (key == (const void *) NULL)
return((void *) NULL);
- (void) LockSemaphoreInfo(hashmap_info->semaphore);
+ LockSemaphoreInfo(hashmap_info->semaphore);
hash=hashmap_info->hash(key);
list_info=hashmap_info->map[hash % hashmap_info->capacity];
if (list_info != (LinkedListInfo *) NULL)
if (compare == MagickTrue)
{
value=entry->value;
- (void) UnlockSemaphoreInfo(hashmap_info->semaphore);
+ UnlockSemaphoreInfo(hashmap_info->semaphore);
return(value);
}
}
entry=(EntryInfo *) GetNextValueInLinkedList(list_info);
}
}
- (void) UnlockSemaphoreInfo(hashmap_info->semaphore);
+ UnlockSemaphoreInfo(hashmap_info->semaphore);
return((void *) NULL);
}
\f
% The format of the GetValueFromLinkedList method is:
%
% void *GetValueFromLinkedList(LinkedListInfo *list_info,
-% const unsigned long index)
+% const size_t index)
%
% A description of each parameter follows:
%
%
*/
MagickExport void *GetValueFromLinkedList(LinkedListInfo *list_info,
- const unsigned long index)
+ const size_t index)
{
register ElementInfo
*next;
- register long
+ register ssize_t
i;
void
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
if (index >= list_info->elements)
return((void *) NULL);
- (void) LockSemaphoreInfo(list_info->semaphore);
+ LockSemaphoreInfo(list_info->semaphore);
if (index == 0)
{
value=list_info->head->value;
- (void) UnlockSemaphoreInfo(list_info->semaphore);
+ UnlockSemaphoreInfo(list_info->semaphore);
return(value);
}
if (index == (list_info->elements-1))
{
value=list_info->tail->value;
- (void) UnlockSemaphoreInfo(list_info->semaphore);
+ UnlockSemaphoreInfo(list_info->semaphore);
return(value);
}
next=list_info->head;
- for (i=0; i < (long) index; i++)
+ for (i=0; i < (ssize_t) index; i++)
next=next->next;
value=next->value;
- (void) UnlockSemaphoreInfo(list_info->semaphore);
+ UnlockSemaphoreInfo(list_info->semaphore);
return(value);
}
\f
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-% Specify the HashPointerType() method in NewHashmap() to find an entry
-% in a hash-map based on the address of a pointer.
+% HashPointerType() finds an entry in a hash-map based on the address of a
+% pointer.
%
% The format of the HashPointerType method is:
%
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-% Specify the HashStringType() method in NewHashmap() to find an entry
-% in a hash-map based on the contents of a string.
+% HashStringType() finds an entry in a hash-map based on the contents of a
+% string.
%
% The format of the HashStringType method is:
%
const unsigned char
*digest;
- register long
+ register ssize_t
i;
SignatureInfo
const unsigned char
*digest;
- register long
+ register ssize_t
i;
SignatureInfo
% The format of the InsertValueInLinkedList method is:
%
% MagickBooleanType InsertValueInLinkedList(ListInfo *list_info,
-% const unsigned long index,const void *value)
+% const size_t index,const void *value)
%
% A description of each parameter follows:
%
%
*/
MagickExport MagickBooleanType InsertValueInLinkedList(
- LinkedListInfo *list_info,const unsigned long index,const void *value)
+ LinkedListInfo *list_info,const size_t index,const void *value)
{
register ElementInfo
*next;
- register long
+ register ssize_t
i;
assert(list_info != (LinkedListInfo *) NULL);
if ((index > list_info->elements) ||
(list_info->elements == list_info->capacity))
return(MagickFalse);
- next=(ElementInfo *) AcquireAlignedMemory(1,sizeof(*next));
+ next=(ElementInfo *) AcquireMagickMemory(sizeof(*next));
if (next == (ElementInfo *) NULL)
return(MagickFalse);
next->value=(void *) value;
next->next=(ElementInfo *) NULL;
- (void) LockSemaphoreInfo(list_info->semaphore);
+ LockSemaphoreInfo(list_info->semaphore);
if (list_info->elements == 0)
{
if (list_info->next == (ElementInfo *) NULL)
element=list_info->head;
next->next=element->next;
- for (i=1; i < (long) index; i++)
+ for (i=1; i < (ssize_t) index; i++)
{
element=element->next;
next->next=element->next;
}
}
list_info->elements++;
- (void) UnlockSemaphoreInfo(list_info->semaphore);
+ UnlockSemaphoreInfo(list_info->semaphore);
return(MagickTrue);
}
\f
register ElementInfo
*next;
- register long
+ register ssize_t
i;
assert(list_info != (LinkedListInfo *) NULL);
return(MagickFalse);
if (list_info->elements == list_info->capacity)
return(MagickFalse);
- next=(ElementInfo *) AcquireAlignedMemory(1,sizeof(*next));
+ next=(ElementInfo *) AcquireMagickMemory(sizeof(*next));
if (next == (ElementInfo *) NULL)
return(MagickFalse);
next->value=(void *) value;
element=(ElementInfo *) NULL;
- (void) LockSemaphoreInfo(list_info->semaphore);
+ LockSemaphoreInfo(list_info->semaphore);
next->next=list_info->head;
while (next->next != (ElementInfo *) NULL)
{
- i=compare(value,next->next->value);
+ i=(ssize_t) compare(value,next->next->value);
if ((i < 0) || ((replace != (void **) NULL) && (i == 0)))
{
if (i == 0)
list_info->tail=next;
}
list_info->elements++;
- (void) UnlockSemaphoreInfo(list_info->semaphore);
+ UnlockSemaphoreInfo(list_info->semaphore);
return(MagickTrue);
}
\f
register ElementInfo
*next;
- register long
+ register ssize_t
i;
assert(list_info != (LinkedListInfo *) NULL);
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
if (array == (void **) NULL)
return(MagickFalse);
- (void) LockSemaphoreInfo(list_info->semaphore);
+ LockSemaphoreInfo(list_info->semaphore);
next=list_info->head;
for (i=0; next != (ElementInfo *) NULL; i++)
{
array[i]=next->value;
next=next->next;
}
- (void) UnlockSemaphoreInfo(list_info->semaphore);
+ UnlockSemaphoreInfo(list_info->semaphore);
return(MagickTrue);
}
\f
%
% The format of the NewHashmap method is:
%
-% HashmapInfo *NewHashmap(const unsigned long capacity,
+% HashmapInfo *NewHashmap(const size_t capacity,
% size_t (*hash)(const void *),
% MagickBooleanType (*compare)(const void *,const void *),
% void *(*relinquish_key)(void *),void *(*relinquish_value)(void *))
% the hash-map.
%
*/
-MagickExport HashmapInfo *NewHashmap(const unsigned long capacity,
+MagickExport HashmapInfo *NewHashmap(const size_t capacity,
size_t (*hash)(const void *),
MagickBooleanType (*compare)(const void *,const void *),
void *(*relinquish_key)(void *),void *(*relinquish_value)(void *))
HashmapInfo
*hashmap_info;
- hashmap_info=(HashmapInfo *) AcquireAlignedMemory(1,sizeof(*hashmap_info));
+ hashmap_info=(HashmapInfo *) AcquireMagickMemory(sizeof(*hashmap_info));
if (hashmap_info == (HashmapInfo *) NULL)
ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
(void) ResetMagickMemory(hashmap_info,0,sizeof(*hashmap_info));
%
% The format of the NewLinkedList method is:
%
-% LinkedListInfo *NewLinkedList(const unsigned long capacity)
+% LinkedListInfo *NewLinkedList(const size_t capacity)
%
% A description of each parameter follows:
%
% o capacity: the maximum number of elements in the list.
%
*/
-MagickExport LinkedListInfo *NewLinkedList(const unsigned long capacity)
+MagickExport LinkedListInfo *NewLinkedList(const size_t capacity)
{
LinkedListInfo
*list_info;
- list_info=(LinkedListInfo *) AcquireAlignedMemory(1,sizeof(*list_info));
+ list_info=(LinkedListInfo *) AcquireMagickMemory(sizeof(*list_info));
if (list_info == (LinkedListInfo *) NULL)
ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
(void) ResetMagickMemory(list_info,0,sizeof(*list_info));
- list_info->capacity=capacity == 0 ? (unsigned long) (~0) : capacity;
+ list_info->capacity=capacity == 0 ? (size_t) (~0) : capacity;
list_info->elements=0;
list_info->head=(ElementInfo *) NULL;
list_info->tail=(ElementInfo *) NULL;
{
#define MaxCapacities 20
- const unsigned long
+ const size_t
capacities[MaxCapacities] =
{
17, 31, 61, 131, 257, 509, 1021, 2053, 4099, 8191, 16381, 32771,
register ElementInfo
*next;
- register long
+ register ssize_t
i;
- unsigned long
+ size_t
capacity;
/*
/*
Copy entries to new hashmap with increased capacity.
*/
- for (i=0; i < (long) hashmap_info->capacity; i++)
+ for (i=0; i < (ssize_t) hashmap_info->capacity; i++)
{
list_info=hashmap_info->map[i];
if (list_info == (LinkedListInfo *) NULL)
continue;
- (void) LockSemaphoreInfo(list_info->semaphore);
+ LockSemaphoreInfo(list_info->semaphore);
for (next=list_info->head; next != (ElementInfo *) NULL; )
{
element=next;
map_info->elements++;
}
list_info->signature=(~MagickSignature);
- (void) UnlockSemaphoreInfo(list_info->semaphore);
+ UnlockSemaphoreInfo(list_info->semaphore);
DestroySemaphoreInfo(&list_info->semaphore);
list_info=(LinkedListInfo *) RelinquishMagickMemory(list_info);
}
LinkedListInfo
*list_info;
- register unsigned long
+ register size_t
i;
assert(hashmap_info != (HashmapInfo *) NULL);
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
if ((key == (void *) NULL) || (value == (void *) NULL))
return(MagickFalse);
- next=(EntryInfo *) AcquireAlignedMemory(1,sizeof(*next));
+ next=(EntryInfo *) AcquireMagickMemory(sizeof(*next));
if (next == (EntryInfo *) NULL)
return(MagickFalse);
- (void) LockSemaphoreInfo(hashmap_info->semaphore);
+ LockSemaphoreInfo(hashmap_info->semaphore);
next->hash=hashmap_info->hash(key);
next->key=(void *) key;
next->value=(void *) value;
if (InsertValueInLinkedList(list_info,0,next) == MagickFalse)
{
next=(EntryInfo *) RelinquishMagickMemory(next);
- (void) UnlockSemaphoreInfo(hashmap_info->semaphore);
+ UnlockSemaphoreInfo(hashmap_info->semaphore);
return(MagickFalse);
}
if (list_info->elements >= (hashmap_info->capacity-1))
if (IncreaseHashmapCapacity(hashmap_info) == MagickFalse)
{
- (void) UnlockSemaphoreInfo(hashmap_info->semaphore);
+ UnlockSemaphoreInfo(hashmap_info->semaphore);
return(MagickFalse);
}
hashmap_info->entries++;
- (void) UnlockSemaphoreInfo(hashmap_info->semaphore);
+ UnlockSemaphoreInfo(hashmap_info->semaphore);
return(MagickTrue);
}
\f
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
if ((list_info->elements == 0) || (value == (const void *) NULL))
return((void *) NULL);
- (void) LockSemaphoreInfo(list_info->semaphore);
+ LockSemaphoreInfo(list_info->semaphore);
if (value == list_info->head->value)
{
if (list_info->next == list_info->head)
next=next->next;
if (next->next == (ElementInfo *) NULL)
{
- (void) UnlockSemaphoreInfo(list_info->semaphore);
+ UnlockSemaphoreInfo(list_info->semaphore);
return((void *) NULL);
}
element=next->next;
element=(ElementInfo *) RelinquishMagickMemory(element);
}
list_info->elements--;
- (void) UnlockSemaphoreInfo(list_info->semaphore);
+ UnlockSemaphoreInfo(list_info->semaphore);
return((void *) value);
}
\f
% The format of the RemoveElementFromLinkedList method is:
%
% void *RemoveElementFromLinkedList(LinkedListInfo *list_info,
-% const unsigned long index)
+% const size_t index)
%
% A description of each parameter follows:
%
%
*/
MagickExport void *RemoveElementFromLinkedList(LinkedListInfo *list_info,
- const unsigned long index)
+ const size_t index)
{
ElementInfo
*next;
- register long
+ register ssize_t
i;
void
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
if (index >= list_info->elements)
return((void *) NULL);
- (void) LockSemaphoreInfo(list_info->semaphore);
+ LockSemaphoreInfo(list_info->semaphore);
if (index == 0)
{
if (list_info->next == list_info->head)
*element;
next=list_info->head;
- for (i=1; i < (long) index; i++)
+ for (i=1; i < (ssize_t) index; i++)
next=next->next;
element=next->next;
next->next=element->next;
element=(ElementInfo *) RelinquishMagickMemory(element);
}
list_info->elements--;
- (void) UnlockSemaphoreInfo(list_info->semaphore);
+ UnlockSemaphoreInfo(list_info->semaphore);
return(value);
}
\f
LinkedListInfo
*list_info;
- register unsigned long
+ register size_t
i;
size_t
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
if (key == (const void *) NULL)
return((void *) NULL);
- (void) LockSemaphoreInfo(hashmap_info->semaphore);
+ LockSemaphoreInfo(hashmap_info->semaphore);
hash=hashmap_info->hash(key);
list_info=hashmap_info->map[hash % hashmap_info->capacity];
if (list_info != (LinkedListInfo *) NULL)
entry=(EntryInfo *) RemoveElementFromLinkedList(list_info,i);
if (entry == (EntryInfo *) NULL)
{
- (void) UnlockSemaphoreInfo(hashmap_info->semaphore);
+ UnlockSemaphoreInfo(hashmap_info->semaphore);
return((void *) NULL);
}
if (hashmap_info->relinquish_key != (void *(*)(void *)) NULL)
value=entry->value;
entry=(EntryInfo *) RelinquishMagickMemory(entry);
hashmap_info->entries--;
- (void) UnlockSemaphoreInfo(hashmap_info->semaphore);
+ UnlockSemaphoreInfo(hashmap_info->semaphore);
return(value);
}
}
entry=(EntryInfo *) GetNextValueInLinkedList(list_info);
}
}
- (void) UnlockSemaphoreInfo(hashmap_info->semaphore);
+ UnlockSemaphoreInfo(hashmap_info->semaphore);
return((void *) NULL);
}
\f
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
if (list_info->elements == 0)
return((void *) NULL);
- (void) LockSemaphoreInfo(list_info->semaphore);
+ LockSemaphoreInfo(list_info->semaphore);
if (list_info->next == list_info->tail)
list_info->next=(ElementInfo *) NULL;
if (list_info->elements == 1UL)
next->next=(ElementInfo *) NULL;
}
list_info->elements--;
- (void) UnlockSemaphoreInfo(list_info->semaphore);
+ UnlockSemaphoreInfo(list_info->semaphore);
return(value);
}
\f
assert(hashmap_info->signature == MagickSignature);
if (hashmap_info->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
- (void) LockSemaphoreInfo(hashmap_info->semaphore);
+ LockSemaphoreInfo(hashmap_info->semaphore);
hashmap_info->next=0;
hashmap_info->head_of_list=MagickFalse;
- (void) UnlockSemaphoreInfo(hashmap_info->semaphore);
+ UnlockSemaphoreInfo(hashmap_info->semaphore);
}
\f
/*
assert(list_info->signature == MagickSignature);
if (list_info->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
- (void) LockSemaphoreInfo(list_info->semaphore);
+ LockSemaphoreInfo(list_info->semaphore);
list_info->next=list_info->head;
- (void) UnlockSemaphoreInfo(list_info->semaphore);
+ UnlockSemaphoreInfo(list_info->semaphore);
}