dev 将kfifo改名为bkfifo

This commit is contained in:
zzy 2023-10-26 12:30:54 +08:00
parent 7fc7a8c9ad
commit ee66e7076a
4 changed files with 8 additions and 8 deletions

4
.gitignore vendored
View File

@ -10,5 +10,5 @@
!test/server/CMakeLists.txt
!test/thread/thread.c
!test/thread/CMakeLists.txt
!test/kfifo/kfifo.c
!test/kfifo/CMakeLists.txt
!test/bkfifo/bkfifo.c
!test/bkfifo/CMakeLists.txt

View File

@ -1,5 +1,5 @@
#ifndef _KFIFO_H_
#define _KFIFO_H_
#ifndef _BKFIFO_H_
#define _BKFIFO_H_
struct _kfifo_ {
unsigned int in;
@ -1506,4 +1506,4 @@ __kfifo_uint_must_check_helper( \
#endif
#endif // _KFIFO_H_
#endif // _BKFIFO_H_

View File

@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 3.22.1)
project(kfifo)
project(bkfifo)
set(EXECUTABLE_OUTPUT_PATH ../)
set(CMAKE_C_STANDARD 99)
set(SRC_FILE kfifo.c)
set(SRC_FILE bkfifo.c)
include_directories(../../include)
add_executable(${PROJECT_NAME} ${SRC_FILE})

View File

@ -1,7 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <kfifo.h>
#include <bkfifo.h>
int test01(int size) {
return ((size < 2) || (size & (size - 1))) ? -1 : size;