0
0
mirror of https://github.com/vim/vim.git synced 2025-11-15 23:14:06 -05:00

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

@@ -17,7 +17,7 @@
* Various routines dealing with allocation and deallocation of memory.
*/
#if defined(MEM_PROFILE) || defined(PROTO)
#if defined(MEM_PROFILE)
# define MEM_SIZES 8200
static long_u mem_allocs[MEM_SIZES];
@@ -151,7 +151,7 @@ alloc(size_t size)
return lalloc(size, TRUE);
}
#if defined(FEAT_QUICKFIX) || defined(PROTO)
#if defined(FEAT_QUICKFIX)
/*
* alloc() with an ID for alloc_fail().
*/
@@ -293,7 +293,7 @@ theend:
/*
* lalloc() with an ID for alloc_fail().
*/
#if defined(FEAT_SIGNS) || defined(PROTO)
#if defined(FEAT_SIGNS)
void *
lalloc_id(size_t size, int message, alloc_id_T id UNUSED)
{
@@ -305,7 +305,7 @@ lalloc_id(size_t size, int message, alloc_id_T id UNUSED)
}
#endif
#if defined(MEM_PROFILE) || defined(PROTO)
#if defined(MEM_PROFILE)
/*
* realloc() with memory profiling.
*/
@@ -350,7 +350,7 @@ do_outofmem_msg(size_t size)
mch_exit(123);
}
#if defined(EXITFREE) || defined(PROTO)
#if defined(EXITFREE)
/*
* Free everything that we allocated.
@@ -645,7 +645,7 @@ ga_clear_strings(garray_T *gap)
ga_clear(gap);
}
#if defined(FEAT_EVAL) || defined(PROTO)
#if defined(FEAT_EVAL)
/*
* Copy a growing array that contains a list of strings.
*/
@@ -877,8 +877,7 @@ ga_append(garray_T *gap, int c)
return OK;
}
#if (defined(UNIX) && !defined(USE_SYSTEM)) || defined(MSWIN) \
|| defined(PROTO)
#if (defined(UNIX) && !defined(USE_SYSTEM)) || defined(MSWIN)
/*
* Append the text in "gap" below the cursor line and clear "gap".
*/