Change RTL::LinkedList::RemoveEntryList() routine signature
This commit is contained in:
@@ -221,7 +221,7 @@ RtlMultiplyLargeInteger(IN LARGE_INTEGER Multiplicand,
|
|||||||
|
|
||||||
XTCLINK
|
XTCLINK
|
||||||
XTCDECL
|
XTCDECL
|
||||||
VOID
|
BOOLEAN
|
||||||
RtlRemoveEntryList(IN PLIST_ENTRY Entry);
|
RtlRemoveEntryList(IN PLIST_ENTRY Entry);
|
||||||
|
|
||||||
XTCLINK
|
XTCLINK
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ namespace RTL
|
|||||||
IN PLIST_ENTRY Entry);
|
IN PLIST_ENTRY Entry);
|
||||||
STATIC XTCDECL BOOLEAN ListEmpty(IN PLIST_ENTRY ListHead);
|
STATIC XTCDECL BOOLEAN ListEmpty(IN PLIST_ENTRY ListHead);
|
||||||
STATIC XTCDECL BOOLEAN ListLoop(IN PLIST_ENTRY ListHead);
|
STATIC XTCDECL BOOLEAN ListLoop(IN PLIST_ENTRY ListHead);
|
||||||
STATIC XTCDECL VOID RemoveEntryList(IN PLIST_ENTRY Entry);
|
STATIC XTCDECL BOOLEAN RemoveEntryList(IN PLIST_ENTRY Entry);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -763,16 +763,16 @@ RtlMultiplyLargeInteger(IN LARGE_INTEGER Multiplicand,
|
|||||||
* @param Entry
|
* @param Entry
|
||||||
* Pointer to the entry that will be removed from the list.
|
* Pointer to the entry that will be removed from the list.
|
||||||
*
|
*
|
||||||
* @return This routine does not return any value.
|
* @return This routine returns TRUE if the list is empty after removal, or FALSE otherwise.
|
||||||
*
|
*
|
||||||
* @since XT 1.0
|
* @since XT 1.0
|
||||||
*/
|
*/
|
||||||
XTCLINK
|
XTCLINK
|
||||||
XTCDECL
|
XTCDECL
|
||||||
VOID
|
BOOLEAN
|
||||||
RtlRemoveEntryList(IN PLIST_ENTRY Entry)
|
RtlRemoveEntryList(IN PLIST_ENTRY Entry)
|
||||||
{
|
{
|
||||||
RTL::LinkedList::RemoveEntryList(Entry);
|
return RTL::LinkedList::RemoveEntryList(Entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -162,14 +162,18 @@ RTL::LinkedList::ListLoop(IN PLIST_ENTRY ListHead)
|
|||||||
* @param Entry
|
* @param Entry
|
||||||
* Pointer to the entry that will be removed from the list.
|
* Pointer to the entry that will be removed from the list.
|
||||||
*
|
*
|
||||||
* @return This routine does not return any value.
|
* @return This routine returns TRUE if the list is empty after removal, or FALSE otherwise.
|
||||||
*
|
*
|
||||||
* @since XT 1.0
|
* @since XT 1.0
|
||||||
*/
|
*/
|
||||||
XTCDECL
|
XTCDECL
|
||||||
VOID
|
BOOLEAN
|
||||||
RTL::LinkedList::RemoveEntryList(IN PLIST_ENTRY Entry)
|
RTL::LinkedList::RemoveEntryList(IN PLIST_ENTRY Entry)
|
||||||
{
|
{
|
||||||
|
/* Remove entry from the list */
|
||||||
Entry->Flink->Blink = Entry->Blink;
|
Entry->Flink->Blink = Entry->Blink;
|
||||||
Entry->Blink->Flink = Entry->Flink;
|
Entry->Blink->Flink = Entry->Flink;
|
||||||
|
|
||||||
|
/* Return TRUE if list is empty, or FALSE otherwise */
|
||||||
|
return (BOOLEAN)(Entry->Blink == Entry->Flink);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user