aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2015-01-13 11:27:19 +0100
committerEliseo Martínez <eliseomarmol@gmail.com>2015-01-19 19:41:27 +0100
commit6762f172d75a17e2d5fca222d9b0eceb940cd1a8 (patch)
tree92d1987c24c3065e21010e7f2790c67fdc76f27d /src
parentd0debe243276804f59b24156c84174c394bc42bb (diff)
downloadrneovim-6762f172d75a17e2d5fca222d9b0eceb940cd1a8.tar.gz
rneovim-6762f172d75a17e2d5fca222d9b0eceb940cd1a8.tar.bz2
rneovim-6762f172d75a17e2d5fca222d9b0eceb940cd1a8.zip
Remove long_u: ex_cmds_defs.h: Refactor long_u.
CommandDefinition.cmd_argt: long_u --> uint32_t.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_cmds_defs.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/nvim/ex_cmds_defs.h b/src/nvim/ex_cmds_defs.h
index 0e13574321..3f3ef8b275 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.