mirror of
https://github.com/Interlisp/maiko.git
synced 2026-02-28 09:17:36 +00:00
... start by fixing the include files and the fallout in C source from removing includes not directly needed by headers that previously included them.
36 lines
943 B
C
Executable File
36 lines
943 B
C
Executable File
#ifndef LDEXDEFS_H
|
|
#define LDEXDEFS_H 1
|
|
|
|
/* $Id: ldeXdefs.h,v 1.2 1999/01/03 02:06:07 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */
|
|
|
|
/* * * * * X defs for all files in Medley * * * * */
|
|
|
|
/************************************************************************/
|
|
/* */
|
|
/* (C) Copyright 1989-92 Venue. All Rights Reserved. */
|
|
/* Manufactured in the United States of America. */
|
|
/* */
|
|
/************************************************************************/
|
|
|
|
#ifdef LOCK_X_UPDATES
|
|
#define XLOCK { XLocked++; /* printf("L"); fflush(stdout);*/}
|
|
#define XUNLOCK \
|
|
{ XLocked--;/* printf("U"); fflush(stdout);*/ \
|
|
if (XNeedSignal) \
|
|
{ \
|
|
XNeedSignal = 0; \
|
|
kill(getpid(), SIGPOLL); \
|
|
}; \
|
|
}
|
|
#else
|
|
#define XLOCK
|
|
#define XUNLOCK
|
|
#endif /* LOCK_X_UPDATES */
|
|
|
|
extern int XLocked;
|
|
extern int XNeedSignal;
|
|
/* this is !0 if we're locked; it should be 0 or larger always */
|
|
|
|
#endif
|
|
|