mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-18 15:26:23 -05:00
Minimize Cygwin64 changes & use __unix__ instead of CYGWIN.
This commit is contained in:
parent
15012326db
commit
e83feafda1
@ -56,8 +56,6 @@ static int displaying = TRUE;
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
/* for window size changes */
|
/* for window size changes */
|
||||||
int chg_width, chg_height;
|
int chg_width, chg_height;
|
||||||
|
|
||||||
static int newscreensize(int h, int w);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int reframe(struct window *wp);
|
static int reframe(struct window *wp);
|
||||||
@ -73,6 +71,7 @@ static void modeline(struct window *wp);
|
|||||||
static void mlputi(int i, int r);
|
static void mlputi(int i, int r);
|
||||||
static void mlputli(long l, int r);
|
static void mlputli(long l, int r);
|
||||||
static void mlputf(int s);
|
static void mlputf(int s);
|
||||||
|
static int newscreensize(int h, int w);
|
||||||
|
|
||||||
#if RAINBOW
|
#if RAINBOW
|
||||||
static void putline(int row, int col, char *buf);
|
static void putline(int row, int col, char *buf);
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
#undef BSD
|
#undef BSD
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(SYSV) || defined(u3b2) || defined(_AIX) || (defined(i386) && defined(unix)) || defined(__hpux) || defined( CYGWIN)
|
#if defined(SYSV) || defined(u3b2) || defined(_AIX) || (defined(i386) && defined(unix)) || defined(__hpux) || defined( __unix__)
|
||||||
#define USG 1 /* System V UNIX */
|
#define USG 1 /* System V UNIX */
|
||||||
#else
|
#else
|
||||||
#define USG 0
|
#define USG 0
|
||||||
|
7
flook.c
7
flook.c
@ -75,15 +75,15 @@ boolean fexist( const char *fname)
|
|||||||
*/
|
*/
|
||||||
char *flook( const char *fname, int hflag)
|
char *flook( const char *fname, int hflag)
|
||||||
{
|
{
|
||||||
|
char *home; /* path to home directory */
|
||||||
|
char *path; /* environmental PATH variable */
|
||||||
|
char *sp; /* pointer into path spec */
|
||||||
int i; /* index */
|
int i; /* index */
|
||||||
static char fspec[NSTRING]; /* full path spec to search */
|
static char fspec[NSTRING]; /* full path spec to search */
|
||||||
|
|
||||||
#if ENVFUNC
|
#if ENVFUNC
|
||||||
char *path; /* environmental PATH variable */
|
|
||||||
|
|
||||||
if (hflag) {
|
if (hflag) {
|
||||||
char *home; /* path to home directory */
|
|
||||||
|
|
||||||
home = getenv("HOME");
|
home = getenv("HOME");
|
||||||
if (home != NULL) {
|
if (home != NULL) {
|
||||||
/* build home dir file spec */
|
/* build home dir file spec */
|
||||||
@ -108,7 +108,6 @@ char *flook( const char *fname, int hflag)
|
|||||||
path = getenv("PATH");
|
path = getenv("PATH");
|
||||||
if (path != NULL)
|
if (path != NULL)
|
||||||
while (*path) {
|
while (*path) {
|
||||||
char *sp; /* pointer into path spec */
|
|
||||||
|
|
||||||
/* build next possible file spec */
|
/* build next possible file spec */
|
||||||
sp = fspec;
|
sp = fspec;
|
||||||
|
2
input.c
2
input.c
@ -345,9 +345,9 @@ int getcmd(void)
|
|||||||
|
|
||||||
#if VT220
|
#if VT220
|
||||||
proc_metac:
|
proc_metac:
|
||||||
|
#endif
|
||||||
if (c == 128+27) /* CSI */
|
if (c == 128+27) /* CSI */
|
||||||
goto handle_CSI;
|
goto handle_CSI;
|
||||||
#endif
|
|
||||||
/* process META prefix */
|
/* process META prefix */
|
||||||
if (c == (CONTROL | '[')) {
|
if (c == (CONTROL | '[')) {
|
||||||
c = get1key();
|
c = get1key();
|
||||||
|
Loading…
Reference in New Issue
Block a user