idk
Some checks failed
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=OFF (push) Successful in 9s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=OFF (push) Successful in 11s
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=ON (push) Successful in 12s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=ON (push) Successful in 14s
CMake / ubuntu-latest - shared=OFF, pthread=ON, posix=ON (push) Successful in 14s
CMake / ubuntu-latest - shared=ON, pthread=ON, posix=ON (push) Has been cancelled
Some checks failed
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=OFF (push) Successful in 9s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=OFF (push) Successful in 11s
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=ON (push) Successful in 12s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=ON (push) Successful in 14s
CMake / ubuntu-latest - shared=OFF, pthread=ON, posix=ON (push) Successful in 14s
CMake / ubuntu-latest - shared=ON, pthread=ON, posix=ON (push) Has been cancelled
Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
@@ -52,5 +52,5 @@ install(DIRECTORY ${INCLUDE_DIR}/ DESTINATION include)
|
|||||||
if(MSVC)
|
if(MSVC)
|
||||||
target_compile_options(${PROJECT_NAME} PRIVATE /W4 /permissive-)
|
target_compile_options(${PROJECT_NAME} PRIVATE /W4 /permissive-)
|
||||||
else()
|
else()
|
||||||
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -pedantic -Werror -Wno-newline-eof)
|
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -pedantic -Werror -Wno-newline-eof -Wno-language-extension-token)
|
||||||
endif()
|
endif()
|
||||||
|
12
src/dcfg.c
12
src/dcfg.c
@@ -26,15 +26,12 @@
|
|||||||
#ifdef DCFG_PTHREAD_SUPPORT
|
#ifdef DCFG_PTHREAD_SUPPORT
|
||||||
# include <pthread.h>
|
# include <pthread.h>
|
||||||
#else
|
#else
|
||||||
# ifdef __USE_POSIX199506
|
# if defined __USE_POSIX199506 || defined __USE_UNIX98
|
||||||
# undef __USE_POSIX199506
|
# else
|
||||||
# endif
|
|
||||||
# ifdef __USE_UNIX98
|
|
||||||
# undef __USE_UNIX98
|
|
||||||
# endif
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int unused;
|
int unused;
|
||||||
} pthread_mutex_t;
|
} pthread_mutex_t;
|
||||||
|
# endif
|
||||||
|
|
||||||
void pthread_mutex_init(pthread_mutex_t *, void *);
|
void pthread_mutex_init(pthread_mutex_t *, void *);
|
||||||
void pthread_mutex_destroy(pthread_mutex_t *);
|
void pthread_mutex_destroy(pthread_mutex_t *);
|
||||||
@@ -1073,7 +1070,8 @@ Value *ast_to_value(dcfg_Instance *instance, AST *root)
|
|||||||
|
|
||||||
dcfg_Value *dcfg_parse(dcfg_Instance *instance, dcfg_StringView const file_path)
|
dcfg_Value *dcfg_parse(dcfg_Instance *instance, dcfg_StringView const file_path)
|
||||||
{
|
{
|
||||||
char path_buf[file_path.size + 1] = {};
|
char path_buf[file_path.size + 1];
|
||||||
|
memset(path_buf, 0, sizeof(path_buf));
|
||||||
memcpy(path_buf, file_path.data, file_path.size);
|
memcpy(path_buf, file_path.data, file_path.size);
|
||||||
|
|
||||||
char *abs = instance->realpath(path_buf);
|
char *abs = instance->realpath(path_buf);
|
||||||
|
Reference in New Issue
Block a user