mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 14:58:18 +00:00
Fix some styles
This commit is contained in:
@@ -74,6 +74,7 @@
|
||||
#define INVALID_DEVICE_ID UINT64_MAX
|
||||
|
||||
#define HAVE_BUFLIST_MATCH
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "buffer.c.generated.h"
|
||||
#endif
|
||||
@@ -84,7 +85,6 @@
|
||||
# define dev_T unsigned
|
||||
#endif
|
||||
|
||||
|
||||
static char *msg_loclist = N_("[Location List]");
|
||||
static char *msg_qflist = N_("[Quickfix List]");
|
||||
static char *e_auabort = N_("E855: Autocommands caused command to abort");
|
||||
|
@@ -1,7 +1,6 @@
|
||||
#ifndef NVIM_CHARSET_H
|
||||
#define NVIM_CHARSET_H
|
||||
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "charset.h.generated.h"
|
||||
#endif
|
||||
|
@@ -51,4 +51,4 @@ typedef struct cursor_entry {
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "cursor_shape.h.generated.h"
|
||||
#endif
|
||||
#endif /* NVIM_CURSOR_SHAPE_H */
|
||||
#endif // NVIM_CURSOR_SHAPE_H
|
||||
|
@@ -1,7 +1,6 @@
|
||||
#ifndef NVIM_DIFF_H
|
||||
#define NVIM_DIFF_H
|
||||
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "diff.h.generated.h"
|
||||
#endif
|
||||
|
@@ -1,7 +1,6 @@
|
||||
#ifndef NVIM_DIGRAPH_H
|
||||
#define NVIM_DIGRAPH_H
|
||||
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "digraph.h.generated.h"
|
||||
#endif
|
||||
|
@@ -14,8 +14,7 @@
|
||||
|
||||
typedef int (*IndentGetter)(void);
|
||||
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "edit.h.generated.h"
|
||||
#endif
|
||||
#endif /* NVIM_EDIT_H */
|
||||
#endif // NVIM_EDIT_H
|
||||
|
@@ -416,15 +416,10 @@ static dictitem_T vimvars_var; /* variable used for v: */
|
||||
# include "eval.c.generated.h"
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
#define FNE_INCL_BR 1 /* find_name_end(): include [] in name */
|
||||
#define FNE_CHECK_START 2 /* find_name_end(): check name starts with
|
||||
valid character */
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Initialize the global and v: variables.
|
||||
*/
|
||||
|
@@ -46,6 +46,7 @@
|
||||
#include "nvim/os/os.h"
|
||||
#include "nvim/os/shell.h"
|
||||
|
||||
|
||||
/* Growarray to store info about already sourced scripts.
|
||||
* Also store the dev/ino, so that we don't have to stat() each
|
||||
* script when going through the list. */
|
||||
|
@@ -119,7 +119,6 @@ static int cmd_hkmap = 0; /* Hebrew mapping during command line */
|
||||
|
||||
static int cmd_fkmap = 0; /* Farsi mapping during command line */
|
||||
|
||||
|
||||
/*
|
||||
* getcmdline() - accept a command line starting with firstc.
|
||||
*
|
||||
|
@@ -17,4 +17,4 @@ typedef struct foldinfo {
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "fold.h.generated.h"
|
||||
#endif
|
||||
#endif /* NVIM_FOLD_H */
|
||||
#endif // NVIM_FOLD_H
|
||||
|
@@ -74,4 +74,4 @@ typedef struct {
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "hardcopy.h.generated.h"
|
||||
#endif
|
||||
#endif /* NVIM_HARDCOPY_H */
|
||||
#endif // NVIM_HARDCOPY_H
|
||||
|
@@ -502,4 +502,4 @@ enum key_extra {
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "keymap.h.generated.h"
|
||||
#endif
|
||||
#endif /* NVIM_KEYMAP_H */
|
||||
#endif // NVIM_KEYMAP_H
|
||||
|
@@ -52,6 +52,7 @@
|
||||
#include "nvim/os/os.h"
|
||||
#include "nvim/os/shell.h"
|
||||
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "misc2.c.generated.h"
|
||||
#endif
|
||||
|
@@ -60,4 +60,4 @@ typedef struct cmdarg_S {
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "normal.h.generated.h"
|
||||
#endif
|
||||
#endif /* NVIM_NORMAL_H */
|
||||
#endif // NVIM_NORMAL_H
|
||||
|
@@ -10,8 +10,8 @@
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/os/event_defs.h"
|
||||
#include "nvim/os/rstream_defs.h"
|
||||
#include "nvim/os/event_defs.h"
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "os/job.h.generated.h"
|
||||
|
@@ -4,8 +4,8 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <uv.h>
|
||||
|
||||
#include "nvim/os/event_defs.h"
|
||||
|
||||
#include "nvim/os/rstream_defs.h"
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
|
@@ -2,7 +2,6 @@
|
||||
#define NVIM_OS_SHELL_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/types.h"
|
||||
|
||||
// Flags for mch_call_shell() second argument
|
||||
@@ -17,11 +16,7 @@ typedef enum {
|
||||
kShellOptHideMess = 128, ///< previously a global variable from os_unix.c
|
||||
} ShellOpts;
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "os/shell.h.generated.h"
|
||||
#endif
|
||||
#endif // NVIM_OS_SHELL_H
|
||||
|
||||
|
@@ -3,9 +3,7 @@
|
||||
|
||||
#include "nvim/os/event_defs.h"
|
||||
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "os/signal.h.generated.h"
|
||||
#endif
|
||||
#endif // NVIM_OS_SIGNAL_H
|
||||
|
||||
|
@@ -4,13 +4,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "os/time.h.generated.h"
|
||||
#endif
|
||||
#endif // NVIM_OS_TIME_H
|
||||
|
||||
|
@@ -34,6 +34,7 @@ typedef struct {
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "os/wstream.c.generated.h"
|
||||
#endif
|
||||
|
||||
/// Creates a new WStream instance. A WStream encapsulates all the boilerplate
|
||||
/// necessary for writing to a libuv stream.
|
||||
///
|
||||
|
@@ -20,4 +20,4 @@ typedef struct {
|
||||
colnr_T col; /* column number */
|
||||
} lpos_T;
|
||||
|
||||
#endif /* NVIM_POS_H */
|
||||
#endif // NVIM_POS_H
|
||||
|
@@ -1,8 +1,7 @@
|
||||
#ifndef NVIM_QUICKFIX_H
|
||||
#define NVIM_QUICKFIX_H
|
||||
/* quickfix.c */
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "quickfix.h.generated.h"
|
||||
#endif
|
||||
#endif /* NVIM_QUICKFIX_H */
|
||||
#endif // NVIM_QUICKFIX_H
|
||||
|
@@ -1,8 +1,7 @@
|
||||
#ifndef NVIM_SCREEN_H
|
||||
#define NVIM_SCREEN_H
|
||||
/* screen.c */
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "screen.h.generated.h"
|
||||
#endif
|
||||
#endif /* NVIM_SCREEN_H */
|
||||
#endif // NVIM_SCREEN_H
|
||||
|
@@ -1,8 +1,7 @@
|
||||
#ifndef NVIM_SEARCH_H
|
||||
#define NVIM_SEARCH_H
|
||||
/* search.c */
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "search.h.generated.h"
|
||||
#endif
|
||||
#endif /* NVIM_SEARCH_H */
|
||||
#endif // NVIM_SEARCH_H
|
||||
|
@@ -5,9 +5,8 @@
|
||||
|
||||
typedef int guicolor_T;
|
||||
|
||||
/* syntax.c */
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "syntax.h.generated.h"
|
||||
#endif
|
||||
|
||||
#endif /* NVIM_SYNTAX_H */
|
||||
#endif // NVIM_SYNTAX_H
|
||||
|
@@ -16,4 +16,4 @@ typedef struct {
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "tag.h.generated.h"
|
||||
#endif
|
||||
#endif /* NVIM_TAG_H */
|
||||
#endif // NVIM_TAG_H
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef NVIM_TERM_H
|
||||
#define NVIM_TERM_H
|
||||
/* term.c */
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "term.h.generated.h"
|
||||
#endif
|
||||
#endif /* NVIM_TERM_H */
|
||||
#endif // NVIM_TERM_H
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef NVIM_UI_H
|
||||
#define NVIM_UI_H
|
||||
/* ui.c */
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "ui.h.generated.h"
|
||||
#endif
|
||||
#endif /* NVIM_UI_H */
|
||||
#endif // NVIM_UI_H
|
||||
|
@@ -6,4 +6,4 @@
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "undo.h.generated.h"
|
||||
#endif
|
||||
#endif /* NVIM_UNDO_H */
|
||||
#endif // NVIM_UNDO_H
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef NVIM_WINDOW_H
|
||||
#define NVIM_WINDOW_H
|
||||
/* window.c */
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "window.h.generated.h"
|
||||
#endif
|
||||
#endif /* NVIM_WINDOW_H */
|
||||
#endif // NVIM_WINDOW_H
|
||||
|
Reference in New Issue
Block a user