aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-06-02 11:24:02 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-06-02 11:24:02 -0300
commitcab8cf970c09ea465d30e11eb356e2e5d37dc544 (patch)
tree5d274c892e4d53f5e976ae8f6f58aba030785e02 /src/nvim/ex_getln.h
parent52a9a5b0b0c53a1481d901f39ed0d1e7e86c3853 (diff)
parent4aecb71b0e819aa84a430dacdab2146229c410a5 (diff)
downloadrneovim-cab8cf970c09ea465d30e11eb356e2e5d37dc544.tar.gz
rneovim-cab8cf970c09ea465d30e11eb356e2e5d37dc544.tar.bz2
rneovim-cab8cf970c09ea465d30e11eb356e2e5d37dc544.zip
Merge pull request #710 'Automatically generate declarations'
Diffstat (limited to 'src/nvim/ex_getln.h')
-rw-r--r--src/nvim/ex_getln.h71
1 files changed, 8 insertions, 63 deletions
diff --git a/src/nvim/ex_getln.h b/src/nvim/ex_getln.h
index d2ebb7a82f..6d88e94a78 100644
--- a/src/nvim/ex_getln.h
+++ b/src/nvim/ex_getln.h
@@ -1,66 +1,11 @@
#ifndef NVIM_EX_GETLN_H
#define NVIM_EX_GETLN_H
-/* ex_getln.c */
-char_u *getcmdline(int firstc, long count, int indent);
-char_u *getcmdline_prompt(int firstc, char_u *prompt, int attr,
- int xp_context,
- char_u *xp_arg);
-int text_locked(void);
-void text_locked_msg(void);
-int curbuf_locked(void);
-int allbuf_locked(void);
-char_u *getexline(int c, void *cookie, int indent);
-char_u *getexmodeline(int promptc, void *cookie, int indent);
-void free_cmdline_buf(void);
-void putcmdline(int c, int shift);
-void unputcmdline(void);
-void put_on_cmdline(char_u *str, int len, int redraw);
-char_u *save_cmdline_alloc(void);
-void restore_cmdline_alloc(char_u *p);
-void cmdline_paste_str(char_u *s, int literally);
-void redrawcmdline(void);
-void redrawcmd(void);
-void compute_cmdrow(void);
-void gotocmdline(int clr);
-char_u *ExpandOne(expand_T *xp, char_u *str, char_u *orig, int options,
- int mode);
-void ExpandInit(expand_T *xp);
-void ExpandCleanup(expand_T *xp);
-void ExpandEscape(expand_T *xp, char_u *str, int numfiles, char_u *
- *files,
- int options);
-char_u *vim_strsave_fnameescape(char_u *fname, int shell);
-void tilde_replace(char_u *orig_pat, int num_files, char_u **files);
-char_u *sm_gettail(char_u *s);
-char_u *addstar(char_u *fname, int len, int context);
-void set_cmd_context(expand_T *xp, char_u *str, int len, int col);
-int expand_cmdline(expand_T *xp, char_u *str, int col, int *matchcount,
- char_u ***matches);
-int ExpandGeneric(expand_T *xp, regmatch_T *regmatch, int *num_file,
- char_u ***file, char_u *((*func)(expand_T *, int)),
- int escaped);
-char_u *globpath(char_u *path, char_u *file, int expand_options);
-void init_history(void);
-int get_histtype(char_u *name);
-void add_to_history(int histype, char_u *new_entry, int in_map, int sep);
-int get_history_idx(int histype);
-char_u *get_cmdline_str(void);
-int get_cmdline_pos(void);
-int set_cmdline_pos(int pos);
-int get_cmdline_type(void);
-char_u *get_history_entry(int histype, int idx);
-int clr_history(int histype);
-int del_history_entry(int histype, char_u *str);
-int del_history_idx(int histype, int idx);
-void remove_key_from_history(void);
-int get_list_range(char_u **str, int *num1, int *num2);
-void ex_history(exarg_T *eap);
-void prepare_viminfo_history(int asklen, int writing);
-int read_viminfo_history(vir_T *virp, int writing);
-void finish_viminfo_history(void);
-void write_viminfo_history(FILE *fp, int merge);
-void cmd_pchar(int c, int offset);
-int cmd_gchar(int offset);
-char_u *script_get(exarg_T *eap, char_u *cmd);
-#endif /* NVIM_EX_GETLN_H */
+#include "nvim/ex_cmds.h"
+
+typedef char_u *(*CompleteListItemGetter)(expand_T *, int);
+
+#ifdef INCLUDE_GENERATED_DECLARATIONS
+# include "ex_getln.h.generated.h"
+#endif
+#endif // NVIM_EX_GETLN_H