#include "nvim/pos.h"
#include "nvim/types.h"
#include "auto/config.h"
#include "nvim/os/os_defs.h"
#include "nvim/gettext.h"
#include "nvim/keycodes.h"
#include "nvim/macros.h"
#include "nvim/message.h"
#include "nvim/path.h"
#include "nvim/buffer_defs.h"
#include "nvim/ex_cmds_defs.h"
#include "nvim/globals.h"
Go to the source code of this file.
Macros | |
#define | SESSION_FILE "Session.vim" |
#define | MAX_MSG_HIST_LEN 200 |
#define | SYS_OPTWIN_FILE "$VIMRUNTIME/optwin.vim" |
#define | RUNTIME_DIRNAME "runtime" |
#define | HAVE_PATHDEF |
#define | MAX_TYPENR 65535 |
#define | ROOT_UID 0 |
#define | MSG_HIST 0x1000 |
#define | MODE_NORMAL 0x01 |
#define | MODE_VISUAL 0x02 |
#define | MODE_OP_PENDING 0x04 |
#define | MODE_CMDLINE 0x08 |
#define | MODE_INSERT 0x10 |
#define | MODE_LANGMAP 0x20 |
#define | MODE_SELECT 0x40 |
#define | MODE_TERMINAL 0x80 |
#define | MAP_ALL_MODES 0xff |
#define | REPLACE_FLAG 0x100 |
#define | MODE_REPLACE (REPLACE_FLAG | MODE_INSERT) |
#define | VREPLACE_FLAG 0x200 |
#define | MODE_VREPLACE (REPLACE_FLAG | VREPLACE_FLAG | MODE_INSERT) |
#define | MODE_LREPLACE (REPLACE_FLAG | MODE_LANGMAP) |
#define | MODE_NORMAL_BUSY (0x1000 | MODE_NORMAL) |
#define | MODE_HITRETURN (0x2000 | MODE_NORMAL) |
#define | MODE_ASKMORE 0x3000 |
#define | MODE_SETWSIZE 0x4000 |
#define | MODE_EXTERNCMD 0x5000 |
#define | MODE_SHOWMATCH (0x6000 | MODE_INSERT) |
#define | MODE_CONFIRM 0x7000 |
#define | OK 1 |
#define | FAIL 0 |
#define | NOTDONE 2 |
#define | VAR_TYPE_NUMBER 0 |
#define | VAR_TYPE_STRING 1 |
#define | VAR_TYPE_FUNC 2 |
#define | VAR_TYPE_LIST 3 |
#define | VAR_TYPE_DICT 4 |
#define | VAR_TYPE_FLOAT 5 |
#define | VAR_TYPE_BOOL 6 |
#define | VAR_TYPE_SPECIAL 7 |
#define | VAR_TYPE_BLOB 10 |
#define | MIN_SWAP_PAGE_SIZE 1048 |
#define | MAX_SWAP_PAGE_SIZE 50000 |
#define | FALSE 0 |
#define | TRUE 1 |
#define | MAYBE 2 |
#define | STATUS_HEIGHT 1 |
#define | QF_WINHEIGHT 10 |
#define | CMDBUFFSIZE 256 |
#define | LSIZE 512 |
#define | DIALOG_MSG_SIZE 1000 |
#define | MAXMAPLEN 50 |
#define | UNDO_HASH_SIZE 32 |
#define | CLEAR_POINTER(ptr) memset((ptr), 0, sizeof(*(ptr))) |
#define | STRLEN(s) strlen((char *)(s)) |
#define | STRNLEN(s, n) xstrnlen((char *)(s), (size_t)(n)) |
#define | STRCPY(d, s) strcpy((char *)(d), (char *)(s)) |
#define | STRNCPY(d, s, n) strncpy((char *)(d), (char *)(s), (size_t)(n)) |
#define | STRLCPY(d, s, n) xstrlcpy((char *)(d), (char *)(s), (size_t)(n)) |
#define | STRCMP(d, s) strcmp((char *)(d), (char *)(s)) |
#define | STRNCMP(d, s, n) strncmp((char *)(d), (char *)(s), (size_t)(n)) |
#define | STRICMP(d, s) vim_stricmp((char *)(d), (char *)(s)) |
#define | STRMOVE(d, s) memmove((d), (s), STRLEN(s) + 1) |
#define | STRNICMP(d, s, n) vim_strnicmp((char *)(d), (char *)(s), (size_t)(n)) |
#define | STRRCHR(s, c) (char_u *)strrchr((const char *)(s), (c)) |
#define | STRCAT(d, s) strcat((char *)(d), (char *)(s)) |
#define | STRNCAT(d, s, n) strncat((char *)(d), (char *)(s), (size_t)(n)) |
#define | STRLCAT(d, s, n) xstrlcat((char *)(d), (char *)(s), (size_t)(n)) |
#define | AUTOLOAD_CHAR '#' |
#define | PERROR(msg) (void)semsg("%s: %s", (msg), strerror(errno)) |
#define | SHOWCMD_COLS 10 |
#define | FNAMECMP(x, y) path_fnamecmp((const char *)(x), (const char *)(y)) |
#define | FNAMENCMP(x, y, n) |
#define | HL_ATTR(n) highlight_attr[(int)(n)] |
#define | MB_MAXBYTES 21 |
#define | mch_errmsg(str) fprintf(stderr, "%s", (str)) |
#define | mch_msg(str) printf("%s", (str)) |
#define | LOWEST_WIN_ID 1000 |
#define | REPLACE_CR_NCHAR (-1) |
#define | REPLACE_NL_NCHAR (-2) |
#define AUTOLOAD_CHAR '#' |
#define CMDBUFFSIZE 256 |
#define DIALOG_MSG_SIZE 1000 |
#define FAIL 0 |
#define FALSE 0 |
#define FNAMECMP | ( | x, | |
y | |||
) | path_fnamecmp((const char *)(x), (const char *)(y)) |
Compare file names
On some systems case in a file name does not matter, on others it does.
[in] | x | First file name to compare. |
[in] | y | Second file name to compare. |
#define FNAMENCMP | ( | x, | |
y, | |||
n | |||
) |
#define HAVE_PATHDEF |
#define HL_ATTR | ( | n | ) | highlight_attr[(int)(n)] |
#define LOWEST_WIN_ID 1000 |
#define LSIZE 512 |
#define MAP_ALL_MODES 0xff |
#define MAX_MSG_HIST_LEN 200 |
#define MAX_SWAP_PAGE_SIZE 50000 |
#define MAX_TYPENR 65535 |
#define MAXMAPLEN 50 |
#define MAYBE 2 |
#define MB_MAXBYTES 21 |
Maximum number of bytes in a multi-byte character. It can be one 32-bit character of up to 6 bytes, or one 16-bit character of up to three bytes plus six following composing characters of three bytes each.
#define mch_errmsg | ( | str | ) | fprintf(stderr, "%s", (str)) |
#define mch_msg | ( | str | ) | printf("%s", (str)) |
#define MIN_SWAP_PAGE_SIZE 1048 |
#define MODE_ASKMORE 0x3000 |
#define MODE_CMDLINE 0x08 |
#define MODE_CONFIRM 0x7000 |
#define MODE_EXTERNCMD 0x5000 |
#define MODE_HITRETURN (0x2000 | MODE_NORMAL) |
#define MODE_INSERT 0x10 |
#define MODE_LANGMAP 0x20 |
#define MODE_LREPLACE (REPLACE_FLAG | MODE_LANGMAP) |
#define MODE_NORMAL 0x01 |
#define MODE_NORMAL_BUSY (0x1000 | MODE_NORMAL) |
#define MODE_OP_PENDING 0x04 |
#define MODE_REPLACE (REPLACE_FLAG | MODE_INSERT) |
#define MODE_SELECT 0x40 |
#define MODE_SETWSIZE 0x4000 |
#define MODE_SHOWMATCH (0x6000 | MODE_INSERT) |
#define MODE_TERMINAL 0x80 |
#define MODE_VISUAL 0x02 |
#define MODE_VREPLACE (REPLACE_FLAG | VREPLACE_FLAG | MODE_INSERT) |
#define MSG_HIST 0x1000 |
#define NOTDONE 2 |
#define OK 1 |
#define QF_WINHEIGHT 10 |
#define REPLACE_CR_NCHAR (-1) |
#define REPLACE_FLAG 0x100 |
#define REPLACE_NL_NCHAR (-2) |
#define ROOT_UID 0 |
#define RUNTIME_DIRNAME "runtime" |
#define SESSION_FILE "Session.vim" |
#define SHOWCMD_COLS 10 |
#define STATUS_HEIGHT 1 |
#define STRICMP | ( | d, | |
s | |||
) | vim_stricmp((char *)(d), (char *)(s)) |
#define STRNICMP | ( | d, | |
s, | |||
n | |||
) | vim_strnicmp((char *)(d), (char *)(s), (size_t)(n)) |
#define SYS_OPTWIN_FILE "$VIMRUNTIME/optwin.vim" |
#define TRUE 1 |
#define UNDO_HASH_SIZE 32 |
#define VAR_TYPE_BLOB 10 |
#define VAR_TYPE_BOOL 6 |
#define VAR_TYPE_DICT 4 |
#define VAR_TYPE_FLOAT 5 |
#define VAR_TYPE_FUNC 2 |
#define VAR_TYPE_LIST 3 |
#define VAR_TYPE_NUMBER 0 |
#define VAR_TYPE_SPECIAL 7 |
#define VAR_TYPE_STRING 1 |
#define VREPLACE_FLAG 0x200 |
anonymous enum |
anonymous enum |
enum Direction |