mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
Implement mch_delay
on top of libuv
Needed to temporarily move two static variables from os_unix.c to 'globals.h' as those are shared by other functions still in os_unix.
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
#ifndef NEOVIM_GLOBALS_H
|
||||
#define NEOVIM_GLOBALS_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "ex_eval.h"
|
||||
#include "mbyte.h"
|
||||
#include "menu.h"
|
||||
@@ -1131,6 +1133,12 @@ EXTERN FILE *time_fd INIT(= NULL); /* where to write startup timing */
|
||||
EXTERN int ignored;
|
||||
EXTERN char *ignoredp;
|
||||
|
||||
/* Temporarily moved these static variables to assist in migrating from
|
||||
* os_unix.c */
|
||||
EXTERN int curr_tmode INIT(= TMODE_COOK); /* contains current terminal mode */
|
||||
/* volatile because it is used in signal handler deathtrap(). */
|
||||
EXTERN volatile bool in_mch_delay INIT(= false); /* sleeping in mch_delay() */
|
||||
|
||||
/*
|
||||
* Optional Farsi support. Include it here, so EXTERN and INIT are defined.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user