mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Fix channel
This commit is contained in:
@@ -3416,6 +3416,7 @@ static id evalExprCocoa(NSString * expr, NSString ** errstr)
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
CFSocketInvalidate(socket);
|
||||
CFRunLoopSourceInvalidate(runLoopSource);
|
||||
CFRelease(runLoopSource);
|
||||
CFRelease(socket);
|
||||
@@ -3459,9 +3460,7 @@ static void socketReadCallback(CFSocketRef s,
|
||||
|
||||
- (void)read
|
||||
{
|
||||
#ifdef FEAT_CHANNEL
|
||||
channel_read(channel, part, "MMChannel_read");
|
||||
#endif
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -54,7 +54,9 @@
|
||||
# define fd_close(sd) close(sd)
|
||||
#endif
|
||||
|
||||
#ifndef FEAT_GUI_MACVIM
|
||||
static void channel_read(channel_T *channel, int part, char *func);
|
||||
#endif
|
||||
|
||||
/* Whether a redraw is needed for appending a line to a buffer. */
|
||||
static int channel_need_redraw = FALSE;
|
||||
@@ -2824,7 +2826,11 @@ channel_close_on_error(channel_T *channel, char *func)
|
||||
* "part" is PART_SOCK, PART_OUT or PART_ERR.
|
||||
* The data is put in the read queue.
|
||||
*/
|
||||
#ifndef FEAT_GUI_MACVIM
|
||||
static void
|
||||
#else
|
||||
void
|
||||
#endif
|
||||
channel_read(channel_T *channel, int part, char *func)
|
||||
{
|
||||
static char_u *buf = NULL;
|
||||
|
||||
@@ -60,4 +60,7 @@ job_T *job_start(typval_T *argvars);
|
||||
char *job_status(job_T *job);
|
||||
void job_info(job_T *job, dict_T *dict);
|
||||
int job_stop(job_T *job, typval_T *argvars);
|
||||
#ifdef FEAT_GUI_MACVIM
|
||||
void channel_read(channel_T *channel, int part, char *func);
|
||||
#endif
|
||||
/* vim: set ft=c : */
|
||||
|
||||
Reference in New Issue
Block a user