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