1 | #ifndef DEFINE_FUNC_ATTRIBUTES |
2 | # define DEFINE_FUNC_ATTRIBUTES |
3 | #endif |
4 | #include "nvim/func_attr.h" |
5 | #undef DEFINE_FUNC_ATTRIBUTES |
6 | static linenr_T readfile_linenr(linenr_T linecnt, char_u *p, char_u *endp ); |
7 | static char_u *next_fenc(char_u **pp, _Bool *alloced) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NONNULL_RET; |
8 | static char_u *readfile_charconvert(char_u *fname, char_u *fenc, int *fdp ); |
9 | static void check_marks_read(void); |
10 | static int set_rw_fname(char_u *fname, char_u *sfname); |
11 | static void add_quoted_fname(char *const ret_buf, const size_t buf_len, const buf_T *const buf, const char *fname) FUNC_ATTR_NONNULL_ARG(1); |
12 | static _Bool msg_add_fileformat(int eol_type); |
13 | static void msg_add_eol(void); |
14 | static int check_mtime(buf_T *buf, FileInfo *file_info); |
15 | static _Bool time_differs(long t1, long t2) FUNC_ATTR_CONST; |
16 | static int buf_write_bytes(struct bw_info *ip); |
17 | static _Bool ucs2bytes(unsigned c, char_u **pp, int flags) FUNC_ATTR_NONNULL_ALL; |
18 | static _Bool need_conversion(const char_u *fenc) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT; |
19 | static int get_fio_flags(const char_u *name); |
20 | static char_u *check_for_bom(char_u *p, long size, int *lenp, int flags); |
21 | static int make_bom(char_u *buf, char_u *name); |
22 | static int move_lines(buf_T *frombuf, buf_T *tobuf); |
23 | static void vim_maketempdir(void); |
24 | static _Bool vim_settempdir(char *tempdir); |
25 | static inline const char *get_deleted_augroup(void) FUNC_ATTR_ALWAYS_INLINE; |
26 | static void show_autocmd(AutoPat *ap, event_T event); |
27 | static void au_remove_pat(AutoPat *ap); |
28 | static void au_remove_cmds(AutoPat *ap); |
29 | static void au_del_cmd(AutoCmd *ac); |
30 | static void au_cleanup(void); |
31 | static int au_new_group(char_u *name); |
32 | static void au_del_group(char_u *name); |
33 | static int au_find_group(const char_u *name) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT; |
34 | static event_T event_name2nr(const char_u *start, char_u **end); |
35 | static const char *event_nr2name(event_T event) FUNC_ATTR_NONNULL_RET FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_CONST; |
36 | static char_u *find_end_event(char_u *arg, int have_group ); |
37 | static _Bool event_ignored(event_T event) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT; |
38 | static int au_get_grouparg(char_u **argp); |
39 | static int do_autocmd_event(event_T event, char_u *pat, _Bool once, int nested, char_u *cmd, int forceit, int group); |
40 | static _Bool apply_autocmds_exarg(event_T event, char_u *fname, char_u *fname_io, _Bool force, buf_T *buf, exarg_T *eap); |
41 | static _Bool apply_autocmds_group(event_T event, char_u *fname, char_u *fname_io, _Bool force, int group, buf_T *buf, exarg_T *eap); |
42 | static void auto_next_pat(AutoPatCmd *apc, int stop_at_last ); |
43 | static _Bool match_file_pat(char_u *pattern, regprog_T **prog, char_u *fname, char_u *sfname, char_u *tail, int allow_dirs); |
44 | #include "nvim/func_attr.h" |
45 | |