aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/event
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-03-24 12:17:21 +0100
committerGitHub <noreply@github.com>2022-03-24 12:17:21 +0100
commit534f5a419d2ef1c2ad78204a4de48388cc2d7fa2 (patch)
tree6f284e02cc872165085d526d7f1d1fc3c56467bb /src/nvim/event
parentfcd57980f91ca01227b46de1659e6228115e1278 (diff)
downloadrneovim-534f5a419d2ef1c2ad78204a4de48388cc2d7fa2.tar.gz
rneovim-534f5a419d2ef1c2ad78204a4de48388cc2d7fa2.tar.bz2
rneovim-534f5a419d2ef1c2ad78204a4de48388cc2d7fa2.zip
refactor: convert function comments to doxygen format (#17710)
Diffstat (limited to 'src/nvim/event')
-rw-r--r--src/nvim/event/process.c2
-rw-r--r--src/nvim/event/rstream.c18
2 files changed, 10 insertions, 10 deletions
diff --git a/src/nvim/event/process.c b/src/nvim/event/process.c
index dae4dad16d..653fffae1c 100644
--- a/src/nvim/event/process.c
+++ b/src/nvim/event/process.c
@@ -237,7 +237,7 @@ void process_stop(Process *proc) FUNC_ATTR_NONNULL_ALL
KILL_TIMEOUT_MS, 0);
}
-// Frees process-owned resources.
+/// Frees process-owned resources.
void process_free(Process *proc) FUNC_ATTR_NONNULL_ALL
{
if (proc->argv != NULL) {
diff --git a/src/nvim/event/rstream.c b/src/nvim/event/rstream.c
index e51689543f..26b5ce3b75 100644
--- a/src/nvim/event/rstream.c
+++ b/src/nvim/event/rstream.c
@@ -85,7 +85,7 @@ static void on_rbuffer_nonfull(RBuffer *buf, void *data)
// Callbacks used by libuv
-// Called by libuv to allocate memory for reading.
+/// Called by libuv to allocate memory for reading.
static void alloc_cb(uv_handle_t *handle, size_t suggested, uv_buf_t *buf)
{
Stream *stream = handle->data;
@@ -95,9 +95,9 @@ static void alloc_cb(uv_handle_t *handle, size_t suggested, uv_buf_t *buf)
buf->len = UV_BUF_LEN(write_count);
}
-// Callback invoked by libuv after it copies the data into the buffer provided
-// by `alloc_cb`. This is also called on EOF or when `alloc_cb` returns a
-// 0-length buffer.
+/// Callback invoked by libuv after it copies the data into the buffer provided
+/// by `alloc_cb`. This is also called on EOF or when `alloc_cb` returns a
+/// 0-length buffer.
static void read_cb(uv_stream_t *uvstream, ssize_t cnt, const uv_buf_t *buf)
{
Stream *stream = uvstream->data;
@@ -134,11 +134,11 @@ static void read_cb(uv_stream_t *uvstream, ssize_t cnt, const uv_buf_t *buf)
invoke_read_cb(stream, nread, false);
}
-// Called by the by the 'idle' handle to emulate a reading event
-//
-// Idle callbacks are invoked once per event loop:
-// - to perform some very low priority activity.
-// - to keep the loop "alive" (so there is always an event to process)
+/// Called by the by the 'idle' handle to emulate a reading event
+///
+/// Idle callbacks are invoked once per event loop:
+/// - to perform some very low priority activity.
+/// - to keep the loop "alive" (so there is always an event to process)
static void fread_idle_cb(uv_idle_t *handle)
{
uv_fs_t req;