blob: 7d804b99d9fcf22064e5caccf89a90abe3e8bb9c [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001/* misc1.c */
Bram Moolenaar779b74b2006-04-10 14:55:34 +00002extern int get_indent __ARGS((void));
3extern int get_indent_lnum __ARGS((linenr_T lnum));
4extern int get_indent_buf __ARGS((buf_T *buf, linenr_T lnum));
5extern int get_indent_str __ARGS((char_u *ptr, int ts));
6extern int set_indent __ARGS((int size, int flags));
7extern int get_number_indent __ARGS((linenr_T lnum));
8extern int open_line __ARGS((int dir, int flags, int old_indent));
9extern int get_leader_len __ARGS((char_u *line, char_u **flags, int backward));
10extern int plines __ARGS((linenr_T lnum));
11extern int plines_win __ARGS((win_T *wp, linenr_T lnum, int winheight));
12extern int plines_nofill __ARGS((linenr_T lnum));
13extern int plines_win_nofill __ARGS((win_T *wp, linenr_T lnum, int winheight));
14extern int plines_win_nofold __ARGS((win_T *wp, linenr_T lnum));
15extern int plines_win_col __ARGS((win_T *wp, linenr_T lnum, long column));
16extern int plines_m_win __ARGS((win_T *wp, linenr_T first, linenr_T last));
17extern void ins_bytes __ARGS((char_u *p));
18extern void ins_bytes_len __ARGS((char_u *p, int len));
19extern void ins_char __ARGS((int c));
20extern void ins_char_bytes __ARGS((char_u *buf, int charlen));
21extern void ins_str __ARGS((char_u *s));
22extern int del_char __ARGS((int fixpos));
23extern int del_chars __ARGS((long count, int fixpos));
24extern int del_bytes __ARGS((long count, int fixpos_arg, int use_delcombine));
25extern int truncate_line __ARGS((int fixpos));
26extern void del_lines __ARGS((long nlines, int undo));
27extern int gchar_pos __ARGS((pos_T *pos));
28extern int gchar_cursor __ARGS((void));
29extern void pchar_cursor __ARGS((int c));
30extern int inindent __ARGS((int extra));
31extern char_u *skip_to_option_part __ARGS((char_u *p));
32extern void changed __ARGS((void));
33extern void changed_bytes __ARGS((linenr_T lnum, colnr_T col));
34extern void appended_lines __ARGS((linenr_T lnum, long count));
35extern void appended_lines_mark __ARGS((linenr_T lnum, long count));
36extern void deleted_lines __ARGS((linenr_T lnum, long count));
37extern void deleted_lines_mark __ARGS((linenr_T lnum, long count));
38extern void changed_lines __ARGS((linenr_T lnum, colnr_T col, linenr_T lnume, long xtra));
39extern void unchanged __ARGS((buf_T *buf, int ff));
40extern void check_status __ARGS((buf_T *buf));
41extern void change_warning __ARGS((int col));
42extern int ask_yesno __ARGS((char_u *str, int direct));
43extern int get_keystroke __ARGS((void));
44extern int get_number __ARGS((int colon, int *mouse_used));
45extern int prompt_for_number __ARGS((int *mouse_used));
46extern void msgmore __ARGS((long n));
47extern void beep_flush __ARGS((void));
48extern void vim_beep __ARGS((void));
49extern void init_homedir __ARGS((void));
50extern void free_homedir __ARGS((void));
51extern void expand_env __ARGS((char_u *src, char_u *dst, int dstlen));
52extern void expand_env_esc __ARGS((char_u *srcp, char_u *dst, int dstlen, int esc, char_u *startstr));
53extern char_u *vim_getenv __ARGS((char_u *name, int *mustfree));
54extern char_u *expand_env_save __ARGS((char_u *src));
55extern void vim_setenv __ARGS((char_u *name, char_u *val));
56extern char_u *get_env_name __ARGS((expand_T *xp, int idx));
57extern void home_replace __ARGS((buf_T *buf, char_u *src, char_u *dst, int dstlen, int one));
58extern char_u *home_replace_save __ARGS((buf_T *buf, char_u *src));
59extern int fullpathcmp __ARGS((char_u *s1, char_u *s2, int checkname));
60extern char_u *gettail __ARGS((char_u *fname));
61extern char_u *gettail_sep __ARGS((char_u *fname));
62extern char_u *getnextcomp __ARGS((char_u *fname));
63extern char_u *get_past_head __ARGS((char_u *path));
64extern int vim_ispathsep __ARGS((int c));
65extern int vim_ispathlistsep __ARGS((int c));
66extern void shorten_dir __ARGS((char_u *str));
67extern int dir_of_file_exists __ARGS((char_u *fname));
68extern int vim_fnamecmp __ARGS((char_u *x, char_u *y));
69extern int vim_fnamencmp __ARGS((char_u *x, char_u *y, size_t len));
70extern char_u *concat_fnames __ARGS((char_u *fname1, char_u *fname2, int sep));
71extern char_u *concat_str __ARGS((char_u *str1, char_u *str2));
72extern void add_pathsep __ARGS((char_u *p));
73extern char_u *FullName_save __ARGS((char_u *fname, int force));
74extern pos_T *find_start_comment __ARGS((int ind_maxcomment));
75extern void do_c_expr_indent __ARGS((void));
76extern int cin_islabel __ARGS((int ind_maxcomment));
77extern int cin_iscase __ARGS((char_u *s));
78extern int cin_isscopedecl __ARGS((char_u *s));
79extern int get_c_indent __ARGS((void));
80extern int get_expr_indent __ARGS((void));
81extern int get_lisp_indent __ARGS((void));
82extern void prepare_to_exit __ARGS((void));
83extern void preserve_exit __ARGS((void));
84extern int vim_fexists __ARGS((char_u *fname));
85extern void line_breakcheck __ARGS((void));
86extern void fast_breakcheck __ARGS((void));
87extern int expand_wildcards __ARGS((int num_pat, char_u **pat, int *num_file, char_u ***file, int flags));
88extern int match_suffix __ARGS((char_u *fname));
89extern int unix_expandpath __ARGS((garray_T *gap, char_u *path, int wildoff, int flags, int didstar));
90extern int gen_expand_wildcards __ARGS((int num_pat, char_u **pat, int *num_file, char_u ***file, int flags));
91extern void addfile __ARGS((garray_T *gap, char_u *f, int flags));
92extern char_u *get_cmd_output __ARGS((char_u *cmd, char_u *infile, int flags));
93extern void FreeWild __ARGS((int count, char_u **files));
94extern int goto_im __ARGS((void));
Bram Moolenaar071d4272004-06-13 20:20:40 +000095/* vim: set ft=c : */