dev 将kfifo改名为bkfifo
This commit is contained in:
parent
7fc7a8c9ad
commit
ee66e7076a
4
.gitignore
vendored
4
.gitignore
vendored
@ -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
|
@ -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_
|
@ -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})
|
@ -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;
|
Loading…
x
Reference in New Issue
Block a user