Files
neovim/test/unit/fixtures/multiqueue.c
ii14 7190dba017 refactor: remove use of reserved c++ keywords
libnvim couldn't be easily used in C++ due to the use of reserved keywords.

Additionally, add explicit casts to *alloc function calls used in inline
functions, as C++ doesn't allow implicit casts from void pointers.
2023-04-06 22:39:50 +02:00

20 lines
477 B
C

// This is an open source non-commercial project. Dear PVS-Studio, please check
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include <string.h>
#include <stdlib.h>
#include "nvim/event/multiqueue.h"
#include "multiqueue.h"
void ut_multiqueue_put(MultiQueue *self, const char *str)
{
multiqueue_put(self, NULL, 1, str);
}
const char *ut_multiqueue_get(MultiQueue *self)
{
Event event = multiqueue_get(self);
return event.argv[0];
}