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

@ -14,7 +14,7 @@
#include "vim.h"
#include "version.h"
#if defined(FEAT_PRINTER) || defined(PROTO)
#if defined(FEAT_PRINTER)
/*
* To implement printing on a platform, the following functions must be
* defined:
@ -149,7 +149,7 @@ parse_printoptions(optset_T *args UNUSED)
return parse_list_options(p_popt, printer_opts, OPT_PRINT_NUM_OPTIONS);
}
#if defined(FEAT_POSTSCRIPT) || defined(PROTO)
#if defined(FEAT_POSTSCRIPT)
/*
* Parse 'printmbfont' and set the flags in "mbfont_opts".
* Returns an error message or NULL;
@ -939,7 +939,7 @@ hardcopy_line(
return col;
}
# if defined(FEAT_POSTSCRIPT) || defined(PROTO)
# if defined(FEAT_POSTSCRIPT)
/*
* PS printer stuff.