comparison src/undo.c @ 14862:27b9a84395b5 v8.1.0443

patch 8.1.0443: unnecessary static function prototypes commit https://github.com/vim/vim/commit/6dff58f15cede9139b2fcfc64c9064326ea3d3b0 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 30 21:43:26 2018 +0200 patch 8.1.0443: unnecessary static function prototypes Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
author Christian Brabandt <cb@256bit.org>
date Sun, 30 Sep 2018 21:45:07 +0200
parents 9c9ee53868b9
children 58b125df3e9b
comparison
equal deleted inserted replaced
14861:41fbdae837df 14862:27b9a84395b5
98 size_t bi_avail; /* bytes available in bi_buffer */ 98 size_t bi_avail; /* bytes available in bi_buffer */
99 #endif 99 #endif
100 } bufinfo_T; 100 } bufinfo_T;
101 101
102 102
103 static long get_undolevel(void);
104 static void u_unch_branch(u_header_T *uhp); 103 static void u_unch_branch(u_header_T *uhp);
105 static u_entry_T *u_get_headentry(void); 104 static u_entry_T *u_get_headentry(void);
106 static void u_getbot(void); 105 static void u_getbot(void);
107 static void u_doit(int count); 106 static void u_doit(int count);
108 static void u_undoredo(int undo); 107 static void u_undoredo(int undo);
111 static void u_freeheader(buf_T *buf, u_header_T *uhp, u_header_T **uhpp); 110 static void u_freeheader(buf_T *buf, u_header_T *uhp, u_header_T **uhpp);
112 static void u_freebranch(buf_T *buf, u_header_T *uhp, u_header_T **uhpp); 111 static void u_freebranch(buf_T *buf, u_header_T *uhp, u_header_T **uhpp);
113 static void u_freeentries(buf_T *buf, u_header_T *uhp, u_header_T **uhpp); 112 static void u_freeentries(buf_T *buf, u_header_T *uhp, u_header_T **uhpp);
114 static void u_freeentry(u_entry_T *, long); 113 static void u_freeentry(u_entry_T *, long);
115 #ifdef FEAT_PERSISTENT_UNDO 114 #ifdef FEAT_PERSISTENT_UNDO
116 static void corruption_error(char *mesg, char_u *file_name);
117 static void u_free_uhp(u_header_T *uhp);
118 static int undo_write(bufinfo_T *bi, char_u *ptr, size_t len);
119 # ifdef FEAT_CRYPT 115 # ifdef FEAT_CRYPT
120 static int undo_flush(bufinfo_T *bi); 116 static int undo_flush(bufinfo_T *bi);
121 # endif 117 # endif
122 static int fwrite_crypt(bufinfo_T *bi, char_u *ptr, size_t len);
123 static int undo_write_bytes(bufinfo_T *bi, long_u nr, int len);
124 static void put_header_ptr(bufinfo_T *bi, u_header_T *uhp);
125 static int undo_read_4c(bufinfo_T *bi);
126 static int undo_read_2c(bufinfo_T *bi);
127 static int undo_read_byte(bufinfo_T *bi);
128 static time_t undo_read_time(bufinfo_T *bi);
129 static int undo_read(bufinfo_T *bi, char_u *buffer, size_t size); 118 static int undo_read(bufinfo_T *bi, char_u *buffer, size_t size);
130 static char_u *read_string_decrypt(bufinfo_T *bi, int len);
131 static int serialize_header(bufinfo_T *bi, char_u *hash);
132 static int serialize_uhp(bufinfo_T *bi, u_header_T *uhp);
133 static u_header_T *unserialize_uhp(bufinfo_T *bi, char_u *file_name);
134 static int serialize_uep(bufinfo_T *bi, u_entry_T *uep); 119 static int serialize_uep(bufinfo_T *bi, u_entry_T *uep);
135 static u_entry_T *unserialize_uep(bufinfo_T *bi, int *error, char_u *file_name); 120 static u_entry_T *unserialize_uep(bufinfo_T *bi, int *error, char_u *file_name);
136 static void serialize_pos(bufinfo_T *bi, pos_T pos); 121 static void serialize_pos(bufinfo_T *bi, pos_T pos);
137 static void unserialize_pos(bufinfo_T *bi, pos_T *pos); 122 static void unserialize_pos(bufinfo_T *bi, pos_T *pos);
138 static void serialize_visualinfo(bufinfo_T *bi, visualinfo_T *info); 123 static void serialize_visualinfo(bufinfo_T *bi, visualinfo_T *info);