Mercurial > vim
comparison src/ex_docmd.c @ 25451:6f2384c064e4 v8.2.3262
patch 8.2.3262: build failure when ABORT_ON_INTERNAL_ERROR is defined
Commit: https://github.com/vim/vim/commit/9e0ee590197d74f94b7127bf0e033e4f83cf3762
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 31 22:17:28 2021 +0200
patch 8.2.3262: build failure when ABORT_ON_INTERNAL_ERROR is defined
Problem: Build failure when ABORT_ON_INTERNAL_ERROR is defined.
Solution: Adjust how estack_len_before is used.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 31 Jul 2021 22:30:02 +0200 |
parents | 93f8b181db8f |
children | 05f9e8f2016c |
comparison
equal
deleted
inserted
replaced
25450:88cb2ee8a901 | 25451:6f2384c064e4 |
---|---|
662 # define cmd_getline fgetline | 662 # define cmd_getline fgetline |
663 # define cmd_cookie cookie | 663 # define cmd_cookie cookie |
664 #endif | 664 #endif |
665 static int call_depth = 0; // recursiveness | 665 static int call_depth = 0; // recursiveness |
666 #ifdef FEAT_EVAL | 666 #ifdef FEAT_EVAL |
667 ESTACK_CHECK_DECLARATION | |
668 | |
669 // For every pair of do_cmdline()/do_one_cmd() calls, use an extra memory | 667 // For every pair of do_cmdline()/do_one_cmd() calls, use an extra memory |
670 // location for storing error messages to be converted to an exception. | 668 // location for storing error messages to be converted to an exception. |
671 // This ensures that the do_errthrow() call in do_one_cmd() does not | 669 // This ensures that the do_errthrow() call in do_one_cmd() does not |
672 // combine the messages stored by an earlier invocation of do_one_cmd() | 670 // combine the messages stored by an earlier invocation of do_one_cmd() |
673 // with the command name of the later one. This would happen when | 671 // with the command name of the later one. This would happen when |
1395 void | 1393 void |
1396 handle_did_throw() | 1394 handle_did_throw() |
1397 { | 1395 { |
1398 char *p = NULL; | 1396 char *p = NULL; |
1399 msglist_T *messages = NULL; | 1397 msglist_T *messages = NULL; |
1398 ESTACK_CHECK_DECLARATION | |
1400 | 1399 |
1401 /* | 1400 /* |
1402 * If the uncaught exception is a user exception, report it as an | 1401 * If the uncaught exception is a user exception, report it as an |
1403 * error. If it is an error exception, display the saved error | 1402 * error. If it is an error exception, display the saved error |
1404 * message now. For an interrupt exception, do nothing; the | 1403 * message now. For an interrupt exception, do nothing; the |