tytools - remove eina.h include from ty tools where really not needed

terminology-1.2
Carsten Haitzler 5 years ago
parent 16f3870fb5
commit 3a14751b34
  1. 1
      src/bin/tyalpha.c
  2. 1
      src/bin/tybg.c
  3. 15
      src/bin/tycommon.c
  4. 2
      src/bin/tycommon.h
  5. 1
      src/bin/typop.c
  6. 1
      src/bin/tyq.c
  7. 1
      src/bin/tysend.c

@ -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…
Cancel
Save