mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 15:21:47 +00:00
event/multiqueue.c: Rename "queue" to "multiqueue".
`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).
This commit is contained in:
@@ -207,7 +207,7 @@ static int do_os_system(char **argv,
|
||||
Stream in, out, err;
|
||||
LibuvProcess uvproc = libuv_process_init(&main_loop, &buf);
|
||||
Process *proc = &uvproc.process;
|
||||
Queue *events = queue_new_child(main_loop.events);
|
||||
MultiQueue *events = multiqueue_new_child(main_loop.events);
|
||||
proc->events = events;
|
||||
proc->argv = argv;
|
||||
proc->in = input != NULL ? &in : NULL;
|
||||
@@ -221,7 +221,7 @@ static int do_os_system(char **argv,
|
||||
msg_outtrans((char_u *)prog);
|
||||
msg_putchar('\n');
|
||||
}
|
||||
queue_free(events);
|
||||
multiqueue_free(events);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -277,8 +277,8 @@ static int do_os_system(char **argv,
|
||||
}
|
||||
}
|
||||
|
||||
assert(queue_empty(events));
|
||||
queue_free(events);
|
||||
assert(multiqueue_empty(events));
|
||||
multiqueue_free(events);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
Reference in New Issue
Block a user