clist: add circular list api

This commit is contained in:
anna 2021-09-20 02:03:01 +02:00
parent a34fd6caaa
commit 89e7a4eb47
Signed by: fef
GPG key ID: EC22E476DC2D3D84
5 changed files with 212 additions and 4 deletions

View file

@ -3,11 +3,11 @@
#include <stdarg.h> /* from clang */
#include <string.h>
#include <gay/cdefs.h>
#include <gay/config.h>
#include <gay/errno.h>
#include <gay/kprintf.h>
#include <gay/types.h>
#include <gay/util.h>
#if __SIZEOF_INT__ == 2
/* 5 decimal digits of 65535 (2 ** 16 - 1) */