From 405da5f84b072ea97b69359454899f45d92d24b6 Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Wed, 22 May 2024 00:00:29 +0200 Subject: WIP LSP client This contains the start of an LSP client. Nothing (except starting the LSP server) works at the moment and the feature is disabled by default. --- test/minibuffer.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'test/minibuffer.c') diff --git a/test/minibuffer.c b/test/minibuffer.c index 28ee277..b4f8c05 100644 --- a/test/minibuffer.c +++ b/test/minibuffer.c @@ -19,7 +19,7 @@ static struct frame_allocator *g_alloc = NULL; void *alloc_fn(size_t sz) { return frame_allocator_alloc(g_alloc, sz); } -void init() { +void init(void) { if (b.name == NULL) { settings_init(10); timers_init(); @@ -31,7 +31,7 @@ void init() { windows_init(100, 100, &b, &b, &bufs); } -void destroy() { +void destroy(void) { if (b.name != NULL) { buffer_destroy(&b); buffers_destroy(&bufs); @@ -41,7 +41,7 @@ void destroy() { } } -void test_minibuffer_echo() { +void test_minibuffer_echo(void) { struct buffer_view view = buffer_view_create(&b, false, false); // TODO: how to clear this? @@ -84,9 +84,15 @@ void test_minibuffer_echo() { destroy(); } -int32_t fake(struct command_ctx ctx, int argc, const char *argv[]) { return 0; } +int32_t fake(struct command_ctx ctx, int argc, const char *argv[]) { + (void)ctx; + (void)argc; + (void)argv; -void test_minibuffer_prompt() { + return 0; +} + +void test_minibuffer_prompt(void) { init(); ASSERT(!minibuffer_focused(), "Minibuffer should not be focused without reason"); @@ -111,7 +117,7 @@ void test_minibuffer_prompt() { destroy(); } -void run_minibuffer_tests() { +void run_minibuffer_tests(void) { run_test(test_minibuffer_echo); run_test(test_minibuffer_prompt); } -- cgit v1.2.3