diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2015-01-19 14:45:50 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-01-19 14:45:50 -0500 |
commit | 617c00bd49c2bdb05c8ef31f94e206ba3f80f694 (patch) | |
tree | 2804c90f676a47f3f8ca23a11f78e2b8c5446a66 /src/nvim/ex_cmds_defs.h | |
parent | d0debe243276804f59b24156c84174c394bc42bb (diff) | |
parent | dad1e39edf7f704dba40b182c7726ef4bc34c502 (diff) | |
download | rneovim-617c00bd49c2bdb05c8ef31f94e206ba3f80f694.tar.gz rneovim-617c00bd49c2bdb05c8ef31f94e206ba3f80f694.tar.bz2 rneovim-617c00bd49c2bdb05c8ef31f94e206ba3f80f694.zip |
Merge pull request #1812 from elmart/remove-long_u-5
Remove project-specific integer types: long_u. (5)
Diffstat (limited to 'src/nvim/ex_cmds_defs.h')
-rw-r--r-- | src/nvim/ex_cmds_defs.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/nvim/ex_cmds_defs.h b/src/nvim/ex_cmds_defs.h index 0e13574321..1b920511b6 100644 --- a/src/nvim/ex_cmds_defs.h +++ b/src/nvim/ex_cmds_defs.h @@ -8,6 +8,7 @@ #define NVIM_EX_CMDS_DEFS_H #include <stdbool.h> +#include <stdint.h> #include "nvim/pos.h" // for linenr_T #include "nvim/normal.h" @@ -59,13 +60,13 @@ #define USECTRLV 0x2000 /* do not remove CTRL-V from argument */ #define NOTADR 0x4000 /* number before command is not an address */ #define EDITCMD 0x8000 /* allow "+command" argument */ -#define BUFNAME 0x10000L /* accepts buffer name */ -#define BUFUNL 0x20000L /* accepts unlisted buffer too */ -#define ARGOPT 0x40000L /* allow "++opt=val" argument */ -#define SBOXOK 0x80000L /* allowed in the sandbox */ -#define CMDWIN 0x100000L /* allowed in cmdline window */ -#define MODIFY 0x200000L /* forbidden in non-'modifiable' buffer */ -#define EXFLAGS 0x400000L /* allow flags after count in argument */ +#define BUFNAME 0x10000 /* accepts buffer name */ +#define BUFUNL 0x20000 /* accepts unlisted buffer too */ +#define ARGOPT 0x40000 /* allow "++opt=val" argument */ +#define SBOXOK 0x80000 /* allowed in the sandbox */ +#define CMDWIN 0x100000 /* allowed in cmdline window */ +#define MODIFY 0x200000 /* forbidden in non-'modifiable' buffer */ +#define EXFLAGS 0x400000 /* allow flags after count in argument */ #define FILES (XFILE | EXTRA) /* multiple extra files allowed */ #define WORD1 (EXTRA | NOSPC) /* one extra word allowed */ #define FILE1 (FILES | NOSPC) /* 1 file allowed, defaults to current file */ @@ -85,7 +86,7 @@ typedef char_u *(*LineGetter)(int, void *, int); typedef struct cmdname { char_u *cmd_name; ///< Name of the command. ex_func_T cmd_func; ///< Function with implementation of this command. - long_u cmd_argt; ///< Relevant flags from the declared above. + uint32_t cmd_argt; ///< Relevant flags from the declared above. } CommandDefinition; /// Arguments used for Ex commands. @@ -95,7 +96,7 @@ struct exarg { char_u *cmd; ///< the name of the command (except for :make) char_u **cmdlinep; ///< pointer to pointer of allocated cmdline cmdidx_T cmdidx; ///< the index for the command - long argt; ///< flags for the command + uint32_t argt; ///< flags for the command int skip; ///< don't execute the command, only parse it int forceit; ///< TRUE if ! present int addr_count; ///< the number of addresses given |