Mercurial > vim
comparison src/structs.h @ 20538:9f921ba86d05 v8.2.0823
patch 8.2.0823: Vim9: script reload test is disabled
Commit: https://github.com/vim/vim/commit/25e0f5863e9010a75a1ff0d04e8f886403968755
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon May 25 22:36:50 2020 +0200
patch 8.2.0823: Vim9: script reload test is disabled
Problem: Vim9: script reload test is disabled.
Solution: Compile a function in the context of the script where it was
defined. Set execution stack for compiled function. Add a test
that an error is reported for the right file/function.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 25 May 2020 22:45:03 +0200 |
parents | 489cb75c76b6 |
children | e529690f27bc |
comparison
equal
deleted
inserted
replaced
20537:cceaa5ec43aa | 20538:9f921ba86d05 |
---|---|
925 | 925 |
926 /* | 926 /* |
927 * A list of error messages that can be converted to an exception. "throw_msg" | 927 * A list of error messages that can be converted to an exception. "throw_msg" |
928 * is only set in the first element of the list. Usually, it points to the | 928 * is only set in the first element of the list. Usually, it points to the |
929 * original message stored in that element, but sometimes it points to a later | 929 * original message stored in that element, but sometimes it points to a later |
930 * message in the list. See cause_errthrow() below. | 930 * message in the list. See cause_errthrow(). |
931 */ | 931 */ |
932 typedef struct msglist msglist_T; | |
932 struct msglist | 933 struct msglist |
933 { | 934 { |
934 char *msg; // original message | 935 char *msg; // original message, allocated |
935 char *throw_msg; // msg to throw: usually original one | 936 char *throw_msg; // msg to throw: usually original one |
936 struct msglist *next; // next of several messages in a row | 937 char_u *sfile; // value from estack_sfile(), allocated |
938 long slnum; // line number for "sfile" | |
939 msglist_T *next; // next of several messages in a row | |
937 }; | 940 }; |
938 | 941 |
939 /* | 942 /* |
940 * The exception types. | 943 * The exception types. |
941 */ | 944 */ |
1514 }; | 1517 }; |
1515 | 1518 |
1516 #if defined(FEAT_EVAL) || defined(PROTO) | 1519 #if defined(FEAT_EVAL) || defined(PROTO) |
1517 typedef struct funccall_S funccall_T; | 1520 typedef struct funccall_S funccall_T; |
1518 | 1521 |
1522 // values used for "uf_dfunc_idx" | |
1519 # define UF_NOT_COMPILED -2 | 1523 # define UF_NOT_COMPILED -2 |
1520 # define UF_TO_BE_COMPILED -1 | 1524 # define UF_TO_BE_COMPILED -1 |
1521 | 1525 |
1522 /* | 1526 /* |
1523 * Structure to hold info for a user function. | 1527 * Structure to hold info for a user function. |