๐ŸŽ€ Toy Gemini Client Written in C99
cli retro gemini gemtext terminal tls lightweight minimal c99 gemini-protocol
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fmt(source): refactor include method

Fuwn 0182a1d2 f56035ef

+23 -23
+5 -5
viv/cli.c
··· 1 1 /* Copyright (C) 2021-2021 Fuwn 2 2 * SPDX-License-Identifier: GPL-3.0-only */ 3 3 4 - #include "viv/cli.h" 4 + #include <viv/cli.h> 5 5 6 6 #include <stdlib.h> 7 7 8 - #include "viv/flag.h" 9 - #include "viv/gemini.h" 10 - #include "viv/log.h" 11 - #include "viv/viv.h" 8 + #include <viv/flag.h> 9 + #include <viv/gemini.h> 10 + #include <viv/log.h> 11 + #include <viv/viv.h> 12 12 13 13 CLI_handle CLI_cli(int argc, const char *argv[]) { 14 14 CLI_handle cli_handle;
+1 -1
viv/dynamic_array.c
··· 1 1 /* http://www.martinbroadhurst.com/dynamic-array-in-c.html */ 2 2 3 - #include "viv/dynamic_array.h" 3 + #include <viv/dynamic_array.h> 4 4 5 5 #include <stdlib.h> 6 6 #include <string.h>
+1 -1
viv/flag.c
··· 3 3 4 4 #define FLAG_IMPLEMENTATION 5 5 6 - #include "viv/flag.h" 6 + #include <viv/flag.h>
+3 -3
viv/gemini.c
··· 1 1 /* Copyright (C) 2021-2021 Fuwn 2 2 * SPDX-License-Identifier: GPL-3.0-only */ 3 3 4 - #include "viv/gemini.h" 4 + #include <viv/gemini.h> 5 5 6 6 #include <stdlib.h> 7 7 #include <string.h> 8 8 9 - #include "viv/log.h" 10 - #include "viv/viv.h" 9 + #include <viv/log.h> 10 + #include <viv/viv.h> 11 11 12 12 void GEMINI_parse_header( 13 13 const char *header,
+2 -2
viv/log.c
··· 1 1 /* Copyright (C) 2021-2021 Fuwn 2 2 * SPDX-License-Identifier: GPL-3.0-only */ 3 3 4 - #include "viv/log.h" 4 + #include <viv/log.h> 5 5 6 6 #include <stdarg.h> 7 7 #include <stdio.h> 8 8 #include <stdlib.h> 9 9 #include <string.h> 10 10 11 - #include "viv/viv.h" 11 + #include <viv/viv.h> 12 12 13 13 int VIV_LOG_log(VIV_LOG_level level, const char *format, ...) { 14 14 FILE *log_file;
+3 -3
viv/ssl.c
··· 1 1 /* Copyright (C) 2021-2021 Fuwn 2 2 * SPDX-License-Identifier: GPL-3.0-only */ 3 3 4 - #include "viv/ssl.h" 4 + #include <viv/ssl.h> 5 5 6 6 #include <arpa/inet.h> 7 7 #include <malloc.h> ··· 11 11 #include <strings.h> 12 12 #include <unistd.h> 13 13 14 - #include "viv/log.h" 15 - #include "viv/viv.h" 14 + #include <viv/log.h> 15 + #include <viv/viv.h> 16 16 17 17 VIV_SSL_connection_context VIV_SSL_open_connection(const char **hostname, int port) { 18 18 VIV_SSL_connection_context connection_context;
+1 -1
viv/ui.c
··· 3 3 4 4 /* NOTE: This source file contains *lots* of filler and testing code! */ 5 5 6 - #include "viv/ui.h" 6 + #include <viv/ui.h> 7 7 8 8 #include <menu.h> 9 9 #include <stdlib.h>
+7 -7
viv/viv.c
··· 1 1 /* Copyright (C) 2021-2021 Fuwn 2 2 * SPDX-License-Identifier: GPL-3.0-only */ 3 3 4 - #include "viv/viv.h" 4 + #include <viv/viv.h> 5 5 6 6 #include <stdbool.h> 7 7 #include <netdb.h> ··· 10 10 #include <string.h> 11 11 #include <unistd.h> 12 12 13 - #include "viv/dynamic_array.h" 14 - #include "viv/cli.h" 15 - #include "viv/gemini.h" 16 - #include "viv/log.h" 17 - #include "viv/ssl.h" 18 - #include "viv/ui.h" 13 + #include <viv/dynamic_array.h> 14 + #include <viv/cli.h> 15 + #include <viv/gemini.h> 16 + #include <viv/log.h> 17 + #include <viv/ssl.h> 18 + #include <viv/ui.h> 19 19 20 20 int main(int argc, char *argv[]) { 21 21 CLI_handle cli_handle;