mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 16:36:30 +00:00
refactor: format header files with uncrustify #15877
* refactor: format header files with uncrustify * fixup(justin): skip formatting of terminfo_defs.h * fixup: force winsock2 to be included first * fixup: simplify disable/enable directive to "uncrustify:off/on"
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
#ifndef NVIM_API_PRIVATE_DEFS_H
|
||||
#define NVIM_API_PRIVATE_DEFS_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "nvim/func_attr.h"
|
||||
#include "nvim/types.h"
|
||||
|
||||
#define ARRAY_DICT_INIT {.size = 0, .capacity = 0, .items = NULL}
|
||||
#define STRING_INIT {.data = NULL, .size = 0}
|
||||
#define ARRAY_DICT_INIT { .size = 0, .capacity = 0, .items = NULL }
|
||||
#define STRING_INIT { .data = NULL, .size = 0 }
|
||||
#define OBJECT_INIT { .type = kObjectTypeNil }
|
||||
#define ERROR_INIT { .type = kErrorTypeNone, .msg = NULL }
|
||||
#define REMOTE_TYPE(type) typedef handle_T type
|
||||
|
@@ -4,12 +4,12 @@
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/api/private/defs.h"
|
||||
#include "nvim/vim.h"
|
||||
#include "nvim/getchar.h"
|
||||
#include "nvim/memory.h"
|
||||
#include "nvim/decoration.h"
|
||||
#include "nvim/ex_eval.h"
|
||||
#include "nvim/getchar.h"
|
||||
#include "nvim/lib/kvec.h"
|
||||
#include "nvim/memory.h"
|
||||
#include "nvim/vim.h"
|
||||
|
||||
#define OBJECT_OBJ(o) o
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
name.size = fixsize; \
|
||||
name.items = name##__items; \
|
||||
|
||||
#define STATIC_CSTR_AS_STRING(s) ((String) {.data = s, .size = sizeof(s) - 1})
|
||||
#define STATIC_CSTR_AS_STRING(s) ((String) { .data = s, .size = sizeof(s) - 1 })
|
||||
|
||||
/// Create a new String instance, putting data in allocated memory
|
||||
///
|
||||
@@ -137,7 +137,7 @@ typedef struct {
|
||||
msg_list = &private_msg_list; \
|
||||
private_msg_list = NULL; \
|
||||
code \
|
||||
msg_list = saved_msg_list; /* Restore the exception context. */ \
|
||||
msg_list = saved_msg_list; /* Restore the exception context. */ \
|
||||
} while (0)
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
|
Reference in New Issue
Block a user