0
0
mirror of https://github.com/vim/vim.git synced 2025-10-24 08:54:47 -04: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

@@ -167,7 +167,7 @@ read_buffer(
return retval;
}
#if defined(FEAT_EVAL) || defined(PROTO)
#if defined(FEAT_EVAL)
/*
* Ensure buffer "buf" is loaded. Does not trigger the swap-exists action.
*/
@@ -2066,7 +2066,7 @@ enter_buffer(buf_T *buf)
redraw_later(UPD_NOT_VALID);
}
#if defined(FEAT_AUTOCHDIR) || defined(PROTO)
#if defined(FEAT_AUTOCHDIR)
/*
* Change to the directory of the current buffer.
* Don't do this while still starting up.
@@ -3768,7 +3768,7 @@ buflist_add(char_u *fname, int flags)
return 0;
}
#if defined(BACKSLASH_IN_FILENAME) || defined(PROTO)
#if defined(BACKSLASH_IN_FILENAME)
/*
* Adjust slashes in file names. Called after 'shellslash' was set.
*/
@@ -3856,7 +3856,7 @@ otherfile_buf(
return TRUE;
}
#if defined(UNIX) || defined(PROTO)
#if defined(UNIX)
/*
* Set inode and device number for a buffer.
* Must always be called when b_fname is changed!.
@@ -4295,7 +4295,7 @@ resettitle(void)
mch_settitle(lasttitle, lasticon);
}
# if defined(EXITFREE) || defined(PROTO)
# if defined(EXITFREE)
void
free_titles(void)
{
@@ -4305,7 +4305,7 @@ free_titles(void)
# endif
#if defined(FEAT_STL_OPT) || defined(FEAT_GUI_TABLINE) || defined(PROTO)
#if defined(FEAT_STL_OPT) || defined(FEAT_GUI_TABLINE)
/*
* Used for building in the status line.
@@ -5986,7 +5986,7 @@ bt_prompt(buf_T *buf)
return buf != NULL && buf->b_p_bt[0] == 'p' && buf->b_p_bt[1] == 'r';
}
#if defined(FEAT_PROP_POPUP) || defined(PROTO)
#if defined(FEAT_PROP_POPUP)
/*
* Return TRUE if "buf" is a buffer for a popup window.
*/
@@ -6025,7 +6025,7 @@ bt_nofileread(buf_T *buf)
|| buf->b_p_bt[0] == 'p');
}
#if defined(FEAT_QUICKFIX) || defined(PROTO)
#if defined(FEAT_QUICKFIX)
/*
* Return TRUE if "buf" has 'buftype' set to "nofile".
*/