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:
Thiago de Arruda
2014-03-24 19:11:51 -03:00
parent ed42c808b6
commit 32f118a47f
9 changed files with 99 additions and 64 deletions

View File

@@ -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.
*/