home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / BURKS / SOFTWARE / SOURCES / MAWK11AS.ZIP / CONFIG / GENERIC.H (.txt) < prev    next >
C/C++ Source or Header  |  1991-12-18  |  2KB  |  88 lines

  1.  
  2. /********************************************
  3. generic.h
  4. copyright 1991, Michael D. Brennan
  5.  
  6. This is a source file for mawk, an implementation of
  7. the AWK programming language.
  8.  
  9. Mawk is distributed without warranty under the terms of
  10. the GNU General Public License, version 2, 1991.
  11. ********************************************/
  12.  
  13.  
  14. /* $Log:    generic.h,v $
  15.  * Revision 4.3  91/10/29  10:48:26  brennan
  16.  * version 1.09
  17.  * 
  18.  * Revision 4.2  91/10/14  09:52:34  brennan
  19.  * added HAVE_PRINTF_HD
  20.  * 
  21.  * Revision 4.1  91/09/25  11:41:23  brennan
  22.  * VERSION 1.0
  23.  * 
  24.  * Revision 3.2  91/08/13  09:04:11  brennan
  25.  * VERSION .9994
  26.  * 
  27.  * Revision 3.1  91/06/07  10:38:48  brennan
  28.  * VERSION 0.995
  29.  * 
  30. */
  31.  
  32. /* This is the most common and easiest case ,
  33.    
  34.    if you satisfy the
  35.    following generic conditions 
  36.    or your compiler pre defines __STDC__ != 0
  37.    
  38.    link or copy this file to
  39.    ../config.h and make
  40.  
  41. generic conditions:
  42.    compiler does not have prototypes
  43.    compiler has void *
  44.  
  45.    have <string.h>
  46.    do not have  <stdlib.h>
  47.    use <varargs.h> instead of <stdarg.h>
  48.    have <fcntl.h>
  49.  
  50.    have matherr()
  51.    have strtod()
  52.    have fmod()
  53.  
  54.    printf and sprintf cannot handle "%hd"
  55.  
  56.  
  57.    divison by zero, overflow and library domain errors do not
  58.    cause exceptions and this is default behavior.
  59.    For example this is true if you have IEEE754 floating point
  60.    and the traps are off by default as the standard says.
  61.    (The ANSI C committee forgot to read IEEE754 )
  62.  
  63.    You don't have to be frugal with memory, i.e. you are not
  64.    restricted to 64K of data or something similar
  65.    
  66.    largest integer is 2^31-1 = 0x7fffffff
  67.  
  68.    Your OS is some flavor of Unix
  69. /*
  70.  
  71. /* tested and works on:
  72.  
  73. SunOS4.1  (sun 4.0.3 has a bug in strtod(), use sun_os40.h)
  74.  
  75. Ultrix4.1  on a MIPS
  76. Ultrix4.2  on a MIPS
  77. SysV3.02beta on a Stardent 3000
  78.  
  79. */
  80.  
  81. #ifndef  CONFIG_H
  82. #define  CONFIG_H    1
  83.  
  84.  
  85. #include "config/Idefault.h"
  86.  
  87. #endif
  88.