diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2021-09-17 16:38:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-17 07:38:16 -0700 |
commit | 867e8885991ae450019c18aa5e42546bd4b62c2c (patch) | |
tree | f130aaed5d3f46ce994871efad7e33f3dd3ef9b8 /src/nvim/msgpack_rpc/server.c | |
parent | 1ec3d37192194d6961621f17fc5a185356586339 (diff) | |
download | rneovim-867e8885991ae450019c18aa5e42546bd4b62c2c.tar.gz rneovim-867e8885991ae450019c18aa5e42546bd4b62c2c.tar.bz2 rneovim-867e8885991ae450019c18aa5e42546bd4b62c2c.zip |
refactor(style): switch-case formatting, "uncrustify:indent-off" #15669
* refactor: disable formatting for attribute in macro
* fixup: disable/enable uncrustify with uncrustify:indent-off/on
* fixup: stop indenting contents inside braces in case
* fixup: remove case brace if no variable declaration
Diffstat (limited to 'src/nvim/msgpack_rpc/server.c')
-rw-r--r-- | src/nvim/msgpack_rpc/server.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nvim/msgpack_rpc/server.c b/src/nvim/msgpack_rpc/server.c index 062ea784ca..e954e4b3a3 100644 --- a/src/nvim/msgpack_rpc/server.c +++ b/src/nvim/msgpack_rpc/server.c @@ -2,24 +2,24 @@ // it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com #include <assert.h> +#include <inttypes.h> #include <stdlib.h> #include <string.h> -#include <inttypes.h> -#include "nvim/msgpack_rpc/channel.h" -#include "nvim/msgpack_rpc/server.h" -#include "nvim/os/os.h" -#include "nvim/event/socket.h" #include "nvim/ascii.h" #include "nvim/eval.h" +#include "nvim/event/socket.h" +#include "nvim/fileio.h" #include "nvim/garray.h" -#include "nvim/vim.h" +#include "nvim/log.h" #include "nvim/main.h" #include "nvim/memory.h" -#include "nvim/log.h" -#include "nvim/fileio.h" +#include "nvim/msgpack_rpc/channel.h" +#include "nvim/msgpack_rpc/server.h" +#include "nvim/os/os.h" #include "nvim/path.h" #include "nvim/strings.h" +#include "nvim/vim.h" #define MAX_CONNECTIONS 32 #define LISTEN_ADDRESS_ENV_VAR "NVIM_LISTEN_ADDRESS" @@ -90,7 +90,7 @@ char *server_address_new(void) static uint32_t count = 0; char template[ADDRESS_MAX_SIZE]; snprintf(template, ADDRESS_MAX_SIZE, - "\\\\.\\pipe\\nvim-%" PRIu64 "-%" PRIu32, os_get_pid(), count++); + "\\\\.\\pipe\\nvim-%" PRIu64 "-%" PRIu32, os_get_pid(), count++); return xstrdup(template); #else return (char *)vim_tempname(); |