mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
refactor: format all C files under nvim/ #15977
* refactor: format all C files under nvim * refactor: disable formatting for Vim-owned files: * src/nvim/indent_c.c * src/nvim/regexp.c * src/nvim/regexp_nfa.c * src/nvim/testdir/samples/memfile_test.c
This commit is contained in:
parent
ee342d3cef
commit
40be47e0fa
@ -1166,8 +1166,7 @@ Boolean nvim_buf_del_mark(Buffer buffer, String name, Error *err)
|
||||
/// @return true if the mark was set, else false.
|
||||
/// @see |nvim_buf_del_mark()|
|
||||
/// @see |nvim_buf_get_mark()|
|
||||
Boolean nvim_buf_set_mark(Buffer buffer, String name,
|
||||
Integer line, Integer col, Error *err)
|
||||
Boolean nvim_buf_set_mark(Buffer buffer, String name, Integer line, Integer col, Error *err)
|
||||
FUNC_API_SINCE(8)
|
||||
{
|
||||
bool res = false;
|
||||
|
@ -14,8 +14,8 @@
|
||||
#include "nvim/api/tabpage.h"
|
||||
#include "nvim/api/ui.h"
|
||||
#include "nvim/api/vim.h"
|
||||
#include "nvim/api/window.h"
|
||||
#include "nvim/api/win_config.h"
|
||||
#include "nvim/api/window.h"
|
||||
#include "nvim/log.h"
|
||||
#include "nvim/map.h"
|
||||
#include "nvim/msgpack_rpc/helpers.h"
|
||||
|
@ -4,9 +4,9 @@
|
||||
#include <assert.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#include "nvim/api/private/defs.h"
|
||||
#include "nvim/api/private/helpers.h"
|
||||
|
@ -141,8 +141,8 @@ typedef struct {
|
||||
} while (0)
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "keysets.h.generated.h"
|
||||
# include "api/private/helpers.h.generated.h"
|
||||
# include "keysets.h.generated.h"
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/macros.h"
|
||||
#include "nvim/func_attr.h"
|
||||
#include "nvim/macros.h"
|
||||
#include "nvim/os/os_defs.h"
|
||||
|
||||
// Definitions of various common control characters.
|
||||
|
@ -1,15 +1,15 @@
|
||||
#ifndef NVIM_BUFFER_H
|
||||
#define NVIM_BUFFER_H
|
||||
|
||||
#include "nvim/vim.h"
|
||||
#include "nvim/window.h"
|
||||
#include "nvim/pos.h" // for linenr_T
|
||||
#include "nvim/ex_cmds_defs.h" // for exarg_T
|
||||
#include "nvim/screen.h" // for StlClickRecord
|
||||
#include "nvim/func_attr.h"
|
||||
#include "nvim/eval.h"
|
||||
#include "nvim/ex_cmds_defs.h" // for exarg_T
|
||||
#include "nvim/func_attr.h"
|
||||
#include "nvim/macros.h"
|
||||
#include "nvim/memline.h"
|
||||
#include "nvim/pos.h" // for linenr_T
|
||||
#include "nvim/screen.h" // for StlClickRecord
|
||||
#include "nvim/vim.h"
|
||||
#include "nvim/window.h"
|
||||
|
||||
// Values for buflist_getfile()
|
||||
enum getf_values {
|
||||
@ -75,14 +75,12 @@ static inline void buf_set_changedtick(buf_T *const buf,
|
||||
///
|
||||
/// @param[out] buf Buffer to set changedtick in.
|
||||
/// @param[in] changedtick New value.
|
||||
static inline void buf_set_changedtick(buf_T *const buf,
|
||||
const varnumber_T changedtick)
|
||||
static inline void buf_set_changedtick(buf_T *const buf, const varnumber_T changedtick)
|
||||
{
|
||||
typval_T old_val = buf->changedtick_di.di_tv;
|
||||
|
||||
#ifndef NDEBUG
|
||||
dictitem_T *const changedtick_di = tv_dict_find(
|
||||
buf->b_vars, S_LEN("changedtick"));
|
||||
dictitem_T *const changedtick_di = tv_dict_find(buf->b_vars, S_LEN("changedtick"));
|
||||
assert(changedtick_di != NULL);
|
||||
assert(changedtick_di->di_tv.v_type == VAR_NUMBER);
|
||||
assert(changedtick_di->di_tv.v_lock == VAR_FIXED);
|
||||
|
@ -111,9 +111,8 @@ typedef uint16_t disptick_T; // display tick type
|
||||
// for synstate_T (needs reg_extmatch_T, win_T, buf_T)
|
||||
#include "nvim/syntax_defs.h"
|
||||
// for sign_entry_T
|
||||
#include "nvim/sign_defs.h"
|
||||
|
||||
#include "nvim/os/fs_defs.h" // for FileID
|
||||
#include "nvim/sign_defs.h"
|
||||
#include "nvim/terminal.h" // for Terminal
|
||||
|
||||
/*
|
||||
|
@ -1,13 +1,13 @@
|
||||
#ifndef NVIM_CHANNEL_H
|
||||
#define NVIM_CHANNEL_H
|
||||
|
||||
#include "nvim/main.h"
|
||||
#include "nvim/event/socket.h"
|
||||
#include "nvim/event/process.h"
|
||||
#include "nvim/os/pty_process.h"
|
||||
#include "nvim/event/libuv_process.h"
|
||||
#include "nvim/eval/typval.h"
|
||||
#include "nvim/event/libuv_process.h"
|
||||
#include "nvim/event/process.h"
|
||||
#include "nvim/event/socket.h"
|
||||
#include "nvim/main.h"
|
||||
#include "nvim/msgpack_rpc/channel_defs.h"
|
||||
#include "nvim/os/pty_process.h"
|
||||
|
||||
#define CHAN_STDIO 1
|
||||
#define CHAN_STDERR 2
|
||||
|
@ -1,11 +1,11 @@
|
||||
#ifndef NVIM_CHARSET_H
|
||||
#define NVIM_CHARSET_H
|
||||
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/pos.h"
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/eval/typval.h"
|
||||
#include "nvim/option_defs.h"
|
||||
#include "nvim/pos.h"
|
||||
#include "nvim/types.h"
|
||||
|
||||
/// Return the folded-case equivalent of the given character
|
||||
///
|
||||
|
@ -2,6 +2,7 @@
|
||||
#define NVIM_CONTEXT_H
|
||||
|
||||
#include <msgpack.h>
|
||||
|
||||
#include "nvim/api/private/defs.h"
|
||||
#include "nvim/lib/kvec.h"
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
#ifndef NVIM_CURSOR_SHAPE_H
|
||||
#define NVIM_CURSOR_SHAPE_H
|
||||
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/api/private/defs.h"
|
||||
#include "nvim/types.h"
|
||||
|
||||
/// struct to store values from 'guicursor' and 'mouseshape'
|
||||
/// Indexes in shape_table[]
|
||||
|
@ -1,9 +1,9 @@
|
||||
#ifndef NVIM_DECORATION_H
|
||||
#define NVIM_DECORATION_H
|
||||
|
||||
#include "nvim/pos.h"
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/extmark_defs.h"
|
||||
#include "nvim/pos.h"
|
||||
|
||||
// actual Decoration data is in extmark_defs.h
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
#ifndef NVIM_DIFF_H
|
||||
#define NVIM_DIFF_H
|
||||
|
||||
#include "nvim/pos.h"
|
||||
#include "nvim/ex_cmds_defs.h"
|
||||
#include "nvim/pos.h"
|
||||
|
||||
// Value set from 'diffopt'.
|
||||
EXTERN int diff_context INIT(= 6); // context for folds
|
||||
|
@ -1,8 +1,8 @@
|
||||
#ifndef NVIM_DIGRAPH_H
|
||||
#define NVIM_DIGRAPH_H
|
||||
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/ex_cmds_defs.h"
|
||||
#include "nvim/types.h"
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "digraph.h.generated.h"
|
||||
|
@ -24,27 +24,27 @@ typedef enum {
|
||||
|
||||
typedef int (*IndentGetter)(void);
|
||||
|
||||
/* Values for in_cinkeys() */
|
||||
// Values for in_cinkeys()
|
||||
#define KEY_OPEN_FORW 0x101
|
||||
#define KEY_OPEN_BACK 0x102
|
||||
#define KEY_COMPLETE 0x103 /* end of completion */
|
||||
#define KEY_COMPLETE 0x103 // end of completion
|
||||
|
||||
/* Values for change_indent() */
|
||||
#define INDENT_SET 1 /* set indent */
|
||||
#define INDENT_INC 2 /* increase indent */
|
||||
#define INDENT_DEC 3 /* decrease indent */
|
||||
// Values for change_indent()
|
||||
#define INDENT_SET 1 // set indent
|
||||
#define INDENT_INC 2 // increase indent
|
||||
#define INDENT_DEC 3 // decrease indent
|
||||
|
||||
/* flags for beginline() */
|
||||
#define BL_WHITE 1 /* cursor on first non-white in the line */
|
||||
#define BL_SOL 2 /* use 'sol' option */
|
||||
#define BL_FIX 4 /* don't leave cursor on a NUL */
|
||||
// flags for beginline()
|
||||
#define BL_WHITE 1 // cursor on first non-white in the line
|
||||
#define BL_SOL 2 // use 'sol' option
|
||||
#define BL_FIX 4 // don't leave cursor on a NUL
|
||||
|
||||
/* flags for insertchar() */
|
||||
#define INSCHAR_FORMAT 1 /* force formatting */
|
||||
#define INSCHAR_DO_COM 2 /* format comments */
|
||||
#define INSCHAR_CTRLV 4 /* char typed just after CTRL-V */
|
||||
#define INSCHAR_NO_FEX 8 /* don't use 'formatexpr' */
|
||||
#define INSCHAR_COM_LIST 16 /* format comments with list/2nd line indent */
|
||||
// flags for insertchar()
|
||||
#define INSCHAR_FORMAT 1 // force formatting
|
||||
#define INSCHAR_DO_COM 2 // format comments
|
||||
#define INSCHAR_CTRLV 4 // char typed just after CTRL-V
|
||||
#define INSCHAR_NO_FEX 8 // don't use 'formatexpr'
|
||||
#define INSCHAR_COM_LIST 16 // format comments with list/2nd line indent
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "edit.h.generated.h"
|
||||
|
@ -208,7 +208,7 @@ typedef enum {
|
||||
} GetLvalFlags;
|
||||
|
||||
/// flags for find_name_end()
|
||||
#define FNE_INCL_BR 1 /* find_name_end(): include [] in name */
|
||||
#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 */
|
||||
|
||||
|
@ -3,11 +3,11 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/eval/typval.h"
|
||||
#include "nvim/ex_cmds_defs.h"
|
||||
#include "nvim/os/time.h"
|
||||
#include "nvim/pos.h"
|
||||
#include "nvim/eval/typval.h"
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/ex_cmds_defs.h"
|
||||
|
||||
// flags for do_ecmd()
|
||||
#define ECMD_HIDE 0x01 // don't free the current buffer
|
||||
@ -18,10 +18,10 @@
|
||||
#define ECMD_ADDBUF 0x10 // don't edit, just add to buffer list
|
||||
#define ECMD_ALTBUF 0x20 // like ECMD_ADDBUF and set the alternate file
|
||||
|
||||
/* for lnum argument in do_ecmd() */
|
||||
#define ECMD_LASTL (linenr_T)0 /* use last position in loaded file */
|
||||
#define ECMD_LAST (linenr_T)-1 /* use last position in all files */
|
||||
#define ECMD_ONE (linenr_T)1 /* use first line */
|
||||
// for lnum argument in do_ecmd()
|
||||
#define ECMD_LASTL (linenr_T)0 // use last position in loaded file
|
||||
#define ECMD_LAST (linenr_T)-1 // use last position in all files
|
||||
#define ECMD_ONE (linenr_T)1 // use first line
|
||||
|
||||
/// Previous :substitute replacement string definition
|
||||
typedef struct {
|
||||
|
@ -4,8 +4,8 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "nvim/pos.h" // for linenr_T
|
||||
#include "nvim/normal.h"
|
||||
#include "nvim/pos.h" // for linenr_T
|
||||
#include "nvim/regexp_defs.h"
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
@ -83,10 +83,10 @@ typedef enum {
|
||||
|
||||
typedef struct exarg exarg_T;
|
||||
|
||||
/* behavior for bad character, "++bad=" argument */
|
||||
#define BAD_REPLACE '?' /* replace it with '?' (default) */
|
||||
#define BAD_KEEP -1 /* leave it */
|
||||
#define BAD_DROP -2 /* erase it */
|
||||
// behavior for bad character, "++bad=" argument
|
||||
#define BAD_REPLACE '?' // replace it with '?' (default)
|
||||
#define BAD_KEEP -1 // leave it
|
||||
#define BAD_DROP -2 // erase it
|
||||
|
||||
typedef void (*ex_func_T)(exarg_T *eap);
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
#define DOCMD_KEEPLINE 0x20 // keep typed line for repeating with "."
|
||||
#define DOCMD_PREVIEW 0x40 // during 'inccommand' preview
|
||||
|
||||
/* defines for eval_vars() */
|
||||
// defines for eval_vars()
|
||||
#define VALID_PATH 1
|
||||
#define VALID_HEAD 2
|
||||
|
||||
|
@ -1,22 +1,22 @@
|
||||
#ifndef NVIM_EX_EVAL_H
|
||||
#define NVIM_EX_EVAL_H
|
||||
|
||||
#include "nvim/pos.h" // for linenr_T
|
||||
#include "nvim/ex_cmds_defs.h" // for exarg_T
|
||||
#include "nvim/pos.h" // for linenr_T
|
||||
|
||||
/* There is no CSF_IF, the lack of CSF_WHILE, CSF_FOR and CSF_TRY means ":if"
|
||||
* was used. */
|
||||
# define CSF_TRUE 0x0001 /* condition was TRUE */
|
||||
# define CSF_ACTIVE 0x0002 /* current state is active */
|
||||
# define CSF_ELSE 0x0004 /* ":else" has been passed */
|
||||
# define CSF_WHILE 0x0008 /* is a ":while" */
|
||||
# define CSF_FOR 0x0010 /* is a ":for" */
|
||||
#define CSF_TRUE 0x0001 // condition was TRUE
|
||||
#define CSF_ACTIVE 0x0002 // current state is active
|
||||
#define CSF_ELSE 0x0004 // ":else" has been passed
|
||||
#define CSF_WHILE 0x0008 // is a ":while"
|
||||
#define CSF_FOR 0x0010 // is a ":for"
|
||||
|
||||
# define CSF_TRY 0x0100 /* is a ":try" */
|
||||
# define CSF_FINALLY 0x0200 /* ":finally" has been passed */
|
||||
# define CSF_THROWN 0x0400 /* exception thrown to this try conditional */
|
||||
# define CSF_CAUGHT 0x0800 /* exception caught by this try conditional */
|
||||
# define CSF_SILENT 0x1000 /* "emsg_silent" reset by ":try" */
|
||||
#define CSF_TRY 0x0100 // is a ":try"
|
||||
#define CSF_FINALLY 0x0200 // ":finally" has been passed
|
||||
#define CSF_THROWN 0x0400 // exception thrown to this try conditional
|
||||
#define CSF_CAUGHT 0x0800 // exception caught by this try conditional
|
||||
#define CSF_SILENT 0x1000 // "emsg_silent" reset by ":try"
|
||||
/* Note that CSF_ELSE is only used when CSF_TRY and CSF_WHILE are unset
|
||||
* (an ":if"), and CSF_SILENT is only used when CSF_TRY is set. */
|
||||
|
||||
@ -24,14 +24,14 @@
|
||||
* What's pending for being reactivated at the ":endtry" of this try
|
||||
* conditional:
|
||||
*/
|
||||
# define CSTP_NONE 0 /* nothing pending in ":finally" clause */
|
||||
# define CSTP_ERROR 1 /* an error is pending */
|
||||
# define CSTP_INTERRUPT 2 /* an interrupt is pending */
|
||||
# define CSTP_THROW 4 /* a throw is pending */
|
||||
# define CSTP_BREAK 8 /* ":break" is pending */
|
||||
# define CSTP_CONTINUE 16 /* ":continue" is pending */
|
||||
# define CSTP_RETURN 24 /* ":return" is pending */
|
||||
# define CSTP_FINISH 32 /* ":finish" is pending */
|
||||
#define CSTP_NONE 0 // nothing pending in ":finally" clause
|
||||
#define CSTP_ERROR 1 // an error is pending
|
||||
#define CSTP_INTERRUPT 2 // an interrupt is pending
|
||||
#define CSTP_THROW 4 // a throw is pending
|
||||
#define CSTP_BREAK 8 // ":break" is pending
|
||||
#define CSTP_CONTINUE 16 // ":continue" is pending
|
||||
#define CSTP_RETURN 24 // ":return" is pending
|
||||
#define CSTP_FINISH 32 // ":finish" is pending
|
||||
|
||||
/*
|
||||
* A list of error messages that can be converted to an exception. "throw_msg"
|
||||
@ -40,9 +40,9 @@
|
||||
* message in the list. See cause_errthrow() below.
|
||||
*/
|
||||
struct msglist {
|
||||
char_u *msg; /* original message */
|
||||
char_u *throw_msg; /* msg to throw: usually original one */
|
||||
struct msglist *next; /* next of several messages in a row */
|
||||
char_u *msg; // original message
|
||||
char_u *throw_msg; // msg to throw: usually original one
|
||||
struct msglist *next; // next of several messages in a row
|
||||
};
|
||||
|
||||
// The exception types.
|
||||
@ -74,8 +74,8 @@ struct vim_exception {
|
||||
*/
|
||||
typedef struct cleanup_stuff cleanup_T;
|
||||
struct cleanup_stuff {
|
||||
int pending; /* error/interrupt/exception state */
|
||||
except_T *exception; /* exception value */
|
||||
int pending; // error/interrupt/exception state
|
||||
except_T *exception; // exception value
|
||||
};
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "nvim/os/time.h"
|
||||
#include "nvim/regexp_defs.h"
|
||||
|
||||
/* Values for nextwild() and ExpandOne(). See ExpandOne() for meaning. */
|
||||
// Values for nextwild() and ExpandOne(). See ExpandOne() for meaning.
|
||||
#define WILD_FREE 1
|
||||
#define WILD_EXPAND_FREE 2
|
||||
#define WILD_EXPAND_KEEP 3
|
||||
|
@ -1,10 +1,10 @@
|
||||
#ifndef NVIM_EXTMARK_H
|
||||
#define NVIM_EXTMARK_H
|
||||
|
||||
#include "nvim/pos.h"
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/extmark_defs.h"
|
||||
#include "nvim/marktree.h"
|
||||
#include "nvim/pos.h"
|
||||
|
||||
EXTERN int extmark_splice_pending INIT(= 0);
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
#ifndef NVIM_EXTMARK_DEFS_H
|
||||
#define NVIM_EXTMARK_DEFS_H
|
||||
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/lib/kvec.h"
|
||||
#include "nvim/types.h"
|
||||
|
||||
typedef struct Decoration Decoration;
|
||||
|
||||
|
@ -3,13 +3,13 @@
|
||||
|
||||
#include <stdlib.h> // for size_t
|
||||
|
||||
#include "nvim/types.h" // for char_u
|
||||
#include "nvim/globals.h" // for CdScope
|
||||
#include "nvim/types.h" // for char_u
|
||||
|
||||
/* Flags for find_file_*() functions. */
|
||||
#define FINDFILE_FILE 0 /* only files */
|
||||
#define FINDFILE_DIR 1 /* only directories */
|
||||
#define FINDFILE_BOTH 2 /* files and directories */
|
||||
// Flags for find_file_*() functions.
|
||||
#define FINDFILE_FILE 0 // only files
|
||||
#define FINDFILE_DIR 1 // only directories
|
||||
#define FINDFILE_BOTH 2 // files and directories
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "file_search.h.generated.h"
|
||||
|
@ -1,9 +1,9 @@
|
||||
#ifndef NVIM_FILEIO_H
|
||||
#define NVIM_FILEIO_H
|
||||
|
||||
#include "nvim/autocmd.h"
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/os/os.h"
|
||||
#include "nvim/autocmd.h"
|
||||
|
||||
// Values for readfile() flags
|
||||
#define READ_NEW 0x01 // read a file into a new buffer
|
||||
|
@ -3,17 +3,17 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "nvim/pos.h"
|
||||
#include "nvim/garray.h"
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/garray.h"
|
||||
#include "nvim/pos.h"
|
||||
#include "nvim/types.h"
|
||||
|
||||
/*
|
||||
* Info used to pass info about a fold from the fold-detection code to the
|
||||
* code that displays the foldcolumn.
|
||||
*/
|
||||
typedef struct foldinfo {
|
||||
linenr_T fi_lnum; /* line number where fold starts */
|
||||
linenr_T fi_lnum; // line number where fold starts
|
||||
int fi_level; /* level of the fold; when this is zero the
|
||||
other fields are invalid */
|
||||
int fi_low_level; /* lowest fold level that starts in the same
|
||||
|
@ -3,8 +3,8 @@
|
||||
|
||||
#include <stddef.h> // for size_t
|
||||
|
||||
#include "nvim/types.h" // for char_u
|
||||
#include "nvim/log.h"
|
||||
#include "nvim/types.h" // for char_u
|
||||
|
||||
/// Structure used for growing arrays.
|
||||
/// This is used to store information that only grows, is deleted all at
|
||||
|
@ -1,10 +1,10 @@
|
||||
#ifndef NVIM_GETCHAR_H
|
||||
#define NVIM_GETCHAR_H
|
||||
|
||||
#include "nvim/os/fileio.h"
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/ex_cmds_defs.h"
|
||||
#include "nvim/os/fileio.h"
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/vim.h"
|
||||
|
||||
/// Values for "noremap" argument of ins_typebuf()
|
||||
|
@ -1,18 +1,18 @@
|
||||
#ifndef NVIM_GLOBALS_H
|
||||
#define NVIM_GLOBALS_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/macros.h"
|
||||
#include "nvim/event/loop.h"
|
||||
#include "nvim/ex_eval.h"
|
||||
#include "nvim/iconv.h"
|
||||
#include "nvim/macros.h"
|
||||
#include "nvim/mbyte.h"
|
||||
#include "nvim/menu.h"
|
||||
#include "nvim/os/os_defs.h"
|
||||
#include "nvim/syntax_defs.h"
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/event/loop.h"
|
||||
#include "nvim/os/os_defs.h"
|
||||
|
||||
#define IOSIZE (1024+1) // file I/O and sprintf buffer size
|
||||
|
||||
@ -846,14 +846,15 @@ EXTERN linenr_T spell_redraw_lnum INIT(= 0);
|
||||
// The error messages that can be shared are included here.
|
||||
// Excluded are errors that are only used once and debugging messages.
|
||||
EXTERN char_u e_abort[] INIT(= N_("E470: Command aborted"));
|
||||
EXTERN char_u e_afterinit[] INIT(= N_(
|
||||
"E905: Cannot set this option after startup"));
|
||||
EXTERN char_u e_afterinit[] INIT(= N_("E905: Cannot set this option after startup"));
|
||||
EXTERN char_u e_api_spawn_failed[] INIT(= N_("E903: Could not spawn API job"));
|
||||
EXTERN char_u e_argreq[] INIT(= N_("E471: Argument required"));
|
||||
EXTERN char_u e_backslash[] INIT(= N_("E10: \\ should be followed by /, ? or &"));
|
||||
EXTERN char_u e_cmdwin[] INIT(= N_(
|
||||
EXTERN char_u e_cmdwin[] INIT(=
|
||||
N_(
|
||||
"E11: Invalid in command-line window; <CR> executes, CTRL-C quits"));
|
||||
EXTERN char_u e_curdir[] INIT(= N_(
|
||||
EXTERN char_u e_curdir[] INIT(=
|
||||
N_(
|
||||
"E12: Command not allowed from exrc/vimrc in current dir or tag search"));
|
||||
EXTERN char_u e_endif[] INIT(= N_("E171: Missing :endif"));
|
||||
EXTERN char_u e_endtry[] INIT(= N_("E600: Missing :endtry"));
|
||||
@ -869,8 +870,7 @@ EXTERN char_u e_interr[] INIT(= N_("Interrupted"));
|
||||
EXTERN char_u e_invarg[] INIT(= N_("E474: Invalid argument"));
|
||||
EXTERN char_u e_invarg2[] INIT(= N_("E475: Invalid argument: %s"));
|
||||
EXTERN char_u e_invargval[] INIT(= N_("E475: Invalid value for argument %s"));
|
||||
EXTERN char_u e_invargNval[] INIT(= N_(
|
||||
"E475: Invalid value for argument %s: %s"));
|
||||
EXTERN char_u e_invargNval[] INIT(= N_("E475: Invalid value for argument %s: %s"));
|
||||
EXTERN char_u e_duparg2[] INIT(= N_("E983: Duplicate argument: %s"));
|
||||
EXTERN char_u e_invexpr2[] INIT(= N_("E15: Invalid expression: %s"));
|
||||
EXTERN char_u e_invrange[] INIT(= N_("E16: Invalid range"));
|
||||
@ -880,15 +880,13 @@ EXTERN char_u e_no_spell[] INIT(= N_("E756: Spell checking is not possible"));
|
||||
EXTERN char_u e_invchan[] INIT(= N_("E900: Invalid channel id"));
|
||||
EXTERN char_u e_invchanjob[] INIT(= N_("E900: Invalid channel id: not a job"));
|
||||
EXTERN char_u e_jobtblfull[] INIT(= N_("E901: Job table is full"));
|
||||
EXTERN char_u e_jobspawn[] INIT(= N_(
|
||||
"E903: Process failed to start: %s: \"%s\""));
|
||||
EXTERN char_u e_jobspawn[] INIT(= N_("E903: Process failed to start: %s: \"%s\""));
|
||||
EXTERN char_u e_channotpty[] INIT(= N_("E904: channel is not a pty"));
|
||||
EXTERN char_u e_stdiochan2[] INIT(= N_(
|
||||
"E905: Couldn't open stdio channel: %s"));
|
||||
EXTERN char_u e_stdiochan2[] INIT(= N_("E905: Couldn't open stdio channel: %s"));
|
||||
EXTERN char_u e_invstream[] INIT(= N_("E906: invalid stream for channel"));
|
||||
EXTERN char_u e_invstreamrpc[] INIT(= N_(
|
||||
"E906: invalid stream for rpc channel, use 'rpc'"));
|
||||
EXTERN char_u e_streamkey[] INIT(= N_(
|
||||
EXTERN char_u e_invstreamrpc[] INIT(= N_("E906: invalid stream for rpc channel, use 'rpc'"));
|
||||
EXTERN char_u e_streamkey[] INIT(=
|
||||
N_(
|
||||
"E5210: dict key '%s' already set for buffered stream in channel %"
|
||||
PRIu64));
|
||||
EXTERN char_u e_libcall[] INIT(= N_("E364: Library call failed for \"%s()\""));
|
||||
@ -896,8 +894,7 @@ EXTERN char e_fsync[] INIT(= N_("E667: Fsync failed: %s"));
|
||||
EXTERN char_u e_mkdir[] INIT(= N_("E739: Cannot create directory %s: %s"));
|
||||
EXTERN char_u e_markinval[] INIT(= N_("E19: Mark has invalid line number"));
|
||||
EXTERN char_u e_marknotset[] INIT(= N_("E20: Mark not set"));
|
||||
EXTERN char_u e_modifiable[] INIT(= N_(
|
||||
"E21: Cannot make changes, 'modifiable' is off"));
|
||||
EXTERN char_u e_modifiable[] INIT(= N_("E21: Cannot make changes, 'modifiable' is off"));
|
||||
EXTERN char_u e_nesting[] INIT(= N_("E22: Scripts nested too deep"));
|
||||
EXTERN char_u e_noalt[] INIT(= N_("E23: No alternate file"));
|
||||
EXTERN char_u e_noabbr[] INIT(= N_("E24: No such abbreviation"));
|
||||
@ -909,8 +906,7 @@ EXTERN char_u e_nomap[] INIT(= N_("E31: No such mapping"));
|
||||
EXTERN char_u e_nomatch[] INIT(= N_("E479: No match"));
|
||||
EXTERN char_u e_nomatch2[] INIT(= N_("E480: No match: %s"));
|
||||
EXTERN char_u e_noname[] INIT(= N_("E32: No file name"));
|
||||
EXTERN char_u e_nopresub[] INIT(= N_(
|
||||
"E33: No previous substitute regular expression"));
|
||||
EXTERN char_u e_nopresub[] INIT(= N_("E33: No previous substitute regular expression"));
|
||||
EXTERN char_u e_noprev[] INIT(= N_("E34: No previous command"));
|
||||
EXTERN char_u e_noprevre[] INIT(= N_("E35: No previous regular expression"));
|
||||
EXTERN char_u e_norange[] INIT(= N_("E481: No range allowed"));
|
||||
@ -926,36 +922,30 @@ EXTERN char_u e_outofmem[] INIT(= N_("E41: Out of memory!"));
|
||||
EXTERN char_u e_patnotf[] INIT(= N_("Pattern not found"));
|
||||
EXTERN char_u e_patnotf2[] INIT(= N_("E486: Pattern not found: %s"));
|
||||
EXTERN char_u e_positive[] INIT(= N_("E487: Argument must be positive"));
|
||||
EXTERN char_u e_prev_dir[] INIT(= N_(
|
||||
"E459: Cannot go back to previous directory"));
|
||||
EXTERN char_u e_prev_dir[] INIT(= N_("E459: Cannot go back to previous directory"));
|
||||
|
||||
EXTERN char_u e_quickfix[] INIT(= N_("E42: No Errors"));
|
||||
EXTERN char_u e_loclist[] INIT(= N_("E776: No location list"));
|
||||
EXTERN char_u e_re_damg[] INIT(= N_("E43: Damaged match string"));
|
||||
EXTERN char_u e_re_corr[] INIT(= N_("E44: Corrupted regexp program"));
|
||||
EXTERN char_u e_readonly[] INIT(= N_(
|
||||
"E45: 'readonly' option is set (add ! to override)"));
|
||||
EXTERN char_u e_readonlyvar[] INIT(= N_(
|
||||
"E46: Cannot change read-only variable \"%.*s\""));
|
||||
EXTERN char_u e_readonly[] INIT(= N_("E45: 'readonly' option is set (add ! to override)"));
|
||||
EXTERN char_u e_readonlyvar[] INIT(= N_("E46: Cannot change read-only variable \"%.*s\""));
|
||||
EXTERN char_u e_stringreq[] INIT(= N_("E928: String required"));
|
||||
EXTERN char_u e_dictreq[] INIT(= N_("E715: Dictionary required"));
|
||||
EXTERN char_u e_blobidx[] INIT(= N_("E979: Blob index out of range: %" PRId64));
|
||||
EXTERN char_u e_invalblob[] INIT(= N_("E978: Invalid operation for Blob"));
|
||||
EXTERN char_u e_toomanyarg[] INIT(= N_(
|
||||
"E118: Too many arguments for function: %s"));
|
||||
EXTERN char_u e_dictkey[] INIT(= N_(
|
||||
"E716: Key not present in Dictionary: \"%s\""));
|
||||
EXTERN char_u e_toomanyarg[] INIT(= N_("E118: Too many arguments for function: %s"));
|
||||
EXTERN char_u e_dictkey[] INIT(= N_("E716: Key not present in Dictionary: \"%s\""));
|
||||
EXTERN char_u e_listreq[] INIT(= N_("E714: List required"));
|
||||
EXTERN char_u e_listblobreq[] INIT(= N_("E897: List or Blob required"));
|
||||
EXTERN char_u e_listdictarg[] INIT(= N_(
|
||||
"E712: Argument of %s must be a List or Dictionary"));
|
||||
EXTERN char_u e_listdictblobarg[] INIT(= N_(
|
||||
EXTERN char_u e_listdictarg[] INIT(= N_("E712: Argument of %s must be a List or Dictionary"));
|
||||
EXTERN char_u e_listdictblobarg[] INIT(=
|
||||
N_(
|
||||
"E896: Argument of %s must be a List, Dictionary or Blob"));
|
||||
EXTERN char_u e_readerrf[] INIT(= N_("E47: Error while reading errorfile"));
|
||||
EXTERN char_u e_sandbox[] INIT(= N_("E48: Not allowed in sandbox"));
|
||||
EXTERN char_u e_secure[] INIT(= N_("E523: Not allowed here"));
|
||||
EXTERN char_u e_screenmode[] INIT(= N_(
|
||||
"E359: Screen mode setting not supported"));
|
||||
EXTERN char_u e_screenmode[] INIT(= N_("E359: Screen mode setting not supported"));
|
||||
EXTERN char_u e_scroll[] INIT(= N_("E49: Invalid scroll size"));
|
||||
EXTERN char_u e_shellempty[] INIT(= N_("E91: 'shell' option is empty"));
|
||||
EXTERN char_u e_signdata[] INIT(= N_("E255: Couldn't read in sign data!"));
|
||||
@ -969,56 +959,44 @@ EXTERN char_u e_trailing[] INIT(= N_("E488: Trailing characters"));
|
||||
EXTERN char_u e_trailing2[] INIT(= N_("E488: Trailing characters: %s"));
|
||||
EXTERN char_u e_umark[] INIT(= N_("E78: Unknown mark"));
|
||||
EXTERN char_u e_wildexpand[] INIT(= N_("E79: Cannot expand wildcards"));
|
||||
EXTERN char_u e_winheight[] INIT(= N_(
|
||||
"E591: 'winheight' cannot be smaller than 'winminheight'"));
|
||||
EXTERN char_u e_winwidth[] INIT(= N_(
|
||||
"E592: 'winwidth' cannot be smaller than 'winminwidth'"));
|
||||
EXTERN char_u e_winheight[] INIT(= N_("E591: 'winheight' cannot be smaller than 'winminheight'"));
|
||||
EXTERN char_u e_winwidth[] INIT(= N_("E592: 'winwidth' cannot be smaller than 'winminwidth'"));
|
||||
EXTERN char_u e_write[] INIT(= N_("E80: Error while writing"));
|
||||
EXTERN char_u e_zerocount[] INIT(= N_("E939: Positive count required"));
|
||||
EXTERN char_u e_usingsid[] INIT(= N_(
|
||||
"E81: Using <SID> not in a script context"));
|
||||
EXTERN char_u e_usingsid[] INIT(= N_("E81: Using <SID> not in a script context"));
|
||||
EXTERN char_u e_missingparen[] INIT(= N_("E107: Missing parentheses: %s"));
|
||||
EXTERN char_u e_maxmempat[] INIT(= N_(
|
||||
"E363: pattern uses more memory than 'maxmempattern'"));
|
||||
EXTERN char_u e_maxmempat[] INIT(= N_("E363: pattern uses more memory than 'maxmempattern'"));
|
||||
EXTERN char_u e_emptybuf[] INIT(= N_("E749: empty buffer"));
|
||||
EXTERN char_u e_nobufnr[] INIT(= N_("E86: Buffer %" PRId64 " does not exist"));
|
||||
|
||||
EXTERN char_u e_invalpat[] INIT(= N_(
|
||||
"E682: Invalid search pattern or delimiter"));
|
||||
EXTERN char_u e_invalpat[] INIT(= N_("E682: Invalid search pattern or delimiter"));
|
||||
EXTERN char_u e_bufloaded[] INIT(= N_("E139: File is loaded in another buffer"));
|
||||
EXTERN char_u e_notset[] INIT(= N_("E764: Option '%s' is not set"));
|
||||
EXTERN char_u e_invalidreg[] INIT(= N_("E850: Invalid register name"));
|
||||
EXTERN char_u e_dirnotf[] INIT(= N_(
|
||||
"E919: Directory not found in '%s': \"%s\""));
|
||||
EXTERN char_u e_au_recursive[] INIT(= N_(
|
||||
"E952: Autocommand caused recursive behavior"));
|
||||
EXTERN char_u e_autocmd_close[] INIT(= N_(
|
||||
"E813: Cannot close autocmd window"));
|
||||
EXTERN char_u e_dirnotf[] INIT(= N_("E919: Directory not found in '%s': \"%s\""));
|
||||
EXTERN char_u e_au_recursive[] INIT(= N_("E952: Autocommand caused recursive behavior"));
|
||||
EXTERN char_u e_autocmd_close[] INIT(= N_("E813: Cannot close autocmd window"));
|
||||
EXTERN char_u e_unsupportedoption[] INIT(= N_("E519: Option not supported"));
|
||||
EXTERN char_u e_fnametoolong[] INIT(= N_("E856: Filename too long"));
|
||||
EXTERN char_u e_float_as_string[] INIT(= N_("E806: using Float as a String"));
|
||||
|
||||
EXTERN char_u e_autocmd_err[] INIT(=N_(
|
||||
"E5500: autocmd has thrown an exception: %s"));
|
||||
EXTERN char_u e_cmdmap_err[] INIT(=N_(
|
||||
"E5520: <Cmd> mapping must end with <CR>"));
|
||||
EXTERN char_u e_cmdmap_repeated[] INIT(=N_(
|
||||
EXTERN char_u e_autocmd_err[] INIT(=N_("E5500: autocmd has thrown an exception: %s"));
|
||||
EXTERN char_u e_cmdmap_err[] INIT(=N_("E5520: <Cmd> mapping must end with <CR>"));
|
||||
EXTERN char_u e_cmdmap_repeated[] INIT(=
|
||||
N_(
|
||||
"E5521: <Cmd> mapping must end with <CR> before second <Cmd>"));
|
||||
EXTERN char_u e_cmdmap_key[] INIT(=N_(
|
||||
"E5522: <Cmd> mapping must not include %s key"));
|
||||
EXTERN char_u e_cmdmap_key[] INIT(=N_("E5522: <Cmd> mapping must not include %s key"));
|
||||
|
||||
EXTERN char_u e_api_error[] INIT(=N_(
|
||||
"E5555: API call: %s"));
|
||||
EXTERN char_u e_api_error[] INIT(=N_("E5555: API call: %s"));
|
||||
|
||||
EXTERN char e_luv_api_disabled[] INIT(=N_(
|
||||
"E5560: %s must not be called in a lua loop callback"));
|
||||
EXTERN char e_luv_api_disabled[] INIT(=N_("E5560: %s must not be called in a lua loop callback"));
|
||||
|
||||
EXTERN char_u e_floatonly[] INIT(=N_(
|
||||
"E5601: Cannot close window, only floating window would remain"));
|
||||
EXTERN char_u e_floatexchange[] INIT(=N_(
|
||||
"E5602: Cannot exchange or rotate float"));
|
||||
EXTERN char_u e_floatexchange[] INIT(=N_("E5602: Cannot exchange or rotate float"));
|
||||
|
||||
EXTERN char e_cannot_define_autocommands_for_all_events[] INIT(= N_(
|
||||
EXTERN char e_cannot_define_autocommands_for_all_events[] INIT(=
|
||||
N_(
|
||||
"E1155: Cannot define autocommands for ALL events"));
|
||||
|
||||
EXTERN char top_bot_msg[] INIT(= N_("search hit TOP, continuing at BOTTOM"));
|
||||
|
@ -4,9 +4,9 @@
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h> // for size_t
|
||||
|
||||
#include "nvim/ex_cmds_defs.h" // for exarg_T
|
||||
#include "nvim/globals.h" // for TriState
|
||||
#include "nvim/types.h" // for char_u
|
||||
#include "nvim/ex_cmds_defs.h" // for exarg_T
|
||||
|
||||
/*
|
||||
* Structure to hold printing color and font attributes.
|
||||
@ -46,7 +46,7 @@ typedef struct {
|
||||
const char *name;
|
||||
int hasnum;
|
||||
int number;
|
||||
char_u *string; /* points into option string */
|
||||
char_u *string; // points into option string
|
||||
int strlen;
|
||||
int present;
|
||||
} option_table_T;
|
||||
@ -67,7 +67,7 @@ typedef struct {
|
||||
#define OPT_PRINT_FORMFEED 13
|
||||
#define OPT_PRINT_NUM_OPTIONS 14
|
||||
|
||||
/* For prt_get_unit(). */
|
||||
// For prt_get_unit().
|
||||
#define PRT_UNIT_NONE -1
|
||||
#define PRT_UNIT_PERC 0
|
||||
#define PRT_UNIT_INCH 1
|
||||
|
@ -2,8 +2,9 @@
|
||||
#define NVIM_HIGHLIGHT_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "nvim/highlight_defs.h"
|
||||
|
||||
#include "nvim/api/private/defs.h"
|
||||
#include "nvim/highlight_defs.h"
|
||||
#include "nvim/ui.h"
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
|
@ -1,8 +1,8 @@
|
||||
#ifndef NVIM_IF_CSCOPE_H
|
||||
#define NVIM_IF_CSCOPE_H
|
||||
|
||||
#include "nvim/types.h" // for char_u and expand_T
|
||||
#include "nvim/ex_cmds_defs.h" // for exarg_T
|
||||
#include "nvim/types.h" // for char_u and expand_T
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "if_cscope.h.generated.h"
|
||||
|
@ -13,9 +13,9 @@
|
||||
# include <sys/types.h> // pid_t
|
||||
#endif
|
||||
|
||||
#include "nvim/os/os_defs.h"
|
||||
#include "nvim/os/fs_defs.h"
|
||||
#include "nvim/ex_cmds_defs.h"
|
||||
#include "nvim/os/fs_defs.h"
|
||||
#include "nvim/os/os_defs.h"
|
||||
|
||||
#define CSCOPE_SUCCESS 0
|
||||
#define CSCOPE_FAILURE -1
|
||||
|
@ -1,6 +1,8 @@
|
||||
// This is an open source non-commercial project. Dear PVS-Studio, please check
|
||||
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
|
||||
|
||||
// uncrustify:off
|
||||
|
||||
#include <assert.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
// uncrustify:off
|
||||
|
||||
/*-
|
||||
* Copyright 1997-1999, 2001, John-Mark Gurney.
|
||||
* 2008-2009, Attractive Chaos <attractor@live.co.uk>
|
||||
|
@ -1,3 +1,5 @@
|
||||
// uncrustify:off
|
||||
|
||||
/* The MIT License
|
||||
|
||||
Copyright (c) 2008, 2009, 2011 by Attractive Chaos <attractor@live.co.uk>
|
||||
|
@ -1,3 +1,5 @@
|
||||
// uncrustify:off
|
||||
|
||||
/* The MIT License
|
||||
|
||||
Copyright (c) 2008-2009, by Attractive Chaos <attractor@live.co.uk>
|
||||
|
@ -1,3 +1,5 @@
|
||||
// uncrustify:off
|
||||
|
||||
// The MIT License
|
||||
//
|
||||
// Copyright (c) 2008, by Attractive Chaos <attractor@live.co.uk>
|
||||
|
@ -1,3 +1,5 @@
|
||||
// uncrustify:off
|
||||
|
||||
// Queue implemented by circularly-linked list.
|
||||
//
|
||||
// Adapted from libuv. Simpler and more efficient than klist.h for implementing
|
||||
|
@ -1,3 +1,5 @@
|
||||
// uncrustify:off
|
||||
|
||||
/// Macros-based ring buffer implementation.
|
||||
///
|
||||
/// Supported functions:
|
||||
|
@ -1,8 +1,8 @@
|
||||
#ifndef NVIM_LOG_H
|
||||
#define NVIM_LOG_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "auto/config.h"
|
||||
#include "nvim/macros.h"
|
||||
|
@ -1,8 +1,8 @@
|
||||
#ifndef NVIM_MAIN_H
|
||||
#define NVIM_MAIN_H
|
||||
|
||||
#include "nvim/normal.h"
|
||||
#include "nvim/event/loop.h"
|
||||
#include "nvim/normal.h"
|
||||
|
||||
// Maximum number of commands from + or -c arguments.
|
||||
#define MAX_ARG_CMDS 10
|
||||
|
@ -3,11 +3,11 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/map_defs.h"
|
||||
#include "nvim/extmark_defs.h"
|
||||
#include "nvim/api/private/defs.h"
|
||||
#include "nvim/api/private/dispatch.h"
|
||||
#include "nvim/extmark_defs.h"
|
||||
#include "nvim/highlight_defs.h"
|
||||
#include "nvim/map_defs.h"
|
||||
|
||||
#if defined(__NetBSD__)
|
||||
# undef uint64_t
|
||||
|
@ -1,16 +1,16 @@
|
||||
#ifndef NVIM_MARK_H
|
||||
#define NVIM_MARK_H
|
||||
|
||||
#include "nvim/macros.h"
|
||||
#include "nvim/ascii.h"
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/func_attr.h"
|
||||
#include "nvim/mark_defs.h"
|
||||
#include "nvim/extmark_defs.h"
|
||||
#include "nvim/memory.h"
|
||||
#include "nvim/pos.h"
|
||||
#include "nvim/os/time.h"
|
||||
#include "nvim/ex_cmds_defs.h" // for exarg_T
|
||||
#include "nvim/extmark_defs.h"
|
||||
#include "nvim/func_attr.h"
|
||||
#include "nvim/macros.h"
|
||||
#include "nvim/mark_defs.h"
|
||||
#include "nvim/memory.h"
|
||||
#include "nvim/os/time.h"
|
||||
#include "nvim/pos.h"
|
||||
|
||||
/// Set fmark using given value
|
||||
#define SET_FMARK(fmarkp_, mark_, fnum_) \
|
||||
|
@ -1,9 +1,9 @@
|
||||
#ifndef NVIM_MARK_DEFS_H
|
||||
#define NVIM_MARK_DEFS_H
|
||||
|
||||
#include "nvim/pos.h"
|
||||
#include "nvim/os/time.h"
|
||||
#include "nvim/eval/typval.h"
|
||||
#include "nvim/os/time.h"
|
||||
#include "nvim/pos.h"
|
||||
|
||||
/*
|
||||
* marks: positions in a file
|
||||
|
@ -2,9 +2,10 @@
|
||||
#define NVIM_MARKTREE_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "nvim/pos.h"
|
||||
#include "nvim/map.h"
|
||||
|
||||
#include "nvim/garray.h"
|
||||
#include "nvim/map.h"
|
||||
#include "nvim/pos.h"
|
||||
|
||||
#define MT_MAX_DEPTH 20
|
||||
#define MT_BRANCH_FACTOR 10
|
||||
|
@ -2,7 +2,6 @@
|
||||
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
#ifndef NVIM_MBYTE_H
|
||||
#define NVIM_MBYTE_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "nvim/iconv.h"
|
||||
#include "nvim/func_attr.h"
|
||||
#include "nvim/iconv.h"
|
||||
#include "nvim/os/os_defs.h" // For indirect
|
||||
#include "nvim/types.h" // for char_u
|
||||
|
||||
@ -22,21 +22,21 @@
|
||||
// max length of an unicode char
|
||||
#define MB_MAXCHAR 6
|
||||
|
||||
/* properties used in enc_canon_table[] (first three mutually exclusive) */
|
||||
// properties used in enc_canon_table[] (first three mutually exclusive)
|
||||
#define ENC_8BIT 0x01
|
||||
#define ENC_DBCS 0x02
|
||||
#define ENC_UNICODE 0x04
|
||||
|
||||
#define ENC_ENDIAN_B 0x10 /* Unicode: Big endian */
|
||||
#define ENC_ENDIAN_L 0x20 /* Unicode: Little endian */
|
||||
#define ENC_ENDIAN_B 0x10 // Unicode: Big endian
|
||||
#define ENC_ENDIAN_L 0x20 // Unicode: Little endian
|
||||
|
||||
#define ENC_2BYTE 0x40 /* Unicode: UCS-2 */
|
||||
#define ENC_4BYTE 0x80 /* Unicode: UCS-4 */
|
||||
#define ENC_2WORD 0x100 /* Unicode: UTF-16 */
|
||||
#define ENC_2BYTE 0x40 // Unicode: UCS-2
|
||||
#define ENC_4BYTE 0x80 // Unicode: UCS-4
|
||||
#define ENC_2WORD 0x100 // Unicode: UTF-16
|
||||
|
||||
#define ENC_LATIN1 0x200 /* Latin1 */
|
||||
#define ENC_LATIN9 0x400 /* Latin9 */
|
||||
#define ENC_MACROMAN 0x800 /* Mac Roman (not Macro Man! :-) */
|
||||
#define ENC_LATIN1 0x200 // Latin1
|
||||
#define ENC_LATIN9 0x400 // Latin9
|
||||
#define ENC_MACROMAN 0x800 // Mac Roman (not Macro Man! :-)
|
||||
|
||||
// TODO(bfredl): eventually we should keep only one of the namings
|
||||
#define mb_ptr2len utfc_ptr2len
|
||||
|
@ -1,12 +1,12 @@
|
||||
#ifndef NVIM_MEMFILE_DEFS_H
|
||||
#define NVIM_MEMFILE_DEFS_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/pos.h"
|
||||
#include "nvim/types.h"
|
||||
|
||||
/// A block number.
|
||||
///
|
||||
|
@ -1,9 +1,9 @@
|
||||
#ifndef NVIM_MEMLINE_H
|
||||
#define NVIM_MEMLINE_H
|
||||
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/pos.h" // for pos_T, linenr_T, colnr_T
|
||||
#include "nvim/buffer_defs.h" // for buf_T
|
||||
#include "nvim/pos.h" // for pos_T, linenr_T, colnr_T
|
||||
#include "nvim/types.h"
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "memline.h.generated.h"
|
||||
|
@ -2,8 +2,8 @@
|
||||
#define NVIM_MEMORY_H
|
||||
|
||||
#include <stdbool.h> // for bool
|
||||
#include <stdint.h> // for uint8_t
|
||||
#include <stddef.h> // for size_t
|
||||
#include <stdint.h> // for uint8_t
|
||||
#include <time.h> // for time_t
|
||||
|
||||
/// `malloc()` function signature
|
||||
|
@ -3,8 +3,8 @@
|
||||
|
||||
#include <stdbool.h> // for bool
|
||||
|
||||
#include "nvim/types.h" // for char_u and expand_T
|
||||
#include "nvim/ex_cmds_defs.h" // for exarg_T
|
||||
#include "nvim/types.h" // for char_u and expand_T
|
||||
|
||||
/// @}
|
||||
/// note MENU_INDEX_TIP is not a 'real' mode
|
||||
|
@ -1,15 +1,15 @@
|
||||
#ifndef NVIM_MESSAGE_H
|
||||
#define NVIM_MESSAGE_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#include "nvim/api/private/defs.h"
|
||||
#include "nvim/grid_defs.h"
|
||||
#include "nvim/lib/kvec.h"
|
||||
#include "nvim/macros.h"
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/grid_defs.h"
|
||||
#include "nvim/api/private/defs.h"
|
||||
#include "nvim/lib/kvec.h"
|
||||
|
||||
/*
|
||||
* Types of dialogs passed to do_dialog().
|
||||
@ -19,7 +19,7 @@
|
||||
#define VIM_WARNING 2
|
||||
#define VIM_INFO 3
|
||||
#define VIM_QUESTION 4
|
||||
#define VIM_LAST_TYPE 4 /* sentinel value */
|
||||
#define VIM_LAST_TYPE 4 // sentinel value
|
||||
|
||||
/*
|
||||
* Return values for functions like vim_dialogyesno()
|
||||
|
@ -1,15 +1,15 @@
|
||||
#ifndef NVIM_MISC1_H
|
||||
#define NVIM_MISC1_H
|
||||
|
||||
#include "nvim/vim.h"
|
||||
#include "nvim/os/shell.h"
|
||||
#include "nvim/vim.h"
|
||||
|
||||
/* flags for open_line() */
|
||||
#define OPENLINE_DELSPACES 1 /* delete spaces after cursor */
|
||||
#define OPENLINE_DO_COM 2 /* format comments */
|
||||
#define OPENLINE_KEEPTRAIL 4 /* keep trailing spaces */
|
||||
#define OPENLINE_MARKFIX 8 /* fix mark positions */
|
||||
#define OPENLINE_COM_LIST 16 /* format comments with list/2nd line indent */
|
||||
// flags for open_line()
|
||||
#define OPENLINE_DELSPACES 1 // delete spaces after cursor
|
||||
#define OPENLINE_DO_COM 2 // format comments
|
||||
#define OPENLINE_KEEPTRAIL 4 // keep trailing spaces
|
||||
#define OPENLINE_MARKFIX 8 // fix mark positions
|
||||
#define OPENLINE_COM_LIST 16 // format comments with list/2nd line indent
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "misc1.h.generated.h"
|
||||
|
@ -3,8 +3,8 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/vim.h"
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/vim.h"
|
||||
|
||||
// jump_to_mouse() returns one of first four these values, possibly with
|
||||
// some of the other three added.
|
||||
|
@ -2,6 +2,7 @@
|
||||
#define NVIM_MOVE_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/vim.h"
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
|
@ -2,13 +2,14 @@
|
||||
#define NVIM_NORMAL_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "nvim/pos.h"
|
||||
#include "nvim/buffer_defs.h" // for win_T
|
||||
|
||||
/* Values for find_ident_under_cursor() */
|
||||
#define FIND_IDENT 1 /* find identifier (word) */
|
||||
#define FIND_STRING 2 /* find any string (WORD) */
|
||||
#define FIND_EVAL 4 /* include "->", "[]" and "." */
|
||||
#include "nvim/buffer_defs.h" // for win_T
|
||||
#include "nvim/pos.h"
|
||||
|
||||
// Values for find_ident_under_cursor()
|
||||
#define FIND_IDENT 1 // find identifier (word)
|
||||
#define FIND_STRING 2 // find any string (WORD)
|
||||
#define FIND_EVAL 4 // include "->", "[]" and "."
|
||||
|
||||
/// Motion types, used for operators and for yank/delete registers.
|
||||
///
|
||||
@ -56,24 +57,24 @@ typedef struct oparg_S {
|
||||
* Arguments for Normal mode commands.
|
||||
*/
|
||||
typedef struct cmdarg_S {
|
||||
oparg_T *oap; /* Operator arguments */
|
||||
int prechar; /* prefix character (optional, always 'g') */
|
||||
int cmdchar; /* command character */
|
||||
int nchar; /* next command character (optional) */
|
||||
int ncharC1; /* first composing character (optional) */
|
||||
int ncharC2; /* second composing character (optional) */
|
||||
int extra_char; /* yet another character (optional) */
|
||||
long opcount; /* count before an operator */
|
||||
long count0; /* count before command, default 0 */
|
||||
long count1; /* count before command, default 1 */
|
||||
int arg; /* extra argument from nv_cmds[] */
|
||||
int retval; /* return: CA_* values */
|
||||
char_u *searchbuf; /* return: pointer to search pattern or NULL */
|
||||
oparg_T *oap; // Operator arguments
|
||||
int prechar; // prefix character (optional, always 'g')
|
||||
int cmdchar; // command character
|
||||
int nchar; // next command character (optional)
|
||||
int ncharC1; // first composing character (optional)
|
||||
int ncharC2; // second composing character (optional)
|
||||
int extra_char; // yet another character (optional)
|
||||
long opcount; // count before an operator
|
||||
long count0; // count before command, default 0
|
||||
long count1; // count before command, default 1
|
||||
int arg; // extra argument from nv_cmds[]
|
||||
int retval; // return: CA_* values
|
||||
char_u *searchbuf; // return: pointer to search pattern or NULL
|
||||
} cmdarg_T;
|
||||
|
||||
/* values for retval: */
|
||||
#define CA_COMMAND_BUSY 1 /* skip restarting edit() once */
|
||||
#define CA_NO_ADJ_OP_END 2 /* don't adjust operator end */
|
||||
// values for retval:
|
||||
#define CA_COMMAND_BUSY 1 // skip restarting edit() once
|
||||
#define CA_NO_ADJ_OP_END 2 // don't adjust operator end
|
||||
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
|
@ -3,14 +3,14 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/macros.h"
|
||||
#include "nvim/ascii.h"
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/extmark.h"
|
||||
#include "nvim/eval/typval.h"
|
||||
#include "nvim/os/time.h"
|
||||
#include "nvim/normal.h" // for MotionType and oparg_T
|
||||
#include "nvim/ex_cmds_defs.h" // for exarg_T
|
||||
#include "nvim/extmark.h"
|
||||
#include "nvim/macros.h"
|
||||
#include "nvim/normal.h" // for MotionType and oparg_T
|
||||
#include "nvim/os/time.h"
|
||||
#include "nvim/types.h"
|
||||
|
||||
typedef int (*Indenter)(void);
|
||||
|
||||
|
@ -3,10 +3,10 @@
|
||||
|
||||
#include "nvim/ex_cmds_defs.h" // for exarg_T
|
||||
|
||||
/* flags for buf_copy_options() */
|
||||
#define BCO_ENTER 1 /* going to enter the buffer */
|
||||
#define BCO_ALWAYS 2 /* always copy the options */
|
||||
#define BCO_NOHELP 4 /* don't touch the help related options */
|
||||
// flags for buf_copy_options()
|
||||
#define BCO_ENTER 1 // going to enter the buffer
|
||||
#define BCO_ALWAYS 2 // always copy the options
|
||||
#define BCO_NOHELP 4 // don't touch the help related options
|
||||
|
||||
/// Flags for option-setting functions
|
||||
///
|
||||
|
@ -1,9 +1,9 @@
|
||||
#ifndef NVIM_OPTION_DEFS_H
|
||||
#define NVIM_OPTION_DEFS_H
|
||||
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/macros.h" // For EXTERN
|
||||
#include "eval/typval.h" // For scid_T
|
||||
#include "nvim/macros.h" // For EXTERN
|
||||
#include "nvim/types.h"
|
||||
|
||||
// option_defs.h: definition of global variables for settable options
|
||||
|
||||
@ -25,9 +25,11 @@
|
||||
// The "%f|%l| %m" one is used for when the contents of the quickfix window is
|
||||
// written to a file.
|
||||
#ifdef WIN32
|
||||
# define DFLT_EFM "%f(%l) \\=: %t%*\\D%n: %m,%*[^\"]\"%f\"%*\\D%l: %m,%f(%l) \\=: %m,%*[^ ] %f %l: %m,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,%f|%l| %m"
|
||||
# define DFLT_EFM \
|
||||
"%f(%l) \\=: %t%*\\D%n: %m,%*[^\"]\"%f\"%*\\D%l: %m,%f(%l) \\=: %m,%*[^ ] %f %l: %m,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,%f|%l| %m"
|
||||
#else
|
||||
# define DFLT_EFM "%*[^\"]\"%f\"%*\\D%l: %m,\"%f\"%*\\D%l: %m,%-G%f:%l: (Each undeclared identifier is reported only once,%-G%f:%l: for each function it appears in.),%-GIn file included from %f:%l:%c:,%-GIn file included from %f:%l:%c\\,,%-GIn file included from %f:%l:%c,%-GIn file included from %f:%l,%-G%*[ ]from %f:%l:%c,%-G%*[ ]from %f:%l:,%-G%*[ ]from %f:%l\\,,%-G%*[ ]from %f:%l,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,\"%f\"\\, line %l%*\\D%c%*[^ ] %m,%D%*\\a[%*\\d]: Entering directory %*[`']%f',%X%*\\a[%*\\d]: Leaving directory %*[`']%f',%D%*\\a: Entering directory %*[`']%f',%X%*\\a: Leaving directory %*[`']%f',%DMaking %*\\a in %f,%f|%l| %m"
|
||||
# define DFLT_EFM \
|
||||
"%*[^\"]\"%f\"%*\\D%l: %m,\"%f\"%*\\D%l: %m,%-G%f:%l: (Each undeclared identifier is reported only once,%-G%f:%l: for each function it appears in.),%-GIn file included from %f:%l:%c:,%-GIn file included from %f:%l:%c\\,,%-GIn file included from %f:%l:%c,%-GIn file included from %f:%l,%-G%*[ ]from %f:%l:%c,%-G%*[ ]from %f:%l:,%-G%*[ ]from %f:%l\\,,%-G%*[ ]from %f:%l,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,\"%f\"\\, line %l%*\\D%c%*[^ ] %m,%D%*\\a[%*\\d]: Entering directory %*[`']%f',%X%*\\a[%*\\d]: Leaving directory %*[`']%f',%D%*\\a: Entering directory %*[`']%f',%X%*\\a: Leaving directory %*[`']%f',%DMaking %*\\a in %f,%f|%l| %m"
|
||||
#endif
|
||||
|
||||
#define DFLT_GREPFORMAT "%f:%l:%m,%f:%l%m,%f %l%m"
|
||||
|
@ -1,8 +1,8 @@
|
||||
#ifndef NVIM_OS_UNIX_H
|
||||
#define NVIM_OS_UNIX_H
|
||||
|
||||
#include "nvim/types.h" // for vim_acl_T
|
||||
#include "nvim/os/shell.h"
|
||||
#include "nvim/types.h" // for vim_acl_T
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "os_unix.h.generated.h"
|
||||
|
@ -2,22 +2,22 @@
|
||||
#define NVIM_PATH_H
|
||||
|
||||
#include "nvim/func_attr.h"
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/garray.h"
|
||||
#include "nvim/types.h"
|
||||
|
||||
/* Flags for expand_wildcards() */
|
||||
#define EW_DIR 0x01 /* include directory names */
|
||||
#define EW_FILE 0x02 /* include file names */
|
||||
#define EW_NOTFOUND 0x04 /* include not found names */
|
||||
#define EW_ADDSLASH 0x08 /* append slash to directory name */
|
||||
#define EW_KEEPALL 0x10 /* keep all matches */
|
||||
#define EW_SILENT 0x20 /* don't print "1 returned" from shell */
|
||||
#define EW_EXEC 0x40 /* executable files */
|
||||
#define EW_PATH 0x80 /* search in 'path' too */
|
||||
#define EW_ICASE 0x100 /* ignore case */
|
||||
#define EW_NOERROR 0x200 /* no error for bad regexp */
|
||||
#define EW_NOTWILD 0x400 /* add match with literal name if exists */
|
||||
#define EW_KEEPDOLLAR 0x800 /* do not escape $, $var is expanded */
|
||||
// Flags for expand_wildcards()
|
||||
#define EW_DIR 0x01 // include directory names
|
||||
#define EW_FILE 0x02 // include file names
|
||||
#define EW_NOTFOUND 0x04 // include not found names
|
||||
#define EW_ADDSLASH 0x08 // append slash to directory name
|
||||
#define EW_KEEPALL 0x10 // keep all matches
|
||||
#define EW_SILENT 0x20 // don't print "1 returned" from shell
|
||||
#define EW_EXEC 0x40 // executable files
|
||||
#define EW_PATH 0x80 // search in 'path' too
|
||||
#define EW_ICASE 0x100 // ignore case
|
||||
#define EW_NOERROR 0x200 // no error for bad regexp
|
||||
#define EW_NOTWILD 0x400 // add match with literal name if exists
|
||||
#define EW_KEEPDOLLAR 0x800 // do not escape $, $var is expanded
|
||||
/* Note: mostly EW_NOTFOUND and EW_SILENT are mutually exclusive: EW_NOTFOUND
|
||||
* is used when executing commands and EW_SILENT for interactive expanding. */
|
||||
#define EW_ALLLINKS 0x1000 // also links not pointing to existing file
|
||||
|
@ -1,10 +1,10 @@
|
||||
#ifndef NVIM_POPUPMNU_H
|
||||
#define NVIM_POPUPMNU_H
|
||||
|
||||
#include "nvim/vim.h"
|
||||
#include "nvim/macros.h"
|
||||
#include "nvim/grid_defs.h"
|
||||
#include "nvim/macros.h"
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/vim.h"
|
||||
|
||||
/// Used for popup menu items.
|
||||
typedef struct {
|
||||
|
@ -26,8 +26,8 @@ enum { MINCOL = 1 };
|
||||
* position in file or buffer
|
||||
*/
|
||||
typedef struct {
|
||||
linenr_T lnum; /* line number */
|
||||
colnr_T col; /* column number */
|
||||
linenr_T lnum; // line number
|
||||
colnr_T col; // column number
|
||||
colnr_T coladd;
|
||||
} pos_T;
|
||||
|
||||
@ -36,8 +36,8 @@ typedef struct {
|
||||
* Same, but without coladd.
|
||||
*/
|
||||
typedef struct {
|
||||
linenr_T lnum; /* line number */
|
||||
colnr_T col; /* column number */
|
||||
linenr_T lnum; // line number
|
||||
colnr_T col; // column number
|
||||
} lpos_T;
|
||||
|
||||
#endif // NVIM_POS_H
|
||||
|
@ -1,10 +1,10 @@
|
||||
#ifndef NVIM_QUICKFIX_H
|
||||
#define NVIM_QUICKFIX_H
|
||||
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/ex_cmds_defs.h"
|
||||
#include "nvim/types.h"
|
||||
|
||||
/* flags for skip_vimgrep_pat() */
|
||||
// flags for skip_vimgrep_pat()
|
||||
#define VGR_GLOBAL 1
|
||||
#define VGR_NOJUMP 2
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
// This is an open source non-commercial project. Dear PVS-Studio, please check
|
||||
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
|
||||
|
||||
// uncrustify:off
|
||||
|
||||
/*
|
||||
* Handling of regular expressions: vim_regcomp(), vim_regexec(), vim_regsub()
|
||||
*
|
||||
|
@ -1,9 +1,9 @@
|
||||
#ifndef NVIM_REGEXP_H
|
||||
#define NVIM_REGEXP_H
|
||||
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/regexp_defs.h"
|
||||
#include "nvim/types.h"
|
||||
|
||||
// Second argument for vim_regcomp().
|
||||
#define RE_MAGIC 1 ///< 'magic' option
|
||||
|
@ -15,8 +15,8 @@
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/pos.h"
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/profile.h"
|
||||
#include "nvim/types.h"
|
||||
|
||||
/*
|
||||
* The number of sub-matches is limited to 10.
|
||||
|
@ -1,6 +1,8 @@
|
||||
// This is an open source non-commercial project. Dear PVS-Studio, please check
|
||||
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
|
||||
|
||||
// uncrustify:off
|
||||
|
||||
/*
|
||||
* NFA regular expression implementation.
|
||||
*
|
||||
|
@ -3,10 +3,10 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/grid_defs.h"
|
||||
#include "nvim/pos.h"
|
||||
#include "nvim/types.h"
|
||||
|
||||
/*
|
||||
* flags for update_screen()
|
||||
@ -14,12 +14,12 @@
|
||||
*/
|
||||
#define VALID 10 /* buffer not changed, or changes marked
|
||||
with b_mod_* */
|
||||
#define INVERTED 20 /* redisplay inverted part that changed */
|
||||
#define INVERTED_ALL 25 /* redisplay whole inverted part */
|
||||
#define REDRAW_TOP 30 /* display first w_upd_rows screen lines */
|
||||
#define SOME_VALID 35 /* like NOT_VALID but may scroll */
|
||||
#define NOT_VALID 40 /* buffer needs complete redraw */
|
||||
#define CLEAR 50 /* screen messed up, clear it */
|
||||
#define INVERTED 20 // redisplay inverted part that changed
|
||||
#define INVERTED_ALL 25 // redisplay whole inverted part
|
||||
#define REDRAW_TOP 30 // display first w_upd_rows screen lines
|
||||
#define SOME_VALID 35 // like NOT_VALID but may scroll
|
||||
#define NOT_VALID 40 // buffer needs complete redraw
|
||||
#define CLEAR 50 // screen messed up, clear it
|
||||
|
||||
/// By default, all widows are draw on a single rectangular grid, represented by
|
||||
/// this ScreenGrid instance. In multigrid mode each window will have its own
|
||||
|
@ -4,14 +4,14 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "nvim/vim.h"
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/eval/funcs.h"
|
||||
#include "nvim/eval/typval.h"
|
||||
#include "nvim/normal.h"
|
||||
#include "nvim/os/time.h"
|
||||
#include "nvim/vim.h"
|
||||
|
||||
/* Values for the find_pattern_in_path() function args 'type' and 'action': */
|
||||
// Values for the find_pattern_in_path() function args 'type' and 'action':
|
||||
#define FIND_ANY 1
|
||||
#define FIND_DEFINE 2
|
||||
#define CHECK_PATH 3
|
||||
@ -37,18 +37,18 @@
|
||||
#define SEARCH_PEEK 0x800 ///< peek for typed char, cancel search
|
||||
#define SEARCH_COL 0x1000 ///< start at specified column instead of zero
|
||||
|
||||
/* Values for flags argument for findmatchlimit() */
|
||||
#define FM_BACKWARD 0x01 /* search backwards */
|
||||
#define FM_FORWARD 0x02 /* search forwards */
|
||||
#define FM_BLOCKSTOP 0x04 /* stop at start/end of block */
|
||||
#define FM_SKIPCOMM 0x08 /* skip comments */
|
||||
// Values for flags argument for findmatchlimit()
|
||||
#define FM_BACKWARD 0x01 // search backwards
|
||||
#define FM_FORWARD 0x02 // search forwards
|
||||
#define FM_BLOCKSTOP 0x04 // stop at start/end of block
|
||||
#define FM_SKIPCOMM 0x08 // skip comments
|
||||
|
||||
/* Values for sub_cmd and which_pat argument for search_regcomp() */
|
||||
/* Also used for which_pat argument for searchit() */
|
||||
#define RE_SEARCH 0 /* save/use pat in/from search_pattern */
|
||||
#define RE_SUBST 1 /* save/use pat in/from subst_pattern */
|
||||
#define RE_BOTH 2 /* save pat in both patterns */
|
||||
#define RE_LAST 2 /* use last used pattern if "pat" is NULL */
|
||||
// Values for sub_cmd and which_pat argument for search_regcomp()
|
||||
// Also used for which_pat argument for searchit()
|
||||
#define RE_SEARCH 0 // save/use pat in/from search_pattern
|
||||
#define RE_SUBST 1 // save/use pat in/from subst_pattern
|
||||
#define RE_BOTH 2 // save pat in both patterns
|
||||
#define RE_LAST 2 // use last used pattern if "pat" is NULL
|
||||
|
||||
// Values for searchcount()
|
||||
#define SEARCH_STAT_DEF_TIMEOUT 40L
|
||||
|
@ -1,8 +1,8 @@
|
||||
#ifndef NVIM_SHA256_H
|
||||
#define NVIM_SHA256_H
|
||||
|
||||
#include <stdint.h> // for uint32_t
|
||||
#include <stddef.h>
|
||||
#include <stdint.h> // for uint32_t
|
||||
|
||||
#include "nvim/types.h" // for char_u
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
#define NVIM_SIGN_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/ex_cmds_defs.h"
|
||||
#include "nvim/sign_defs.h"
|
||||
|
@ -2,6 +2,7 @@
|
||||
#define NVIM_SIGN_DEFS_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/pos.h"
|
||||
#include "nvim/types.h"
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/spell_defs.h"
|
||||
#include "nvim/ex_cmds_defs.h"
|
||||
#include "nvim/globals.h"
|
||||
#include "nvim/spell_defs.h"
|
||||
#include "nvim/vim.h"
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/ex_cmds_defs.h"
|
||||
#include "nvim/spell_defs.h"
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/ex_cmds_defs.h"
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "spellfile.h.generated.h"
|
||||
|
@ -1,12 +1,12 @@
|
||||
#ifndef NVIM_STRINGS_H
|
||||
#define NVIM_STRINGS_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/eval/typval.h"
|
||||
#include "nvim/types.h"
|
||||
|
||||
/// Append string to string and return pointer to the next byte
|
||||
///
|
||||
|
@ -3,29 +3,29 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/globals.h"
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/ex_cmds_defs.h"
|
||||
#include "nvim/globals.h"
|
||||
|
||||
#define HL_CONTAINED 0x01 /* not used on toplevel */
|
||||
#define HL_TRANSP 0x02 /* has no highlighting */
|
||||
#define HL_ONELINE 0x04 /* match within one line only */
|
||||
#define HL_HAS_EOL 0x08 /* end pattern that matches with $ */
|
||||
#define HL_SYNC_HERE 0x10 /* sync point after this item (syncing only) */
|
||||
#define HL_SYNC_THERE 0x20 /* sync point at current line (syncing only) */
|
||||
#define HL_MATCH 0x40 /* use match ID instead of item ID */
|
||||
#define HL_SKIPNL 0x80 /* nextgroup can skip newlines */
|
||||
#define HL_SKIPWHITE 0x100 /* nextgroup can skip white space */
|
||||
#define HL_SKIPEMPTY 0x200 /* nextgroup can skip empty lines */
|
||||
#define HL_KEEPEND 0x400 /* end match always kept */
|
||||
#define HL_EXCLUDENL 0x800 /* exclude NL from match */
|
||||
#define HL_DISPLAY 0x1000 /* only used for displaying, not syncing */
|
||||
#define HL_FOLD 0x2000 /* define fold */
|
||||
#define HL_EXTEND 0x4000 /* ignore a keepend */
|
||||
#define HL_MATCHCONT 0x8000 /* match continued from previous line */
|
||||
#define HL_TRANS_CONT 0x10000 /* transparent item without contains arg */
|
||||
#define HL_CONCEAL 0x20000 /* can be concealed */
|
||||
#define HL_CONCEALENDS 0x40000 /* can be concealed */
|
||||
#define HL_CONTAINED 0x01 // not used on toplevel
|
||||
#define HL_TRANSP 0x02 // has no highlighting
|
||||
#define HL_ONELINE 0x04 // match within one line only
|
||||
#define HL_HAS_EOL 0x08 // end pattern that matches with $
|
||||
#define HL_SYNC_HERE 0x10 // sync point after this item (syncing only)
|
||||
#define HL_SYNC_THERE 0x20 // sync point at current line (syncing only)
|
||||
#define HL_MATCH 0x40 // use match ID instead of item ID
|
||||
#define HL_SKIPNL 0x80 // nextgroup can skip newlines
|
||||
#define HL_SKIPWHITE 0x100 // nextgroup can skip white space
|
||||
#define HL_SKIPEMPTY 0x200 // nextgroup can skip empty lines
|
||||
#define HL_KEEPEND 0x400 // end match always kept
|
||||
#define HL_EXCLUDENL 0x800 // exclude NL from match
|
||||
#define HL_DISPLAY 0x1000 // only used for displaying, not syncing
|
||||
#define HL_FOLD 0x2000 // define fold
|
||||
#define HL_EXTEND 0x4000 // ignore a keepend
|
||||
#define HL_MATCHCONT 0x8000 // match continued from previous line
|
||||
#define HL_TRANS_CONT 0x10000 // transparent item without contains arg
|
||||
#define HL_CONCEAL 0x20000 // can be concealed
|
||||
#define HL_CONCEALENDS 0x40000 // can be concealed
|
||||
|
||||
#define SYN_GROUP_STATIC(s) syn_check_group((char_u *)S_LEN(s))
|
||||
|
||||
|
@ -3,18 +3,18 @@
|
||||
|
||||
#include "nvim/highlight_defs.h"
|
||||
|
||||
# define SST_MIN_ENTRIES 150 /* minimal size for state stack array */
|
||||
# define SST_MAX_ENTRIES 1000 /* maximal size for state stack array */
|
||||
# define SST_FIX_STATES 7 /* size of sst_stack[]. */
|
||||
# define SST_DIST 16 /* normal distance between entries */
|
||||
# define SST_INVALID (synstate_T *)-1 /* invalid syn_state pointer */
|
||||
#define SST_MIN_ENTRIES 150 // minimal size for state stack array
|
||||
#define SST_MAX_ENTRIES 1000 // maximal size for state stack array
|
||||
#define SST_FIX_STATES 7 // size of sst_stack[].
|
||||
#define SST_DIST 16 // normal distance between entries
|
||||
#define SST_INVALID (synstate_T *)-1 // invalid syn_state pointer
|
||||
|
||||
typedef struct syn_state synstate_T;
|
||||
|
||||
#include "nvim/buffer_defs.h"
|
||||
#include "nvim/regexp_defs.h"
|
||||
|
||||
/* struct passed to in_id_list() */
|
||||
// struct passed to in_id_list()
|
||||
struct sp_syn {
|
||||
int inc_tag; // ":syn include" unique tag
|
||||
int16_t id; // highlight group ID of item
|
||||
@ -39,11 +39,11 @@ struct keyentry {
|
||||
* Struct used to store one state of the state stack.
|
||||
*/
|
||||
typedef struct buf_state {
|
||||
int bs_idx; /* index of pattern */
|
||||
int bs_flags; /* flags for pattern */
|
||||
int bs_seqnr; /* stores si_seqnr */
|
||||
int bs_cchar; /* stores si_cchar */
|
||||
reg_extmatch_T *bs_extmatch; /* external matches from start pattern */
|
||||
int bs_idx; // index of pattern
|
||||
int bs_flags; // flags for pattern
|
||||
int bs_seqnr; // stores si_seqnr
|
||||
int bs_cchar; // stores si_cchar
|
||||
reg_extmatch_T *bs_extmatch; // external matches from start pattern
|
||||
} bufstate_T;
|
||||
|
||||
/*
|
||||
@ -51,11 +51,11 @@ typedef struct buf_state {
|
||||
* Used by b_sst_array[].
|
||||
*/
|
||||
struct syn_state {
|
||||
synstate_T *sst_next; /* next entry in used or free list */
|
||||
linenr_T sst_lnum; /* line number for this state */
|
||||
synstate_T *sst_next; // next entry in used or free list
|
||||
linenr_T sst_lnum; // line number for this state
|
||||
union {
|
||||
bufstate_T sst_stack[SST_FIX_STATES]; /* short state stack */
|
||||
garray_T sst_ga; /* growarray for long state stack */
|
||||
bufstate_T sst_stack[SST_FIX_STATES]; // short state stack
|
||||
garray_T sst_ga; // growarray for long state stack
|
||||
} sst_union;
|
||||
int sst_next_flags; // flags for sst_next_list
|
||||
int sst_stacksize; // number of states on the stack
|
||||
|
@ -1,24 +1,24 @@
|
||||
#ifndef NVIM_TAG_H
|
||||
#define NVIM_TAG_H
|
||||
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/ex_cmds_defs.h"
|
||||
#include "nvim/types.h"
|
||||
|
||||
/*
|
||||
* Values for do_tag().
|
||||
*/
|
||||
#define DT_TAG 1 /* jump to newer position or same tag again */
|
||||
#define DT_POP 2 /* jump to older position */
|
||||
#define DT_NEXT 3 /* jump to next match of same tag */
|
||||
#define DT_PREV 4 /* jump to previous match of same tag */
|
||||
#define DT_FIRST 5 /* jump to first match of same tag */
|
||||
#define DT_LAST 6 /* jump to first match of same tag */
|
||||
#define DT_SELECT 7 /* jump to selection from list */
|
||||
#define DT_HELP 8 /* like DT_TAG, but no wildcards */
|
||||
#define DT_JUMP 9 /* jump to new tag or selection from list */
|
||||
#define DT_CSCOPE 10 /* cscope find command (like tjump) */
|
||||
#define DT_LTAG 11 /* tag using location list */
|
||||
#define DT_FREE 99 /* free cached matches */
|
||||
#define DT_TAG 1 // jump to newer position or same tag again
|
||||
#define DT_POP 2 // jump to older position
|
||||
#define DT_NEXT 3 // jump to next match of same tag
|
||||
#define DT_PREV 4 // jump to previous match of same tag
|
||||
#define DT_FIRST 5 // jump to first match of same tag
|
||||
#define DT_LAST 6 // jump to first match of same tag
|
||||
#define DT_SELECT 7 // jump to selection from list
|
||||
#define DT_HELP 8 // like DT_TAG, but no wildcards
|
||||
#define DT_JUMP 9 // jump to new tag or selection from list
|
||||
#define DT_CSCOPE 10 // cscope find command (like tjump)
|
||||
#define DT_LTAG 11 // tag using location list
|
||||
#define DT_FREE 99 // free cached matches
|
||||
|
||||
//
|
||||
// flags for find_tags().
|
||||
@ -40,8 +40,8 @@
|
||||
* Structure used for get_tagfname().
|
||||
*/
|
||||
typedef struct {
|
||||
char_u *tn_tags; /* value of 'tags' when starting */
|
||||
char_u *tn_np; /* current position in tn_tags */
|
||||
char_u *tn_tags; // value of 'tags' when starting
|
||||
char_u *tn_np; // current position in tn_tags
|
||||
int tn_did_filefind_init;
|
||||
int tn_hf_idx;
|
||||
void *tn_search_ctx;
|
||||
|
@ -1,8 +1,8 @@
|
||||
#ifndef NVIM_TERMINAL_H
|
||||
#define NVIM_TERMINAL_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct terminal Terminal;
|
||||
|
@ -1,6 +1,8 @@
|
||||
// This is an open source non-commercial project. Dear PVS-Studio, please check
|
||||
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
|
||||
|
||||
// uncrustify:off
|
||||
|
||||
/* vi:set ts=8 sts=4 sw=4 noet:
|
||||
*
|
||||
* VIM - Vi IMproved by Bram Moolenaar
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,8 +1,8 @@
|
||||
#ifndef NVIM_TYPES_H
|
||||
#define NVIM_TYPES_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
// dummy to pass an ACL to a function
|
||||
typedef void *vim_acl_T;
|
||||
|
@ -1,8 +1,8 @@
|
||||
#ifndef NVIM_UGRID_H
|
||||
#define NVIM_UGRID_H
|
||||
|
||||
#include "nvim/ui.h"
|
||||
#include "nvim/globals.h"
|
||||
#include "nvim/ui.h"
|
||||
|
||||
typedef struct ucell UCell;
|
||||
typedef struct ugrid UGrid;
|
||||
|
@ -1,12 +1,12 @@
|
||||
#ifndef NVIM_UI_H
|
||||
#define NVIM_UI_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "nvim/globals.h"
|
||||
#include "nvim/api/private/defs.h"
|
||||
#include "nvim/globals.h"
|
||||
#include "nvim/highlight_defs.h"
|
||||
|
||||
typedef enum {
|
||||
@ -70,6 +70,7 @@ struct ui_t {
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "ui.h.generated.h"
|
||||
|
||||
# include "ui_events_call.h.generated.h"
|
||||
#endif
|
||||
|
||||
|
@ -5,8 +5,8 @@
|
||||
|
||||
#include <uv.h>
|
||||
|
||||
#include "nvim/ui.h"
|
||||
#include "nvim/event/defs.h"
|
||||
#include "nvim/ui.h"
|
||||
|
||||
typedef struct ui_bridge_data UIBridgeData;
|
||||
typedef void (*ui_main_fn)(UIBridgeData *bridge, UI *ui);
|
||||
|
@ -1,8 +1,8 @@
|
||||
#ifndef NVIM_UI_COMPOSITOR_H
|
||||
#define NVIM_UI_COMPOSITOR_H
|
||||
|
||||
#include "nvim/ui.h"
|
||||
#include "nvim/event/defs.h"
|
||||
#include "nvim/ui.h"
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "ui_compositor.h.generated.h"
|
||||
|
@ -1,8 +1,8 @@
|
||||
#ifndef NVIM_UNDO_H
|
||||
#define NVIM_UNDO_H
|
||||
|
||||
#include "nvim/undo_defs.h"
|
||||
#include "nvim/ex_cmds_defs.h"
|
||||
#include "nvim/undo_defs.h"
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "undo.h.generated.h"
|
||||
|
@ -3,32 +3,32 @@
|
||||
|
||||
#include <time.h> // for time_t
|
||||
|
||||
#include "nvim/pos.h"
|
||||
#include "nvim/extmark_defs.h"
|
||||
#include "nvim/mark_defs.h"
|
||||
#include "nvim/pos.h"
|
||||
|
||||
typedef struct u_header u_header_T;
|
||||
|
||||
/* Structure to store info about the Visual area. */
|
||||
// Structure to store info about the Visual area.
|
||||
typedef struct {
|
||||
pos_T vi_start; /* start pos of last VIsual */
|
||||
pos_T vi_end; /* end position of last VIsual */
|
||||
int vi_mode; /* VIsual_mode of last VIsual */
|
||||
colnr_T vi_curswant; /* MAXCOL from w_curswant */
|
||||
pos_T vi_start; // start pos of last VIsual
|
||||
pos_T vi_end; // end position of last VIsual
|
||||
int vi_mode; // VIsual_mode of last VIsual
|
||||
colnr_T vi_curswant; // MAXCOL from w_curswant
|
||||
} visualinfo_T;
|
||||
|
||||
#include "nvim/buffer_defs.h"
|
||||
|
||||
typedef struct u_entry u_entry_T;
|
||||
struct u_entry {
|
||||
u_entry_T *ue_next; /* pointer to next entry in list */
|
||||
linenr_T ue_top; /* number of line above undo block */
|
||||
linenr_T ue_bot; /* number of line below undo block */
|
||||
linenr_T ue_lcount; /* linecount when u_save called */
|
||||
char_u **ue_array; /* array of lines in undo block */
|
||||
long ue_size; /* number of lines in ue_array */
|
||||
u_entry_T *ue_next; // pointer to next entry in list
|
||||
linenr_T ue_top; // number of line above undo block
|
||||
linenr_T ue_bot; // number of line below undo block
|
||||
linenr_T ue_lcount; // linecount when u_save called
|
||||
char_u **ue_array; // array of lines in undo block
|
||||
long ue_size; // number of lines in ue_array
|
||||
#ifdef U_DEBUG
|
||||
int ue_magic; /* magic number to check allocation */
|
||||
int ue_magic; // magic number to check allocation
|
||||
#endif
|
||||
};
|
||||
|
||||
@ -36,26 +36,26 @@ struct u_header {
|
||||
/* The following have a pointer and a number. The number is used when
|
||||
* reading the undo file in u_read_undo() */
|
||||
union {
|
||||
u_header_T *ptr; /* pointer to next undo header in list */
|
||||
u_header_T *ptr; // pointer to next undo header in list
|
||||
long seq;
|
||||
} uh_next;
|
||||
union {
|
||||
u_header_T *ptr; /* pointer to previous header in list */
|
||||
u_header_T *ptr; // pointer to previous header in list
|
||||
long seq;
|
||||
} uh_prev;
|
||||
union {
|
||||
u_header_T *ptr; /* pointer to next header for alt. redo */
|
||||
u_header_T *ptr; // pointer to next header for alt. redo
|
||||
long seq;
|
||||
} uh_alt_next;
|
||||
union {
|
||||
u_header_T *ptr; /* pointer to previous header for alt. redo */
|
||||
u_header_T *ptr; // pointer to previous header for alt. redo
|
||||
long seq;
|
||||
} uh_alt_prev;
|
||||
long uh_seq; /* sequence number, higher == newer undo */
|
||||
int uh_walk; /* used by undo_time() */
|
||||
u_entry_T *uh_entry; /* pointer to first entry */
|
||||
u_entry_T *uh_getbot_entry; /* pointer to where ue_bot must be set */
|
||||
pos_T uh_cursor; /* cursor position before saving */
|
||||
long uh_seq; // sequence number, higher == newer undo
|
||||
int uh_walk; // used by undo_time()
|
||||
u_entry_T *uh_entry; // pointer to first entry
|
||||
u_entry_T *uh_getbot_entry; // pointer to where ue_bot must be set
|
||||
pos_T uh_cursor; // cursor position before saving
|
||||
long uh_cursor_vcol;
|
||||
int uh_flags; // see below
|
||||
fmark_T uh_namedm[NMARKS]; // marks before undo/after redo
|
||||
|
@ -1,8 +1,8 @@
|
||||
#ifndef NVIM_VIM_H
|
||||
#define NVIM_VIM_H
|
||||
|
||||
#include "nvim/types.h"
|
||||
#include "nvim/pos.h" // for linenr_T, MAXCOL, etc...
|
||||
#include "nvim/types.h"
|
||||
|
||||
// Some defines from the old feature.h
|
||||
#define SESSION_FILE "Session.vim"
|
||||
@ -30,11 +30,10 @@ enum { NUMBUFLEN = 65 };
|
||||
|
||||
#define ROOT_UID 0
|
||||
|
||||
#include "nvim/gettext.h"
|
||||
#include "nvim/keymap.h"
|
||||
#include "nvim/macros.h"
|
||||
|
||||
#include "nvim/gettext.h"
|
||||
|
||||
// special attribute addition: Put message in history
|
||||
#define MSG_HIST 0x1000
|
||||
|
||||
@ -301,9 +300,9 @@ enum { FOLD_TEXT_LEN = 51 }; //!< buffer size for get_foldtext()
|
||||
# define mch_msg(str) printf("%s", (str))
|
||||
#endif
|
||||
|
||||
#include "nvim/globals.h" // global variables and messages
|
||||
#include "nvim/buffer_defs.h" // buffer and windows
|
||||
#include "nvim/ex_cmds_defs.h" // Ex command defines
|
||||
#include "nvim/globals.h" // global variables and messages
|
||||
|
||||
// Lowest number used for window ID. Cannot have this many windows per tab.
|
||||
#define LOWEST_WIN_ID 1000
|
||||
|
@ -5,11 +5,11 @@
|
||||
|
||||
#include "nvim/buffer_defs.h"
|
||||
|
||||
/* Values for file_name_in_line() */
|
||||
#define FNAME_MESS 1 /* give error message */
|
||||
#define FNAME_EXP 2 /* expand to path */
|
||||
#define FNAME_HYP 4 /* check for hypertext link */
|
||||
#define FNAME_INCL 8 /* apply 'includeexpr' */
|
||||
// Values for file_name_in_line()
|
||||
#define FNAME_MESS 1 // give error message
|
||||
#define FNAME_EXP 2 // expand to path
|
||||
#define FNAME_HYP 4 // check for hypertext link
|
||||
#define FNAME_INCL 8 // apply 'includeexpr'
|
||||
#define FNAME_REL 16 /* ".." and "./" are relative to the (current)
|
||||
file instead of the current directory */
|
||||
#define FNAME_UNESC 32 // remove backslashes used for escaping
|
||||
@ -17,20 +17,20 @@
|
||||
/*
|
||||
* arguments for win_split()
|
||||
*/
|
||||
#define WSP_ROOM 1 /* require enough room */
|
||||
#define WSP_VERT 2 /* split vertically */
|
||||
#define WSP_TOP 4 /* window at top-left of shell */
|
||||
#define WSP_BOT 8 /* window at bottom-right of shell */
|
||||
#define WSP_HELP 16 /* creating the help window */
|
||||
#define WSP_BELOW 32 /* put new window below/right */
|
||||
#define WSP_ABOVE 64 /* put new window above/left */
|
||||
#define WSP_NEWLOC 128 /* don't copy location list */
|
||||
#define WSP_ROOM 1 // require enough room
|
||||
#define WSP_VERT 2 // split vertically
|
||||
#define WSP_TOP 4 // window at top-left of shell
|
||||
#define WSP_BOT 8 // window at bottom-right of shell
|
||||
#define WSP_HELP 16 // creating the help window
|
||||
#define WSP_BELOW 32 // put new window below/right
|
||||
#define WSP_ABOVE 64 // put new window above/left
|
||||
#define WSP_NEWLOC 128 // don't copy location list
|
||||
|
||||
/*
|
||||
* Minimum screen size
|
||||
*/
|
||||
#define MIN_COLUMNS 12 /* minimal columns for screen */
|
||||
#define MIN_LINES 2 /* minimal lines for screen */
|
||||
#define MIN_COLUMNS 12 // minimal columns for screen
|
||||
#define MIN_LINES 2 // minimal lines for screen
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "window.h.generated.h"
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Uncrustify-0.73.0-199-0dfafb273
|
||||
# Uncrustify-0.73.0-199-0dfafb27
|
||||
|
||||
#
|
||||
# General options
|
||||
|
Loading…
Reference in New Issue
Block a user