mirror of
https://github.com/vim/vim.git
synced 2025-11-14 23:04:02 -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:
committed by
Christian Brabandt
parent
ce5f9f45af
commit
e7c765fe59
@@ -1430,7 +1430,7 @@ do_cmdline(
|
||||
return retval;
|
||||
}
|
||||
|
||||
#if defined(FEAT_EVAL) || defined(PROTO)
|
||||
#if defined(FEAT_EVAL)
|
||||
/*
|
||||
* Handle when "did_throw" is set after executing commands.
|
||||
*/
|
||||
@@ -1624,7 +1624,7 @@ getline_cookie(
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(FEAT_EVAL) || defined(PROTO)
|
||||
#if defined(FEAT_EVAL)
|
||||
/*
|
||||
* Get the next line source line without advancing.
|
||||
*/
|
||||
@@ -3250,7 +3250,7 @@ has_cmdmod(cmdmod_T *cmod, int ignore_silent)
|
||||
|| cmod->cmod_filter_regmatch.regprog != NULL;
|
||||
}
|
||||
|
||||
#if defined(FEAT_EVAL) || defined(PROTO)
|
||||
#if defined(FEAT_EVAL)
|
||||
/*
|
||||
* If Vim9 script and "cmdmod" has anything set give an error and return TRUE.
|
||||
*/
|
||||
@@ -3571,7 +3571,7 @@ append_command(char_u *cmd)
|
||||
*d = NUL;
|
||||
}
|
||||
|
||||
#if defined(FEAT_EVAL) || defined(PROTO)
|
||||
#if defined(FEAT_EVAL)
|
||||
/*
|
||||
* If "start" points "&opt", "&l:opt", "&g:opt" or "$ENV" return a pointer to
|
||||
* the name. Otherwise just return "start".
|
||||
@@ -3629,7 +3629,7 @@ one_letter_cmd(char_u *p, cmdidx_T *idx)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#if defined(FEAT_EVAL) || defined(PROTO)
|
||||
#if defined(FEAT_EVAL)
|
||||
/*
|
||||
* Return TRUE if "cmd" starts with "123->", a number followed by a method
|
||||
* call.
|
||||
@@ -4043,7 +4043,7 @@ find_ex_command(
|
||||
return p;
|
||||
}
|
||||
|
||||
#if defined(FEAT_EVAL) || defined(PROTO)
|
||||
#if defined(FEAT_EVAL)
|
||||
typedef struct
|
||||
{
|
||||
char *name;
|
||||
@@ -5893,8 +5893,7 @@ ends_excmd2(char_u *cmd_start UNUSED, char_u *cmd)
|
||||
return c == '"';
|
||||
}
|
||||
|
||||
#if defined(FEAT_SYN_HL) || defined(FEAT_SEARCH_EXTRA) || defined(FEAT_EVAL) \
|
||||
|| defined(PROTO)
|
||||
#if defined(FEAT_SYN_HL) || defined(FEAT_SEARCH_EXTRA) || defined(FEAT_EVAL)
|
||||
/*
|
||||
* Return the next command, after the first '|' or '\n'.
|
||||
* Return NULL if not found.
|
||||
@@ -6798,7 +6797,7 @@ ex_shell(exarg_T *eap UNUSED)
|
||||
do_shell(NULL, 0);
|
||||
}
|
||||
|
||||
#if defined(HAVE_DROP_FILE) || defined(PROTO)
|
||||
#if defined(HAVE_DROP_FILE)
|
||||
|
||||
static int drop_busy = FALSE;
|
||||
static int drop_filec;
|
||||
@@ -6974,7 +6973,7 @@ ex_wrongmodifier(exarg_T *eap)
|
||||
eap->errmsg = ex_errmsg(e_invalid_command_str, eap->cmd);
|
||||
}
|
||||
|
||||
#if defined(FEAT_EVAL) || defined(PROTO)
|
||||
#if defined(FEAT_EVAL)
|
||||
|
||||
// callback function for 'findfunc'
|
||||
static callback_T ffu_cb;
|
||||
@@ -7157,7 +7156,7 @@ did_set_findfunc(optset_T *args UNUSED)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
# if defined(EXITFREE) || defined(PROTO)
|
||||
# if defined(EXITFREE)
|
||||
void
|
||||
free_findfunc_option(void)
|
||||
{
|
||||
@@ -7989,7 +7988,7 @@ ex_read(exarg_T *eap)
|
||||
|
||||
static char_u *prev_dir = NULL;
|
||||
|
||||
#if defined(EXITFREE) || defined(PROTO)
|
||||
#if defined(EXITFREE)
|
||||
void
|
||||
free_cd_dir(void)
|
||||
{
|
||||
@@ -9060,7 +9059,7 @@ close_redir(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
#if (defined(FEAT_SESSION) || defined(FEAT_EVAL)) || defined(PROTO)
|
||||
#if defined(FEAT_SESSION) || defined(FEAT_EVAL)
|
||||
int
|
||||
vim_mkdir_emsg(char_u *name, int prot UNUSED)
|
||||
{
|
||||
@@ -10179,7 +10178,7 @@ expand_sfile(char_u *arg)
|
||||
return result;
|
||||
}
|
||||
|
||||
#if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG) || defined(PROTO)
|
||||
#if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
|
||||
/*
|
||||
* Make a dialog message in "buff[DIALOG_MSG_SIZE]".
|
||||
* "format" must contain "%s".
|
||||
@@ -10349,7 +10348,7 @@ ex_digraphs(exarg_T *eap UNUSED)
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(FEAT_SEARCH_EXTRA) || defined(PROTO)
|
||||
#if defined(FEAT_SEARCH_EXTRA)
|
||||
void
|
||||
set_no_hlsearch(int flag)
|
||||
{
|
||||
@@ -10420,7 +10419,7 @@ ex_folddo(exarg_T *eap)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(FEAT_QUICKFIX) || defined(PROTO)
|
||||
#if defined(FEAT_QUICKFIX)
|
||||
/*
|
||||
* Returns TRUE if the supplied Ex cmdidx is for a location list command
|
||||
* instead of a quickfix command.
|
||||
|
||||
Reference in New Issue
Block a user