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:
committed by
Christian Brabandt
parent
ce5f9f45af
commit
e7c765fe59
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "vim.h"
|
||||
|
||||
#if defined(FEAT_JOB_CHANNEL) || defined(PROTO)
|
||||
#if defined(FEAT_JOB_CHANNEL)
|
||||
|
||||
// TRUE when netbeans is running with a GUI.
|
||||
#ifdef FEAT_GUI
|
||||
@@ -396,7 +396,7 @@ free_unused_channels(int copyID, int mask)
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(FEAT_GUI) || defined(PROTO)
|
||||
#if defined(FEAT_GUI)
|
||||
|
||||
# if defined(FEAT_GUI_X11) || defined(FEAT_GUI_GTK)
|
||||
/*
|
||||
@@ -3135,7 +3135,7 @@ may_invoke_callback(channel_T *channel, ch_part_T part)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
#if defined(FEAT_NETBEANS_INTG) || defined(PROTO)
|
||||
#if defined(FEAT_NETBEANS_INTG)
|
||||
/*
|
||||
* Return TRUE when channel "channel" is open for writing to.
|
||||
* Also returns FALSE or invalid "channel".
|
||||
@@ -3472,7 +3472,7 @@ channel_clear(channel_T *channel)
|
||||
free_callback(&channel->ch_close_cb);
|
||||
}
|
||||
|
||||
#if defined(EXITFREE) || defined(PROTO)
|
||||
#if defined(EXITFREE)
|
||||
void
|
||||
channel_free_all(void)
|
||||
{
|
||||
@@ -4143,7 +4143,7 @@ theend:
|
||||
free_job_options(&opt);
|
||||
}
|
||||
|
||||
#if defined(MSWIN) || defined(__HAIKU__) || defined(FEAT_GUI) || defined(PROTO)
|
||||
#if defined(MSWIN) || defined(__HAIKU__) || defined(FEAT_GUI)
|
||||
/*
|
||||
* Check the channels for anything that is ready to be read.
|
||||
* The data is put in the read queue.
|
||||
@@ -4194,7 +4194,7 @@ channel_handle_events(int only_keep_open)
|
||||
}
|
||||
#endif
|
||||
|
||||
# if defined(FEAT_GUI) || defined(PROTO)
|
||||
# if defined(FEAT_GUI)
|
||||
/*
|
||||
* Return TRUE when there is any channel with a keep_open flag.
|
||||
*/
|
||||
@@ -4645,7 +4645,7 @@ ch_raw_common(typval_T *argvars, typval_T *rettv, int eval)
|
||||
|
||||
#define KEEP_OPEN_TIME 20 // msec
|
||||
|
||||
#if (defined(UNIX) && !defined(HAVE_SELECT)) || defined(PROTO)
|
||||
#if defined(UNIX) && !defined(HAVE_SELECT)
|
||||
/*
|
||||
* Add open channels to the poll struct.
|
||||
* Return the adjusted struct index.
|
||||
@@ -4738,7 +4738,7 @@ channel_poll_check(int ret_in, void *fds_in)
|
||||
}
|
||||
#endif // UNIX && !HAVE_SELECT
|
||||
|
||||
#if (!defined(MSWIN) && defined(HAVE_SELECT)) || defined(PROTO)
|
||||
#if !defined(MSWIN) && defined(HAVE_SELECT)
|
||||
|
||||
/*
|
||||
* The "fd_set" type is hidden to avoid problems with the function proto.
|
||||
|
||||
Reference in New Issue
Block a user