comparison src/structs.h @ 25889:c83ebae45881 v8.2.3478

patch 8.2.3478: still crash with error in :catch and also in :finally Commit: https://github.com/vim/vim/commit/f67d3fb7363ebc9454f9bb582de3978609a4fd6b Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 5 11:22:27 2021 +0100 patch 8.2.3478: still crash with error in :catch and also in :finally Problem: Still crash with error in :catch and also in :finally. Solution: Only call finish_exception() once. (closes https://github.com/vim/vim/issues/8954)
author Bram Moolenaar <Bram@vim.org>
date Tue, 05 Oct 2021 12:30:04 +0200
parents 373278f5bd51
children 8e9864b98846
comparison
equal deleted inserted replaced
25888:87ef006b26d4 25889:c83ebae45881
941 # define CSF_TRY 0x0100 // is a ":try" 941 # define CSF_TRY 0x0100 // is a ":try"
942 # define CSF_FINALLY 0x0200 // ":finally" has been passed 942 # define CSF_FINALLY 0x0200 // ":finally" has been passed
943 # define CSF_CATCH 0x0400 // ":catch" has been seen 943 # define CSF_CATCH 0x0400 // ":catch" has been seen
944 # define CSF_THROWN 0x0800 // exception thrown to this try conditional 944 # define CSF_THROWN 0x0800 // exception thrown to this try conditional
945 # define CSF_CAUGHT 0x1000 // exception caught by this try conditional 945 # define CSF_CAUGHT 0x1000 // exception caught by this try conditional
946 # define CSF_SILENT 0x2000 // "emsg_silent" reset by ":try" 946 # define CSF_FINISHED 0x2000 // CSF_CAUGHT was handled by finish_exception()
947 # define CSF_SILENT 0x4000 // "emsg_silent" reset by ":try"
947 // Note that CSF_ELSE is only used when CSF_TRY and CSF_WHILE are unset 948 // Note that CSF_ELSE is only used when CSF_TRY and CSF_WHILE are unset
948 // (an ":if"), and CSF_SILENT is only used when CSF_TRY is set. 949 // (an ":if"), and CSF_SILENT is only used when CSF_TRY is set.
949 // 950
950 #define CSF_FUNC_DEF 0x4000 // a function was defined in this block 951 # define CSF_FUNC_DEF 0x8000 // a function was defined in this block
951 952
952 /* 953 /*
953 * What's pending for being reactivated at the ":endtry" of this try 954 * What's pending for being reactivated at the ":endtry" of this try
954 * conditional: 955 * conditional:
955 */ 956 */