This commit is contained in:
parent
8788076d39
commit
1c5c1b4011
59 changed files with 24871 additions and 56 deletions
52
Utils/Libs/GLib/ll.c
Normal file
52
Utils/Libs/GLib/ll.c
Normal file
|
@ -0,0 +1,52 @@
|
|||
/* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
|
||||
File: LL.C
|
||||
|
||||
Notes: General Link List Handling Code
|
||||
|
||||
Author: G Robert Liddon @ Croydon
|
||||
Created: Wednesday 6th October 1994
|
||||
|
||||
Copyright (C) 1994 G Robert Liddon
|
||||
All rights reserved.
|
||||
ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */
|
||||
|
||||
/* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
|
||||
Includes
|
||||
ÄÄÄÄÄÄÄÄ */
|
||||
#include "ll.h"
|
||||
|
||||
/* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
|
||||
Defines
|
||||
ÄÄÄÄÄÄÄ */
|
||||
|
||||
/* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
|
||||
Detach from a list
|
||||
ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */
|
||||
void LL_DetachFromList(LinkList **Head,LinkList *ThisObj)
|
||||
{
|
||||
if (ThisObj->Prev)
|
||||
ThisObj->Prev->Next=ThisObj->Next;
|
||||
else
|
||||
*Head=ThisObj->Next;
|
||||
|
||||
if (ThisObj->Next)
|
||||
ThisObj->Next->Prev=ThisObj->Prev;
|
||||
}
|
||||
|
||||
/* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
|
||||
Add To A List
|
||||
ÄÄÄÄÄÄÄÄÄÄÄÄÄ */
|
||||
void LL_AddToList(LinkList **Head,LinkList *ThisObj)
|
||||
{
|
||||
ThisObj->Prev=NULL;
|
||||
|
||||
if ((ThisObj->Next=*Head))
|
||||
ThisObj->Next->Prev=ThisObj;
|
||||
|
||||
*Head=ThisObj;
|
||||
}
|
||||
|
||||
|
||||
/* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
|
||||
ends
|
||||
ÄÄÄÄ */
|
Loading…
Add table
Add a link
Reference in a new issue