Use portable getline

master
Elias Fleckenstein 2022-04-24 18:07:35 +02:00
parent 9b70226963
commit bf970db625
No known key found for this signature in database
GPG Key ID: 06927A5199D6C9B2
6 changed files with 9 additions and 1 deletions

3
.gitmodules vendored
View File

@ -25,3 +25,6 @@
[submodule "deps/protogen"]
path = deps/protogen
url = https://github.com/dragonblocks/protogen
[submodule "deps/getline"]
path = deps/getline
url = https://github.com/dragonblocks/getline

1
deps/getline vendored Submodule

@ -0,0 +1 @@
Subproject commit 9d102be3fb622bcd3fab9f7feaafe2b1abf3980a

View File

@ -46,7 +46,7 @@ endif()
add_compile_definitions("USE_DRAGONNET")
add_compile_definitions("RESSOURCE_PATH=\"${RESSOURCE_PATH}\"")
add_compile_options(-Wall -Wextra -Werror -Wno-address-of-packed-member -Wno-implicit-fallthrough -fmax-errors=4)
add_compile_options(-Wall -Wextra -Werror -Wno-address-of-packed-member -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-maybe-uninitialized -fmax-errors=4)
link_libraries(
pthread
@ -90,6 +90,7 @@ set(COMMON_SOURCES
"${DEPS_DIR}/dragonstd/refcount.c"
"${DEPS_DIR}/dragonstd/tree.c"
"${DEPS_DIR}/dragonstd/bits/compare.c"
"${DEPS_DIR}/getline/getline.c"
"${DEPS_DIR}/linenoise/linenoise.c"
"${DEPS_DIR}/linenoise/stringbuf.c"
"${DEPS_DIR}/linenoise/utf8.c"

View File

@ -1,4 +1,5 @@
#include <dragonstd/tree.h>
#include <getline/getline.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -1,4 +1,5 @@
#include <dragonstd/tree.h>
#include <getline/getline.h>
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>

View File

@ -1,3 +1,4 @@
#include <getline/getline.h>
#include <stdio.h>
#include <stdlib.h>
#include "server/schematic.h"