patch 9.1.1840: Generating prototype files does not work on all platforms

Problem:  Generating prototype files does not work on all platforms
Solution: Rework prototypes generation using python instead of cproto,
          enable it in CI to test it for each PR (Hirohito Higashi).

closes: #18045

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Hirohito Higashi
2025-10-08 18:31:13 +00:00
committed by Christian Brabandt
parent ce5f9f45af
commit e7c765fe59
160 changed files with 1751 additions and 1551 deletions

View File

@ -13,7 +13,7 @@
#include "vim.h"
#if defined(FEAT_QUICKFIX) || defined(PROTO)
#if defined(FEAT_QUICKFIX)
struct dir_stack_T
{
@ -2203,7 +2203,7 @@ decr_quickfix_busy(void)
#endif
}
#if defined(EXITFREE) || defined(PROTO)
#if defined(EXITFREE)
void
check_quickfix_busy(void)
{
@ -7128,7 +7128,7 @@ unload_dummy_buffer(buf_T *buf, char_u *dirname_start)
restore_start_dir(dirname_start);
}
#if defined(FEAT_EVAL) || defined(PROTO)
#if defined(FEAT_EVAL)
/*
* Copy the specified quickfix entry items into a new dict and append the dict
* to 'list'. Returns OK on success.
@ -8565,7 +8565,7 @@ ex_cbuffer(exarg_T *eap)
decr_quickfix_busy();
}
#if defined(FEAT_EVAL) || defined(PROTO)
#if defined(FEAT_EVAL)
/*
* Return the autocmd name for the :cexpr Ex commands.
*/
@ -8988,7 +8988,7 @@ ex_helpgrep(exarg_T *eap)
}
}
# if defined(EXITFREE) || defined(PROTO)
# if defined(EXITFREE)
void
free_quickfix(void)
{
@ -9006,7 +9006,7 @@ free_quickfix(void)
#endif // FEAT_QUICKFIX
#if defined(FEAT_EVAL) || defined(PROTO)
#if defined(FEAT_EVAL)
# ifdef FEAT_QUICKFIX
static void
get_qf_loc_list(int is_qf, win_T *wp, typval_T *what_arg, typval_T *rettv)