aboutsummaryrefslogtreecommitdiff
path: root/src/ex_cmds_defs.h
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-03-13 02:40:51 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-18 20:19:19 -0300
commit59f2430a8d543fc57a31d489a649ec87a6ca9715 (patch)
tree69d4e89c8f37efc3b5e20ab05e70a9eb4e4c1c05 /src/ex_cmds_defs.h
parent1fcd332e8e3d2c6c22fa548cc96b1d9dde2f5651 (diff)
downloadrneovim-59f2430a8d543fc57a31d489a649ec87a6ca9715.tar.gz
rneovim-59f2430a8d543fc57a31d489a649ec87a6ca9715.tar.bz2
rneovim-59f2430a8d543fc57a31d489a649ec87a6ca9715.zip
Delete structs.h by spliting it and moving code to other headers
Here's the list of squashed commits (for more info, see PR #378). - Define guicolor_T as a typedef in syntax.h - Move a big chunk of code from structs.h to buffer_defs.h - Move aco_save_T from structs.h to fileio.h - Move option_table_T from structs.h to hardcopy.h Aditionally: - Move the printer_opts global to hardcopy.c - Delete structs.h. Include buffer_defs.h where structs.h was included before. - Add header guards to option_defs.h - Put mark types and constants in new mark_defs.h - Move undo structs to undo_defs.h - Move memfile structs to new memfile_defs.h - Move expand_T and cmdmod_T to ex_cmds_defs.h - Move memline_T to memline_defs.h - Move many defs and types to ex_eval.h - Move syntax related types to syntax_defs.h - Move struct memfile to memfile_defs.h - struct buffblock and struct buffheader moved back to buffer_defs.h - Move some datatypes to hashtab.h and eval_defs.h - Move the buffer_defs.h include and TODOs for remaining unrelated types in buffer_defs.h
Diffstat (limited to 'src/ex_cmds_defs.h')
-rw-r--r--src/ex_cmds_defs.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/ex_cmds_defs.h b/src/ex_cmds_defs.h
index 8b6c7c866e..3b173341e1 100644
--- a/src/ex_cmds_defs.h
+++ b/src/ex_cmds_defs.h
@@ -1190,4 +1190,48 @@ struct exarg {
#define EXFLAG_NR 0x02 /* '#': number */
#define EXFLAG_PRINT 0x04 /* 'p': print */
+/*
+ * used for completion on the command line
+ */
+typedef struct expand {
+ int xp_context; /* type of expansion */
+ char_u *xp_pattern; /* start of item to expand */
+ int xp_pattern_len; /* bytes in xp_pattern before cursor */
+ char_u *xp_arg; /* completion function */
+ int xp_scriptID; /* SID for completion function */
+ int xp_backslash; /* one of the XP_BS_ values */
+#ifndef BACKSLASH_IN_FILENAME
+ int xp_shell; /* TRUE for a shell command, more
+ characters need to be escaped */
+#endif
+ int xp_numfiles; /* number of files found by
+ file name completion */
+ char_u **xp_files; /* list of files */
+ char_u *xp_line; /* text being completed */
+ int xp_col; /* cursor position in line */
+} expand_T;
+
+/* values for xp_backslash */
+#define XP_BS_NONE 0 /* nothing special for backslashes */
+#define XP_BS_ONE 1 /* uses one backslash before a space */
+#define XP_BS_THREE 2 /* uses three backslashes before a space */
+
+/*
+ * Command modifiers ":vertical", ":browse", ":confirm" and ":hide" set a flag.
+ * This needs to be saved for recursive commands, put them in a structure for
+ * easy manipulation.
+ */
+typedef struct {
+ int hide; /* TRUE when ":hide" was used */
+ int split; /* flags for win_split() */
+ int tab; /* > 0 when ":tab" was used */
+ int confirm; /* TRUE to invoke yes/no dialog */
+ int keepalt; /* TRUE when ":keepalt" was used */
+ int keepmarks; /* TRUE when ":keepmarks" was used */
+ int keepjumps; /* TRUE when ":keepjumps" was used */
+ int lockmarks; /* TRUE when ":lockmarks" was used */
+ int keeppatterns; /* TRUE when ":keeppatterns" was used */
+ char_u *save_ei; /* saved value of 'eventignore' */
+} cmdmod_T;
+
#endif