Change file naming

This is a follow-up to previous commit.
This commit is contained in:
2025-02-02 21:40:31 +03:00
parent c89cf8f316
commit 586a9ace21
23 changed files with 41 additions and 40 deletions

View File

@@ -66,20 +66,20 @@ endif(TESTING)
# Set library code # Set library code
set(BH_SOURCE set(BH_SOURCE
src/algo.c src/Algo.c
src/hashmap.c src/Hashmap.c
src/io.c src/IO.c
src/math.c src/Math.c
src/queue.c src/Queue.c
) )
set(BH_HEADER set(BH_HEADER
include/bh/common.h include/BH/Common.h
include/bh/algo.h include/BH/Algo.h
include/bh/hashmap.h include/BH/Hashmap.h
include/bh/io.h include/BH/IO.h
include/bh/math.h include/BH/Math.h
include/bh/queue.h include/BH/Queue.h
) )
set(BH_INCLUDE_DIRS set(BH_INCLUDE_DIRS
@@ -93,21 +93,21 @@ if(WIN32)
# Add platform dependent files # Add platform dependent files
list(APPEND BH_SOURCE list(APPEND BH_SOURCE
src/win32/file.c src/win32/File.c
) )
elseif(UNIX) elseif(UNIX)
message(STATUS "Platform: Unix (Linux/BSD/MacOS X)") message(STATUS "Platform: Unix (Linux/BSD/MacOS X)")
# Add platform dependent files # Add platform dependent files
list(APPEND BH_SOURCE list(APPEND BH_SOURCE
src/posix/file.c src/posix/File.c
) )
else() else()
message(STATUS "Platform: Unknown") message(STATUS "Platform: Unknown")
# Add platform dependent files # Add platform dependent files
list(APPEND BH_SOURCE list(APPEND BH_SOURCE
src/dummy/file.c src/dummy/File.c
) )
endif() endif()

View File

@@ -2,7 +2,7 @@
#define BH_ALGO_H #define BH_ALGO_H
#include "common.h" #include "Common.h"
/** /**

View File

@@ -2,7 +2,7 @@
#define BH_HASHMAP_H #define BH_HASHMAP_H
#include "common.h" #include "Common.h"
typedef struct BH_Hashmap BH_Hashmap; typedef struct BH_Hashmap BH_Hashmap;

View File

@@ -2,7 +2,7 @@
#define BH_IO_H #define BH_IO_H
#include "common.h" #include "Common.h"
#define BH_IO_INFO_CB 0x0000 #define BH_IO_INFO_CB 0x0000

View File

@@ -2,7 +2,7 @@
#define BH_MATH_H #define BH_MATH_H
#include "common.h" #include "Common.h"
/** /**

View File

@@ -2,7 +2,7 @@
#define BH_QUEUE_H #define BH_QUEUE_H
#include "common.h" #include "Common.h"
typedef struct BH_Queue BH_Queue; typedef struct BH_Queue BH_Queue;

View File

@@ -1,4 +1,4 @@
#include <bh/algo.h> #include <BH/Algo.h>
#include <string.h> #include <string.h>

View File

@@ -1,4 +1,4 @@
#include <bh/hashmap.h> #include <BH/Hashmap.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@@ -1,4 +1,4 @@
#include <bh/io.h> #include <BH/IO.h>
#include <malloc.h> #include <malloc.h>

View File

@@ -1,4 +1,4 @@
#include <bh/math.h> #include <BH/Math.h>
#include <math.h> #include <math.h>
#include <string.h> #include <string.h>

View File

@@ -1,4 +1,4 @@
#include <bh/queue.h> #include <BH/Queue.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@@ -1,4 +1,4 @@
#include <bh/io.h> #include <BH/IO.h>
typedef struct BH_File typedef struct BH_File
{ {

View File

@@ -1,4 +1,5 @@
#include <bh/io.h> #include <BH/IO.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@@ -1,4 +1,4 @@
#include <bh/io.h> #include <BH/IO.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <windows.h> #include <windows.h>

View File

@@ -1,5 +1,5 @@
#include <bh/algo.h> #include <BH/Algo.h>
#include <bh/unit.h> #include <BH/Unit.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>

View File

@@ -1,5 +1,5 @@
#include <bh/unit.h> #include <BH/IO.h>
#include <bh/io.h> #include <BH/Unit.h>
#include <string.h> #include <string.h>

View File

@@ -1,5 +1,5 @@
#include <bh/hashmap.h> #include <BH/Hashmap.h>
#include <bh/unit.h> #include <BH/Unit.h>
static size_t DBG_PtrIntHash(const void *ptr) static size_t DBG_PtrIntHash(const void *ptr)

View File

@@ -1,5 +1,5 @@
#include <bh/math.h> #include <BH/Math.h>
#include <bh/unit.h> #include <BH/Unit.h>
#define ACCEPTABLE_DELTA 0.0001f #define ACCEPTABLE_DELTA 0.0001f

View File

@@ -1,5 +1,5 @@
#include <bh/queue.h> #include <BH/Queue.h>
#include <bh/unit.h> #include <BH/Unit.h>
static int NewFree(void) static int NewFree(void)

View File

@@ -10,11 +10,11 @@ set(CMAKE_C_EXTENSIONS OFF)
# Library code # Library code
set(BHUNIT_SOURCE set(BHUNIT_SOURCE
src/unit.c src/Unit.c
) )
set(BHUNIT_HEADER set(BHUNIT_HEADER
include/bh/unit.h include/BH/Unit.h
) )
# Library # Library

View File

@@ -1,4 +1,4 @@
#include <bh/unit.h> #include <BH/Unit.h>
#include <stdlib.h> #include <stdlib.h>
typedef struct BH_Unit typedef struct BH_Unit