home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************
- * COMMON.H: Commonly used constants for C.
- *****************************************************************************/
-
- #ifndef _plmtypes
- #define _plmtypes
- #define BYTE unsigned char
- #define STRING char
- #define BOOLEAN unsigned char
- #define WORD unsigned short
- #define DWORD unsigned long
- #define TOKEN selector
- #define SELECTOR selector
- #endif
-
- typedef TOKEN SEGMENT_TOKEN;
- typedef TOKEN MAILBOX_TOKEN;
- typedef TOKEN SEMAPHORE_TOKEN;
- typedef TOKEN TASK_TOKEN;
- typedef TOKEN IORS_TOKEN;
- typedef TOKEN CONNECTION_TOKEN;
-
- #define STRING_MAX (WORD) 255
- typedef struct {
- unsigned char length;
- unsigned char text[STRING_MAX];
- } RMX_STRING;
-
- #define TRUE 0x0FF /* typedef unsigned char */
- #define FALSE 0 /* BOOLEAN */
-
- #define NIL (void far *) 0
- #define NULL_POINTER NIL
- #define NULL_TOKEN (selector) 0
- #define INVALID_TOKEN 0x0FFFF
-
- #define CALLER (selector) NIL /* can be used on
- delete_job,
- delete_task,
- lookup_object,
- etc; */
-
- #define FIFO_QUEUING (unsigned short) 0 /* used in nucleus exchange */
- #define PRIOR_QUEUING (unsigned short) 1 /* creation calls */
-
- #define NO_WAIT (unsigned short) 0 /* used when waiting on an */
- #define INFINITE_WAIT (unsigned short) 0x0FFFF /* exchange */
-
- #define WORLD_ID 0x0FFFF
- #define SYSTEM_MANAGER_ID 0
-
- #define DEFAULT_USER (selector) NIL /* BIOS attach and */
- #define DEFAULT_PREFIX (selector) NIL /* create calls */
-
- #define GET_EOF 0x0FFFF
-
- #define SOH 0x01
- #define STX 0x02
- #define ETX 0x03
- #define EOT 0x04
- #define CRTL_E 0x05
- #define ACK 0x06
- #define BELL 0x07
- #define BACK_SPACE 0x08
- #define HOR_TAB 0x09
- #define LF 0x0A
- #define CR 0x0D
- #define XON 0x11
- #define XOF 0x13
- #define NAK 0x15
- #define CAN 0x18
- #define SUB 0x1A
- #define ESC 0x01B
- #define SPACE 0x20
- #define COMMA 0x2C
- #define TILDE 0x7E
- #define RUBOUT 0x7F
- #define OSC ESC,0x05D
- #define ST ESC,0x05C
-
- /*
- * Constants with no underscores for compatibility with previous
- * versions of this file.
- */
-
- typedef TOKEN SEGMENTTOKEN;
- typedef TOKEN MAILBOXTOKEN;
- typedef TOKEN SEMAPHORETOKEN;
- typedef TOKEN TASKTOKEN;
- typedef TOKEN IORSTOKEN;
- typedef TOKEN CONNECTIONTOKEN;
-
- #define STRINGMAX (WORD) 255
- #define NULLPOINTER NIL
- #define NULLTOKEN (selector) 0
- #define INVALIDTOKEN 0x0FFFF
- #define FIFOQUEUING (unsigned short) 0 /* used in nucleus exchange */
- #define PRIORQUEUING (unsigned short) 1 /* creation calls */
-
- #define NOWAIT (unsigned short) 0 /* used when waiting on an */
- #define INFINITEWAIT (unsigned short) 0x0FFFF /* exchange */
-
- #define WORLDID 0x0FFFF
- #define SYSTEMMANAGERID 0
-
- #define DEFAULTUSER (selector) NIL /* BIOS attach and */
- #define DEFAULTPREFIX (selector) NIL /* create calls */
-
- #define GETEOF 0x0FFFF
-
- #define BACKSPACE 0x08
- #define HORTAB 0x09
-