mirror of
https://github.com/neovim/neovim.git
synced 2024-12-27 14:21:31 -07:00
6186df3562
`lib/queue.h` implements a basic queue. `event/queue.c` implements a specialized data structure on top of lib/queue.h; it is not a "normal" queue. Rename the specialized multi-level queue implemented in event/queue.c to "multiqueue", to avoid confusion when reading the code. Before this change one can eventually notice that "macros (uppercase symbols) are for the normal queue, lowercase operations are for the multi-level queue", but that is unnecessary friction for new developers (or existing developers just visiting this part of the codebase).
17 lines
316 B
C
17 lines
316 B
C
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include "nvim/event/multiqueue.h"
|
|
#include "multiqueue.h"
|
|
|
|
|
|
void ut_multiqueue_put(MultiQueue *this, const char *str)
|
|
{
|
|
multiqueue_put(this, NULL, 1, str);
|
|
}
|
|
|
|
const char *ut_multiqueue_get(MultiQueue *this)
|
|
{
|
|
Event event = multiqueue_get(this);
|
|
return event.argv[0];
|
|
}
|