00001 /**************************************************************** 00002 Copyright 1990, 1991, 1994 by AT&T, Lucent Technologies and Bellcore. 00003 00004 Permission to use, copy, modify, and distribute this software 00005 and its documentation for any purpose and without fee is hereby 00006 granted, provided that the above copyright notice appear in all 00007 copies and that both that the copyright notice and this 00008 permission notice and warranty disclaimer appear in supporting 00009 documentation, and that the names of AT&T, Bell Laboratories, 00010 Lucent or Bellcore or any of their entities not be used in 00011 advertising or publicity pertaining to distribution of the 00012 software without specific, written prior permission. 00013 00014 AT&T, Lucent and Bellcore disclaim all warranties with regard to 00015 this software, including all implied warranties of 00016 merchantability and fitness. In no event shall AT&T, Lucent or 00017 Bellcore be liable for any special, indirect or consequential 00018 damages or any damages whatsoever resulting from loss of use, 00019 data or profits, whether in an action of contract, negligence or 00020 other tortious action, arising out of or in connection with the 00021 use or performance of this software. 00022 ****************************************************************/ 00023 00024 /* This file is included at the start of defs.h; this file 00025 * is an initial attempt to gather in one place some declarations 00026 * that may need to be tweaked on some systems. 00027 */ 00028 00029 #ifdef __STDC__ 00030 #undef KR_headers 00031 #endif 00032 00033 #ifndef KR_headers 00034 #ifndef ANSI_Libraries 00035 #define ANSI_Libraries 00036 #endif 00037 #ifndef ANSI_Prototypes 00038 #define ANSI_Prototypes 00039 #endif 00040 #endif 00041 00042 #ifdef __BORLANDC__ 00043 #define MSDOS 00044 #endif 00045 00046 #ifdef __ZTC__ /* Zortech */ 00047 #define MSDOS 00048 #endif 00049 00050 #ifdef MSDOS 00051 #define ANSI_Libraries 00052 #define ANSI_Prototypes 00053 #define LONG_CAST (long) 00054 #else 00055 #define LONG_CAST 00056 #endif 00057 00058 #include <stdio.h> 00059 00060 #ifdef ANSI_Libraries 00061 #include <stddef.h> 00062 #include <stdlib.h> 00063 #else 00064 char *calloc(), *malloc(), *realloc(); 00065 void *memcpy(), *memset(); 00066 #ifndef _SIZE_T 00067 typedef unsigned int size_t; 00068 #endif 00069 #ifndef atol 00070 long atol(); 00071 #endif 00072 00073 #ifdef ANSI_Prototypes 00074 extern double atof(const char *); 00075 extern double strtod(const char*, char**); 00076 #else 00077 extern double atof(), strtod(); 00078 #endif 00079 #endif 00080 00081 /* On systems like VMS where fopen might otherwise create 00082 * multiple versions of intermediate files, you may wish to 00083 * #define scrub(x) unlink(x) 00084 */ 00085 #ifndef scrub 00086 #define scrub(x) /* do nothing */ 00087 #endif 00088 00089 /* On systems that severely limit the total size of statically 00090 * allocated arrays, you may need to change the following to 00091 * extern char **chr_fmt, *escapes, **str_fmt; 00092 * and to modify sysdep.c appropriately 00093 */ 00094 extern char *chr_fmt[], escapes[], *str_fmt[]; 00095 00096 #include <string.h> 00097 00098 #include "ctype.h" 00099 00100 #define Bits_per_Byte 8 00101 #define Table_size (1 << Bits_per_Byte)
1.5.1