Change RTL::LinkedList::RemoveEntryList() routine signature
Some checks failed
Builds / ExectOS (amd64, debug) (push) Failing after 25s
Builds / ExectOS (i686, release) (push) Failing after 23s
Builds / ExectOS (amd64, release) (push) Failing after 44s
Builds / ExectOS (i686, debug) (push) Failing after 42s

This commit is contained in:
2026-02-10 18:24:26 +01:00
parent 874d303f83
commit edb40dd62b
4 changed files with 11 additions and 7 deletions

View File

@@ -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

View File

@@ -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);
}; };
} }

View File

@@ -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);
} }
/** /**

View File

@@ -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);
} }