diff --git a/include/bkfifo.h b/include/bkfifo.h index acee3fd..c53749a 100644 --- a/include/bkfifo.h +++ b/include/bkfifo.h @@ -1,7 +1,7 @@ #ifndef _BKFIFO_H_ #define _BKFIFO_H_ -struct _kfifo_ { +struct __bkfifo { unsigned int in; unsigned int out; unsigned int mask; @@ -9,14 +9,14 @@ struct _kfifo_ { void* data; }; -#define _SRTUCT_KFIFO_COMMON_(datatype, recsize, ptrtype) \ +#define __SRTUCT_BKFIFO_COMMON(datatype, recsize, ptrtype) \ union { \ struct _kfifo_ kfifo; \ } -#define _SRTUCT_KFIFO_(type, size, recsize, ptrtype) \ +#define __SRTUCT_BKFIFO(type, size, recsize, ptrtype) \ { \ - _STRUCT_KFIFO_COMMON_(type, recsize, ptrtype); \ + __STRUCT_BKFIFO_COMMON(type, recsize, ptrtype); \ type buf[((size < 2) || (size & (size - 1))) ? -1 : size]; \ } diff --git a/include/llog.h b/include/llog.h new file mode 100644 index 0000000..56b6e97 Binary files /dev/null and b/include/llog.h differ