Annotation of researchv10no/cmd/f2c/sysdep.h, revision 1.1.1.1

1.1       root        1: /****************************************************************
                      2: Copyright 1990, 1991 by AT&T Bell Laboratories, Bellcore.
                      3: 
                      4: Permission to use, copy, modify, and distribute this software
                      5: and its documentation for any purpose and without fee is hereby
                      6: granted, provided that the above copyright notice appear in all
                      7: copies and that both that the copyright notice and this
                      8: permission notice and warranty disclaimer appear in supporting
                      9: documentation, and that the names of AT&T Bell Laboratories or
                     10: Bellcore or any of their entities not be used in advertising or
                     11: publicity pertaining to distribution of the software without
                     12: specific, written prior permission.
                     13: 
                     14: AT&T and Bellcore disclaim all warranties with regard to this
                     15: software, including all implied warranties of merchantability
                     16: and fitness.  In no event shall AT&T or Bellcore be liable for
                     17: any special, indirect or consequential damages or any damages
                     18: whatsoever resulting from loss of use, data or profits, whether
                     19: in an action of contract, negligence or other tortious action,
                     20: arising out of or in connection with the use or performance of
                     21: this software.
                     22: ****************************************************************/
                     23: 
                     24: /* This file is included at the start of defs.h; this file
                     25:  * is an initial attempt to gather in one place some declarations
                     26:  * that may need to be tweaked on some systems.
                     27:  */
                     28: 
                     29: #ifdef __STDC__
                     30: #ifndef ANSI_Libraries
                     31: #define ANSI_Libraries
                     32: #endif
                     33: #ifndef ANSI_Prototypes
                     34: #define ANSI_Prototypes
                     35: #endif
                     36: #endif
                     37: 
                     38: #ifdef __BORLANDC__
                     39: #define MSDOS
                     40: extern int ind_printf(), nice_printf();
                     41: #endif
                     42: 
                     43: #ifdef __ZTC__ /* Zortech */
                     44: #define MSDOS
                     45: extern int ind_printf(...), nice_printf(...);
                     46: #endif
                     47: 
                     48: #ifdef MSDOS
                     49: #define ANSI_Libraries
                     50: #define ANSI_Prototypes
                     51: #define LONG_CAST (long)
                     52: #else
                     53: #define LONG_CAST
                     54: #endif
                     55: 
                     56: #include <stdio.h>
                     57: 
                     58: #ifdef ANSI_Libraries
                     59: #include <stddef.h>
                     60: #include <stdlib.h>
                     61: #else
                     62: char *calloc(), *malloc(), *memcpy(), *memset(), *realloc();
                     63: typedef int size_t;
                     64: #ifdef ANSI_Prototypes
                     65: extern double atof(const char *);
                     66: #else
                     67: extern double atof();
                     68: #endif
                     69: #endif
                     70: 
                     71: #ifdef ANSI_Prototypes
                     72: extern char *gmem(int, int);
                     73: extern char *mem(int, int);
                     74: extern char *Alloc(int);
                     75: extern int* ckalloc(int);
                     76: #else
                     77: extern char *Alloc(), *gmem(), *mem();
                     78: int *ckalloc();
                     79: #endif
                     80: 
                     81: /* On systems like VMS where fopen might otherwise create
                     82:  * multiple versions of intermediate files, you may wish to
                     83:  * #define scrub(x) unlink(x)
                     84:  */
                     85: #ifndef scrub
                     86: #define scrub(x) /* do nothing */
                     87: #endif
                     88: 
                     89: /* On systems that severely limit the total size of statically
                     90:  * allocated arrays, you may need to change the following to
                     91:  *     extern char **chr_fmt, *escapes, **str_fmt;
                     92:  * and to modify sysdep.c appropriately
                     93:  */
                     94: extern char *chr_fmt[], escapes[], *str_fmt[];
                     95: 
                     96: #include <string.h>
                     97: 
                     98: #include "ctype.h"
                     99: 
                    100: #define Table_size 256
                    101: /* Table_size should be 1 << (bits/byte) */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.