url = https://github.com/dragonblocks/dragonnet
[submodule "deps/linenoise"]
path = deps/linenoise
- url = https://github.com/antirez/linenoise
+ url = https://github.com/msteveb/linenoise
[submodule "deps/protogen"]
path = deps/protogen
url = https://github.com/dragonblocks/protogen
-Subproject commit 97d2850af13c339369093b78abe5265845d78220
+Subproject commit 9430e6e4e7fc09e8ca6a2fd5e3fcafa07818542e
add_compile_definitions("USE_DRAGONNET")
add_compile_definitions("RESSOURCE_PATH=\"${RESSOURCE_PATH}\"")
-add_compile_options(-Wall -Wextra -Werror -Wno-address-of-packed-member -fmax-errors=4)
+add_compile_options(-Wall -Wextra -Werror -Wno-address-of-packed-member -Wno-implicit-fallthrough -fmax-errors=4)
link_libraries(
pthread
"${DEPS_DIR}/dragonstd/tree.c"
"${DEPS_DIR}/dragonstd/bits/compare.c"
"${DEPS_DIR}/linenoise/linenoise.c"
+ "${DEPS_DIR}/linenoise/stringbuf.c"
+ "${DEPS_DIR}/linenoise/utf8.c"
"${DEPS_DIR}/perlin/perlin.c"
color.c
config.c
while (!interrupt.set) switch (client_auth.state) {
case AUTH_INIT:
if (client_auth.name)
- linenoiseFree(client_auth.name);
+ free(client_auth.name);
if (!(client_auth.name = linenoise("Enter name: ")))
return;
{
pthread_cond_destroy(&client_auth.cv);
pthread_mutex_destroy(&client_auth.mtx);
- linenoiseFree(client_auth.name);
+ free(client_auth.name);
}