Mercurial > vim
comparison src/proto/userfunc.pro @ 30065:6cf788ab844c v9.0.0370
patch 9.0.0370: cleaning up afterwards can make a function messy
Commit: https://github.com/vim/vim/commit/1d84f7608f1e41dad03b8cc7925895437775f7c0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 3 21:35:53 2022 +0100
patch 9.0.0370: cleaning up afterwards can make a function messy
Problem: Cleaning up afterwards can make a function messy.
Solution: Add the :defer command.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 03 Sep 2022 22:45:03 +0200 |
parents | a74398c432a4 |
children | a542dfb1c1a2 |
comparison
equal
deleted
inserted
replaced
30064:a8f1fbaa43c8 | 30065:6cf788ab844c |
---|---|
56 void func_unref(char_u *name); | 56 void func_unref(char_u *name); |
57 void func_ptr_unref(ufunc_T *fp); | 57 void func_ptr_unref(ufunc_T *fp); |
58 void func_ref(char_u *name); | 58 void func_ref(char_u *name); |
59 void func_ptr_ref(ufunc_T *fp); | 59 void func_ptr_ref(ufunc_T *fp); |
60 void ex_return(exarg_T *eap); | 60 void ex_return(exarg_T *eap); |
61 void handle_defer(void); | |
61 void ex_call(exarg_T *eap); | 62 void ex_call(exarg_T *eap); |
62 int do_return(exarg_T *eap, int reanimate, int is_cmd, void *rettv); | 63 int do_return(exarg_T *eap, int reanimate, int is_cmd, void *rettv); |
63 void discard_pending_return(void *rettv); | 64 void discard_pending_return(void *rettv); |
64 char_u *get_return_cmd(void *rettv); | 65 char_u *get_return_cmd(void *rettv); |
65 char_u *get_func_line(int c, void *cookie, int indent, getline_opt_T options); | 66 char_u *get_func_line(int c, void *cookie, int indent, getline_opt_T options); |