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

  1.  
  2. /********************************************
  3. sun_os40.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: sun_os40.h,v $
  15.  * Revision 4.2  1991/11/17  12:34:11  brennan
  16.  * added a declaration for sprintf()
  17.  *
  18.  * Revision 4.1  91/09/25  11:41:35  brennan
  19.  * VERSION 1.0
  20.  * 
  21.  * Revision 3.4  91/08/26  13:04:38  brennan
  22.  * changed file name
  23.  * 
  24.  * Revision 3.3  91/08/23  08:48:42  brennan
  25.  * discovered strtod() bug can also happen on sun3
  26.  * 
  27.  * Revision 3.2  91/08/13  09:04:13  brennan
  28.  * VERSION .9994
  29.  * 
  30.  * Revision 3.1  91/06/07  10:38:50  brennan
  31.  * VERSION 0.995
  32.  * 
  33. */
  34.  
  35. /* On some, not all, sun4's SunOS4.0.3 there is a bug in strtod().
  36.    strtod("0",0) sets errno to ERANGE sometimes! which announces
  37.    underflow which is not true.
  38.  
  39.    If you get strange error messages:
  40.  
  41.    mawk: line xx: 0 : decimal underflow
  42.  
  43.    then your strtod() is broken and use this file as config.h
  44.  
  45.    Otherwise use generic.h as config.h.
  46.  
  47.    I've talked to Sun and they tell me its a known bug thats
  48.    fixed in 4.1
  49.  
  50.    ----------------
  51.    It can happen on sun3's too. (8/23)
  52. */
  53.  
  54. #ifndef  CONFIG_H
  55. #define  CONFIG_H
  56.  
  57.  
  58. #define  STRTOD_UNDERFLOW_ON_ZERO_BUG  1
  59.  
  60. extern char *sprintf() ;  /* missing in /usr/include/*.h */
  61.  
  62.  
  63. #include "config/Idefault.h"
  64.  
  65. #endif
  66.