Fix some styles

This commit is contained in:
ZyX
2014-06-01 02:11:35 +04:00
committed by Thiago de Arruda
parent bf4fb30121
commit dca28e55c7
32 changed files with 28 additions and 52 deletions

View File

@@ -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");

View File

@@ -1,7 +1,6 @@
#ifndef NVIM_CHARSET_H
#define NVIM_CHARSET_H
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "charset.h.generated.h"
#endif

View File

@@ -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

View File

@@ -1,7 +1,6 @@
#ifndef NVIM_DIFF_H
#define NVIM_DIFF_H
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "diff.h.generated.h"
#endif

View File

@@ -1,7 +1,6 @@
#ifndef NVIM_DIGRAPH_H
#define NVIM_DIGRAPH_H
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "digraph.h.generated.h"
#endif

View File

@@ -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

View File

@@ -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.
*/

View File

@@ -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. */

View File

@@ -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.
*

View File

@@ -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

View File

@@ -74,4 +74,4 @@ typedef struct {
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "hardcopy.h.generated.h"
#endif
#endif /* NVIM_HARDCOPY_H */
#endif // NVIM_HARDCOPY_H

View File

@@ -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

View File

@@ -52,6 +52,7 @@
#include "nvim/os/os.h"
#include "nvim/os/shell.h"
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "misc2.c.generated.h"
#endif

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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.
///

View File

@@ -20,4 +20,4 @@ typedef struct {
colnr_T col; /* column number */
} lpos_T;
#endif /* NVIM_POS_H */
#endif // NVIM_POS_H

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -16,4 +16,4 @@ typedef struct {
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "tag.h.generated.h"
#endif
#endif /* NVIM_TAG_H */
#endif // NVIM_TAG_H

View File

@@ -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

View File

@@ -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

View File

@@ -6,4 +6,4 @@
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "undo.h.generated.h"
#endif
#endif /* NVIM_UNDO_H */
#endif // NVIM_UNDO_H

View File

@@ -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