comparison src/undo.c @ 18051:d1e77015f60b v8.1.2021

patch 8.1.2021: some global functions can be local to the file Commit: https://github.com/vim/vim/commit/840d16fd36bfd1a9fac8200e3dc016b1e3f9c328 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 10 21:27:18 2019 +0200 patch 8.1.2021: some global functions can be local to the file Problem: Some global functions can be local to the file. Solution: Add "static". (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4917)
author Bram Moolenaar <Bram@vim.org>
date Tue, 10 Sep 2019 21:30:06 +0200
parents d19caa851682
children 59bc3cd42cf5
comparison
equal deleted inserted replaced
18050:dd9de94583a5 18051:d1e77015f60b
773 * When "reading" is TRUE find the file to read, go over all directories in 773 * When "reading" is TRUE find the file to read, go over all directories in
774 * 'undodir'. 774 * 'undodir'.
775 * When "reading" is FALSE use the first name where the directory exists. 775 * When "reading" is FALSE use the first name where the directory exists.
776 * Returns NULL when there is no place to write or no file to read. 776 * Returns NULL when there is no place to write or no file to read.
777 */ 777 */
778 char_u * 778 static char_u *
779 u_get_undo_file_name(char_u *buf_ffname, int reading) 779 u_get_undo_file_name(char_u *buf_ffname, int reading)
780 { 780 {
781 char_u *dirp; 781 char_u *dirp;
782 char_u dir_name[IOSIZE + 1]; 782 char_u dir_name[IOSIZE + 1];
783 char_u *munged_name = NULL; 783 char_u *munged_name = NULL;
3588 3588
3589 /* 3589 /*
3590 * For undotree(): Append the list of undo blocks at "first_uhp" to "list". 3590 * For undotree(): Append the list of undo blocks at "first_uhp" to "list".
3591 * Recursive. 3591 * Recursive.
3592 */ 3592 */
3593 void 3593 static void
3594 u_eval_tree(u_header_T *first_uhp, list_T *list) 3594 u_eval_tree(u_header_T *first_uhp, list_T *list)
3595 { 3595 {
3596 u_header_T *uhp = first_uhp; 3596 u_header_T *uhp = first_uhp;
3597 dict_T *dict; 3597 dict_T *dict;
3598 3598