Mercurial > vim
comparison src/proto/userfunc.pro @ 30150:0fe61fa4e5d1 v9.0.0411
patch 9.0.0411: only created files can be cleaned up with one call
Commit: https://github.com/vim/vim/commit/6f14da15ac900589f2f413d77898b9bff3b31ece
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 7 21:30:44 2022 +0100
patch 9.0.0411: only created files can be cleaned up with one call
Problem: Only created files can be cleaned up with one call.
Solution: Add flags to mkdir() to delete with a deferred function.
Expand the writefile() name to a full path to handle changing
directory.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 07 Sep 2022 22:45:04 +0200 |
parents | 3b42bdfff7cb |
children | 61a688be1899 |
comparison
equal
deleted
inserted
replaced
30149:58dd17222e56 | 30150:0fe61fa4e5d1 |
---|---|
58 void func_unref(char_u *name); | 58 void func_unref(char_u *name); |
59 void func_ptr_unref(ufunc_T *fp); | 59 void func_ptr_unref(ufunc_T *fp); |
60 void func_ref(char_u *name); | 60 void func_ref(char_u *name); |
61 void func_ptr_ref(ufunc_T *fp); | 61 void func_ptr_ref(ufunc_T *fp); |
62 void ex_return(exarg_T *eap); | 62 void ex_return(exarg_T *eap); |
63 int can_add_defer(void); | |
63 int add_defer(char_u *name, int argcount_arg, typval_T *argvars); | 64 int add_defer(char_u *name, int argcount_arg, typval_T *argvars); |
64 void invoke_all_defer(void); | 65 void invoke_all_defer(void); |
65 void ex_call(exarg_T *eap); | 66 void ex_call(exarg_T *eap); |
66 int do_return(exarg_T *eap, int reanimate, int is_cmd, void *rettv); | 67 int do_return(exarg_T *eap, int reanimate, int is_cmd, void *rettv); |
67 void discard_pending_return(void *rettv); | 68 void discard_pending_return(void *rettv); |