clist: you got to be fucking kidding me

This was my actual intention behind the previous
commit.  I should really go to bed.
main
anna 3 years ago
parent 9ba75c564a
commit 7af90dc798
Signed by: fef
GPG Key ID: EC22E476DC2D3D84

@ -11,20 +11,20 @@ void clist_init(struct clist *head)
void clist_add(struct clist *head, struct clist *new)
{
head->next->prev = new;
new->next = head->next;
head->prev->next = new;
new->next = head;
new->prev = head;
head->next = new;
new->prev = head->prev;
head->prev = new;
}
void clist_add_first(struct clist *head, struct clist *new)
{
head->prev->next = new;
new->next = head;
head->next->prev = new;
new->next = head->next;
new->prev = head->prev;
head->prev = new;
new->prev = head;
head->next = new;
}
void clist_del(struct clist *node)

@ -1,19 +0,0 @@
/* See the end of this file for copyright and license terms. */
#pragma once
/*
* This file is part of GayBSD.
* Copyright (c) 2021 fef <owo@fef.moe>.
*
* GayBSD is nonviolent software: you may only use, redistribute, and/or
* modify it under the terms of the Cooperative Nonviolent Public License
* (CNPL) as found in the LICENSE file in the source code root directory
* or at <https://git.pixie.town/thufie/npl-builder>; either version 7
* of the license, or (at your option) any later version.
*
* GayBSD comes with ABSOLUTELY NO WARRANTY, to the extent
* permitted by applicable law. See the CNPL for details.
*/
Loading…
Cancel
Save