Skip to content

Commit d0a21da

Browse files
committed
feat port: removed any dependencies on the system
- Enhance the system abstraction layer. - Using bfdev to customize types. Signed-off-by: John Sanpe <sanpeqf@gmail.com>
1 parent 73f1777 commit d0a21da

File tree

227 files changed

+2517
-2264
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+2517
-2264
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ set(BFDEV_ARCH generic)
2323
set(BFDEV_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
2424
set(BFDEV_HEADER_PATH ${PROJECT_SOURCE_DIR}/include)
2525
set(BFDEV_SOURCE_PATH ${PROJECT_SOURCE_DIR}/src)
26+
set(BFDEV_PORT_PATH ${PROJECT_SOURCE_DIR}/port)
2627
set(BFDEV_DOCUMENT_PATH ${PROJECT_SOURCE_DIR}/docs)
2728
set(BFDEV_GENERATED_PATH ${PROJECT_BINARY_DIR}/generated)
2829
set(BFDEV_EXPORT_PATH ${PROJECT_BINARY_DIR}/export)

build.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ set(BFDEV_INCLUDE_DIRS
6565
include_directories(${BFDEV_INCLUDE_DIRS})
6666
include(${BFDEV_ARCH_PATH}/build.cmake)
6767
include(${BFDEV_SOURCE_PATH}/build.cmake)
68+
include(${BFDEV_PORT_PATH}/build.cmake)
6869

6970
set(BFDEV_LIBRARY_HEADER
7071
${BFDEV_HEADER}

examples/ascii85/utils.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <stdio.h>
1010
#include <stdlib.h>
11+
#include <stdbool.h>
1112
#include <string.h>
1213
#include <bfdev/log.h>
1314
#include <bfdev/errname.h>

examples/base32/utils.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <stdio.h>
1010
#include <stdlib.h>
11+
#include <stdbool.h>
1112
#include <string.h>
1213
#include <bfdev/log.h>
1314
#include <bfdev/errname.h>

examples/base64/utils.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <stdio.h>
1010
#include <stdlib.h>
11+
#include <stdbool.h>
1112
#include <string.h>
1213
#include <bfdev/log.h>
1314
#include <bfdev/errname.h>

examples/bloom/simple.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include <stdio.h>
77
#include <stdlib.h>
8+
#include <stdbool.h>
89
#include <stdint.h>
910
#include <errno.h>
1011
#include <err.h>

examples/btree/selftest.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55

66
#include <stdio.h>
7+
#include <stdint.h>
78
#include <stdlib.h>
89
#include <time.h>
910
#include <string.h>

examples/cache/simple.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <stdio.h>
1010
#include <stdlib.h>
11+
#include <stdint.h>
1112
#include <time.h>
1213
#include <err.h>
1314
#include <bfdev/cache.h>

examples/crypto/utils.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <stdio.h>
1010
#include <string.h>
11+
#include <stdint.h>
1112
#include <bfdev/log.h>
1213
#include <bfdev/errname.h>
1314
#include <bfdev/sha1.h>

examples/fsm/console.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include <stdio.h>
77
#include <stdint.h>
8+
#include <stdbool.h>
89
#include <bfdev/fsm.h>
910

1011
enum {

0 commit comments

Comments
 (0)