comparison src/structs.h @ 24404:a2a7d2d6e724 v8.2.2742

patch 8.2.2742: Vim9: when compiling a function fails it is cleared Commit: https://github.com/vim/vim/commit/701cc6ca9e940665a9424541f989bb38c853a498 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 10 13:33:48 2021 +0200 patch 8.2.2742: Vim9: when compiling a function fails it is cleared Problem: Vim9: when compiling a function fails it is cleared. Solution: Keep the function lines, prevent execution with a different status. (closes #8093)
author Bram Moolenaar <Bram@vim.org>
date Sat, 10 Apr 2021 13:45:05 +0200
parents a97fb00978f6
children baf75c8e1b7b
comparison
equal deleted inserted replaced
24403:1df57caa70c0 24404:a2a7d2d6e724
1581 #if defined(FEAT_EVAL) || defined(PROTO) 1581 #if defined(FEAT_EVAL) || defined(PROTO)
1582 typedef struct funccall_S funccall_T; 1582 typedef struct funccall_S funccall_T;
1583 1583
1584 // values used for "uf_def_status" 1584 // values used for "uf_def_status"
1585 typedef enum { 1585 typedef enum {
1586 UF_NOT_COMPILED, 1586 UF_NOT_COMPILED, // executed with interpreter
1587 UF_TO_BE_COMPILED, 1587 UF_TO_BE_COMPILED, // to be compiled before execution
1588 UF_COMPILING, 1588 UF_COMPILING, // in compile_def_function()
1589 UF_COMPILED 1589 UF_COMPILED, // successfully compiled
1590 UF_COMPILE_ERROR // compilation error, cannot execute
1590 } def_status_T; 1591 } def_status_T;
1591 1592
1592 /* 1593 /*
1593 * Structure to hold info for a user function. 1594 * Structure to hold info for a user function.
1594 * When adding a field check copy_func(). 1595 * When adding a field check copy_func().