home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / MAWK113.ZIP / mawk113 / config / sysVr4i386.h < prev    next >
C/C++ Source or Header  |  1992-07-14  |  1KB  |  53 lines

  1.  
  2. /********************************************
  3. sysVr4i386.h
  4. copyright 1992, 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. /* 
  15.  
  16.  On Intel platforms and maybe others,
  17.  for some strange reason, division by zero traps but overflow
  18.  does not, so we have to turn on the overflow trap.
  19.  (This seems like a small bug to me.)
  20.  If the trap is on, it won't hurt to turn it on some more.
  21.  
  22.  If you have ieee754 hardware *and* a math lib that
  23.  supports it use sysV_ieeefp.h instead.
  24.  
  25. */
  26.  
  27. /*$Log: sysVr4i386.h,v $
  28.  * Revision 1.3  1992/07/14  14:23:35  brennan
  29.  * fixed typo
  30.  *
  31.  * Revision 1.2  1992/07/07  15:40:02  brennan
  32.  * DONT_PROTO_OPEN
  33.  *
  34.  * Revision 1.1  1992/07/01  18:07:47  brennan
  35.  * Initial revision
  36.  *
  37. */
  38.  
  39. #ifndef    CONFIG_H
  40. #define    CONFIG_H        1
  41.  
  42. #define        FPE_TRAPS_ON        1
  43. #define        NOINFO_SIGFPE        1
  44.  
  45. #define  USE_IEEEFP_H
  46. #define  TURN_ON_FPE_TRAPS()  (void)fpsetmask(fpgetmask()|FP_X_OFL)
  47.  
  48. #define  DONT_PROTO_OPEN
  49.  
  50. #include  "config/Idefault.h"
  51.  
  52. #endif   /* CONFIG_H */
  53.