forked from enlightenment/terminology
tytools - remove eina.h include from ty tools where really not needed
This commit is contained in:
parent
16f3870fb5
commit
3a14751b34
|
@ -5,7 +5,6 @@
|
|||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <Eina.h>
|
||||
#include "tycommon.h"
|
||||
|
||||
static void
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <Eina.h>
|
||||
#include "tycommon.h"
|
||||
|
||||
static void
|
||||
|
|
|
@ -4,19 +4,14 @@
|
|||
#include "tycommon.h"
|
||||
|
||||
|
||||
Eina_Bool
|
||||
int
|
||||
is_running_in_terminology(void)
|
||||
{
|
||||
if (!getenv("TERMINOLOGY"))
|
||||
return EINA_FALSE;
|
||||
|
||||
if (!getenv("TERMINOLOGY")) return 0;
|
||||
// Terminology's escape codes do not got through tmux
|
||||
if (getenv("TMUX"))
|
||||
return EINA_FALSE;
|
||||
|
||||
if (getenv("TMUX")) return 0;
|
||||
// Terminology's escape codes do not got through screen
|
||||
if (getenv("STY"))
|
||||
return EINA_FALSE;
|
||||
if (getenv("STY")) return 0;
|
||||
|
||||
return EINA_TRUE;
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef _TY_COMMON_H__
|
||||
#define _TY_COMMON_H__ 1
|
||||
|
||||
Eina_Bool is_running_in_terminology(void);
|
||||
int is_running_in_terminology(void);
|
||||
|
||||
#define ON_NOT_RUNNING_IN_TERMINOLOGY_EXIT_1() \
|
||||
do \
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <Eina.h>
|
||||
#include "tycommon.h"
|
||||
|
||||
static void
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <Eina.h>
|
||||
#include "tycommon.h"
|
||||
|
||||
static void
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
#include <fcntl.h>
|
||||
#include <termios.h>
|
||||
|
||||
#include <Eina.h>
|
||||
#include "tycommon.h"
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue