comparison src/memline.c @ 7803:37c929c4a073 v7.4.1198

commit https://github.com/vim/vim/commit/92b8b2d307e34117f146319872010b0ccc9d2713 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 29 22:36:45 2016 +0100 patch 7.4.1198 Problem: Still using __ARGS. Solution: Remove __ARGS in several files. (script by Hirohito Higashi) Also remove use of HAVE_STDARG_H.
author Christian Brabandt <cb@256bit.org>
date Fri, 29 Jan 2016 22:45:06 +0100
parents 08e62c4fc17d
children 41789f16d6b2
comparison
equal deleted inserted replaced
7802:d9180d8cfe40 7803:37c929c4a073
233 , UB_SAME_DIR /* update the B0_SAME_DIR flag */ 233 , UB_SAME_DIR /* update the B0_SAME_DIR flag */
234 , UB_CRYPT /* update crypt key */ 234 , UB_CRYPT /* update crypt key */
235 } upd_block0_T; 235 } upd_block0_T;
236 236
237 #ifdef FEAT_CRYPT 237 #ifdef FEAT_CRYPT
238 static void ml_set_mfp_crypt __ARGS((buf_T *buf)); 238 static void ml_set_mfp_crypt(buf_T *buf);
239 static void ml_set_b0_crypt __ARGS((buf_T *buf, ZERO_BL *b0p)); 239 static void ml_set_b0_crypt(buf_T *buf, ZERO_BL *b0p);
240 #endif 240 #endif
241 static int ml_check_b0_id __ARGS((ZERO_BL *b0p)); 241 static int ml_check_b0_id(ZERO_BL *b0p);
242 static void ml_upd_block0 __ARGS((buf_T *buf, upd_block0_T what)); 242 static void ml_upd_block0(buf_T *buf, upd_block0_T what);
243 static void set_b0_fname __ARGS((ZERO_BL *, buf_T *buf)); 243 static void set_b0_fname(ZERO_BL *, buf_T *buf);
244 static void set_b0_dir_flag __ARGS((ZERO_BL *b0p, buf_T *buf)); 244 static void set_b0_dir_flag(ZERO_BL *b0p, buf_T *buf);
245 #ifdef FEAT_MBYTE 245 #ifdef FEAT_MBYTE
246 static void add_b0_fenc __ARGS((ZERO_BL *b0p, buf_T *buf)); 246 static void add_b0_fenc(ZERO_BL *b0p, buf_T *buf);
247 #endif 247 #endif
248 static time_t swapfile_info __ARGS((char_u *)); 248 static time_t swapfile_info(char_u *);
249 static int recov_file_names __ARGS((char_u **, char_u *, int prepend_dot)); 249 static int recov_file_names(char_u **, char_u *, int prepend_dot);
250 static int ml_append_int __ARGS((buf_T *, linenr_T, char_u *, colnr_T, int, int)); 250 static int ml_append_int(buf_T *, linenr_T, char_u *, colnr_T, int, int);
251 static int ml_delete_int __ARGS((buf_T *, linenr_T, int)); 251 static int ml_delete_int(buf_T *, linenr_T, int);
252 static char_u *findswapname __ARGS((buf_T *, char_u **, char_u *)); 252 static char_u *findswapname(buf_T *, char_u **, char_u *);
253 static void ml_flush_line __ARGS((buf_T *)); 253 static void ml_flush_line(buf_T *);
254 static bhdr_T *ml_new_data __ARGS((memfile_T *, int, int)); 254 static bhdr_T *ml_new_data(memfile_T *, int, int);
255 static bhdr_T *ml_new_ptr __ARGS((memfile_T *)); 255 static bhdr_T *ml_new_ptr(memfile_T *);
256 static bhdr_T *ml_find_line __ARGS((buf_T *, linenr_T, int)); 256 static bhdr_T *ml_find_line(buf_T *, linenr_T, int);
257 static int ml_add_stack __ARGS((buf_T *)); 257 static int ml_add_stack(buf_T *);
258 static void ml_lineadd __ARGS((buf_T *, int)); 258 static void ml_lineadd(buf_T *, int);
259 static int b0_magic_wrong __ARGS((ZERO_BL *)); 259 static int b0_magic_wrong(ZERO_BL *);
260 #ifdef CHECK_INODE 260 #ifdef CHECK_INODE
261 static int fnamecmp_ino __ARGS((char_u *, char_u *, long)); 261 static int fnamecmp_ino(char_u *, char_u *, long);
262 #endif 262 #endif
263 static void long_to_char __ARGS((long, char_u *)); 263 static void long_to_char(long, char_u *);
264 static long char_to_long __ARGS((char_u *)); 264 static long char_to_long(char_u *);
265 #if defined(UNIX) || defined(WIN3264) 265 #if defined(UNIX) || defined(WIN3264)
266 static char_u *make_percent_swname __ARGS((char_u *dir, char_u *name)); 266 static char_u *make_percent_swname(char_u *dir, char_u *name);
267 #endif 267 #endif
268 #ifdef FEAT_CRYPT 268 #ifdef FEAT_CRYPT
269 static cryptstate_T *ml_crypt_prepare __ARGS((memfile_T *mfp, off_t offset, int reading)); 269 static cryptstate_T *ml_crypt_prepare(memfile_T *mfp, off_t offset, int reading);
270 #endif 270 #endif
271 #ifdef FEAT_BYTEOFF 271 #ifdef FEAT_BYTEOFF
272 static void ml_updatechunk __ARGS((buf_T *buf, long line, long len, int updtype)); 272 static void ml_updatechunk(buf_T *buf, long line, long len, int updtype);
273 #endif 273 #endif
274 274
275 /* 275 /*
276 * Open a new memline for "buf". 276 * Open a new memline for "buf".
277 * 277 *
4087 #endif 4087 #endif
4088 4088
4089 return retval; 4089 return retval;
4090 } 4090 }
4091 4091
4092 static void attention_message __ARGS((buf_T *buf, char_u *fname)); 4092 static void attention_message(buf_T *buf, char_u *fname);
4093 4093
4094 /* 4094 /*
4095 * Print the ATTENTION message: info about an existing swap file. 4095 * Print the ATTENTION message: info about an existing swap file.
4096 */ 4096 */
4097 static void 4097 static void
4138 cmdline_row = msg_row; 4138 cmdline_row = msg_row;
4139 --no_wait_return; 4139 --no_wait_return;
4140 } 4140 }
4141 4141
4142 #ifdef FEAT_AUTOCMD 4142 #ifdef FEAT_AUTOCMD
4143 static int do_swapexists __ARGS((buf_T *buf, char_u *fname)); 4143 static int do_swapexists(buf_T *buf, char_u *fname);
4144 4144
4145 /* 4145 /*
4146 * Trigger the SwapExists autocommands. 4146 * Trigger the SwapExists autocommands.
4147 * Returns a value for equivalent to do_dialog() (see below): 4147 * Returns a value for equivalent to do_dialog() (see below):
4148 * 0: still need to ask for a choice 4148 * 0: still need to ask for a choice