Use portable getline
parent
9b70226963
commit
bf970db625
|
@ -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
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 9d102be3fb622bcd3fab9f7feaafe2b1abf3980a
|
|
@ -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"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include <dragonstd/tree.h>
|
||||
#include <getline/getline.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include <dragonstd/tree.h>
|
||||
#include <getline/getline.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <pthread.h>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#include <getline/getline.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "server/schematic.h"
|
||||
|
|
Loading…
Reference in New Issue