mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 19:48:32 +00:00
queue: Implement a more flexible event queue
This commit is contained in:
16
test/unit/fixtures/queue.c
Normal file
16
test/unit/fixtures/queue.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include "nvim/event/queue.h"
|
||||
#include "queue.h"
|
||||
|
||||
|
||||
void ut_queue_put(Queue *queue, const char *str)
|
||||
{
|
||||
queue_put(queue, NULL, 1, str);
|
||||
}
|
||||
|
||||
const char *ut_queue_get(Queue *queue)
|
||||
{
|
||||
Event event = queue_get(queue);
|
||||
return event.argv[0];
|
||||
}
|
Reference in New Issue
Block a user