/* * DVIasm Configuration Header File * */ #ifndef SUN #define SUN 0 #endif #if SUN #define UTS 1 /* UTS code works for Sun UNIX 3.2 */ #endif /* Set Undefined Symbols to 0 for Certain Brain-Dead Compilers ******** */ #ifndef UTS #define UTS 0 #endif #ifndef VMS /* VAXC is one particular one that comes to mind. */ #define VMS 0 #endif #ifndef CMS #define CMS 0 #endif #ifndef MVS #define MVS 0 #endif #ifndef AOS #define AOS 0 #endif #ifndef LC370 #define LC370 0 #endif #ifndef WATC #define WATC 0 #endif /* Hardware-Dependent Definitions ************************************* */ #define TWOS_COMPLEMENT_MACHINE 1 /* Include System-Dependent Header Files ****************************** */ #include /* Include Files for VM/UTS ------------------------------------------- */ #if UTS #include #include #include #define BLOCKSIZE 4 #define MAKELOWER(ch) (isupper (ch) ? tolower (ch) : ch) #define MAKEUPPER(ch) (islower (ch) ? toupper (ch) : ch) #define EBCDIC_MACHINE 0 #define ASCII_MACHINE 1 #define CONFIG_DEFINED VM/UTS #define SHORT_EXTERNAL_NAMES 0 #endif /* Include Files for VAX/VMS ------------------------------------------ */ #if VMS #ifdef CONFIG_DEFINED error: System configuration already defined as CONFIG_DEFINED. <<<<<< #endif #include #include #include #define BLOCKSIZE 512 #define MAKELOWER(ch) _tolower (ch) #define MAKEUPPER(ch) _toupper (ch) #define EBCDIC_MACHINE 0 #define ASCII_MACHINE 1 #define CONFIG_DEFINED VAX/VMS #define SHORT_EXTERNAL_NAMES 0 #endif /* Include Files for VM/CMS and/or MVS Using SAS/C -------------------- */ #if LC370 #ifdef CONFIG_DEFINED error: System configuration already defined as CONFIG_DEFINED. <<<<<< #endif #include #include #include #if CMS #define BLOCKSIZE 1024 /* CMS TeX uses 1K blocks */ #else #define BLOCKSIZE 2048 /* MVS TeX uses 2K blocks */ #endif #define MAKELOWER(ch) tolower (ch) #define MAKEUPPER(ch) toupper (ch) #define EBCDIC_MACHINE 1 #define ASCII_MACHINE 0 #define CONFIG_DEFINED SAS/C (VM/CMS or MVS) #define SHORT_EXTERNAL_NAMES 1 #endif /* Include Files for VM/CMS and/or MVS Using Waterloo C --------------- */ #if WATC #ifdef CONFIG_DEFINED error: System configuration already defined as CONFIG_DEFINED. <<<<<< #endif #include #include #include #include #if CMS #define BLOCKSIZE 1024 /* CMS TeX uses 1K blocks */ #else #define BLOCKSIZE 2048 /* MVS TeX uses 2K blocks */ #endif #define MAKELOWER(ch) tolower (ch) #define MAKEUPPER(ch) toupper (ch) #define EBCDIC_MACHINE 1 #define ASCII_MACHINE 0 #define CONFIG_DEFINED Waterloo C (VM/CMS or MVS) #define SHORT_EXTERNAL_NAMES 1 #endif /* Include Files for DG AOS/VS ---------------------------------------- */ #if AOS #ifdef CONFIG_DEFINED error: System configuration already defined as CONFIG_DEFINED. <<<<<< #endif #include #include int strcspn(); int strspn(); #define BLOCKSIZE 1024 #define MAKELOWER(ch) tolower (ch) #define MAKEUPPER(ch) toupper (ch) #define EBCDIC_MACHINE 0 #define ASCII_MACHINE 1 #define CONFIG_DEFINED AOS/VS #define SHORT_EXTERNAL_NAMES 0 #endif /* Check system configuration flags for sanity ************************ */ #ifndef CONFIG_DEFINED error: System configuration not defined. <<<<<<<<<<<<<<<<<<<<<<<<<<<< #endif #ifndef BLOCKSIZE error: BLOCKSIZE not defined. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< #endif #ifndef MAKELOWER error: MAKELOWER not defined. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< #endif #ifndef MAKEUPPER error: MAKEUPPER not defined. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< #endif #ifndef ASCII_MACHINE #define ASCII_MACHINE 0 #endif #ifndef EBCDIC_MACHINE #define EBCDIC_MACHINE 0 #endif #if ASCII_MACHINE == 1 #if EBCDIC_MACHINE == 1 error: Both ASCII_MACHINE and EBCDIC_MACHINE cannot be 1. <<<<<<<<<<< #endif #else #if EBCDIC_MACHINE == 0 error: One of ASCII_MACHINE or EBCDIC_MACHINE must be 1. <<<<<<<<<<<< #endif #endif