From 880957ad4e3fc0ff681025f5e29c5eccf797c564 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sat, 10 May 2014 00:53:36 +0400 Subject: Move documentation from function declarations to definitions Uses a perl script to move it (scripts/movedocs.pl) --- src/nvim/os/env.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/nvim/os/env.c') diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c index e7cfb8b176..6d20028c05 100644 --- a/src/nvim/os/env.c +++ b/src/nvim/os/env.c @@ -51,6 +51,9 @@ char *os_getenvname_at_index(size_t index) } +/// Get the process ID of the Neovim process. +/// +/// @return the process ID. int64_t os_get_pid() { #ifdef _WIN32 @@ -60,6 +63,10 @@ int64_t os_get_pid() #endif } +/// Get the hostname of the machine runing Neovim. +/// +/// @param hostname Buffer to store the hostname. +/// @param len Length of `hostname`. void os_get_hostname(char *hostname, size_t len) { #ifdef HAVE_SYS_UTSNAME_H -- cgit