2 /********************************************
4 copyright 1991, Michael D. Brennan
6 This is a source file for mawk, an implementation of
7 the AWK programming language.
9 Mawk is distributed without warranty under the terms of
10 the GNU General Public License, version 2, 1991.
11 ********************************************/
14 /* $Log: sun_os40.h,v $
15 * Revision 4.2 91/11/17 12:34:11 brennan
16 * added a declaration for sprintf()
18 * Revision 4.1 91/09/25 11:41:35 brennan
21 * Revision 3.4 91/08/26 13:04:38 brennan
24 * Revision 3.3 91/08/23 08:48:42 brennan
25 * discovered strtod() bug can also happen on sun3
27 * Revision 3.2 91/08/13 09:04:13 brennan
30 * Revision 3.1 91/06/07 10:38:50 brennan
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.
39 If you get strange error messages:
41 mawk: line xx: 0 : decimal underflow
43 then your strtod() is broken and use this file as config.h
45 Otherwise use generic.h as config.h.
47 I've talked to Sun and they tell me its a known bug thats
51 It can happen on sun3's too. (8/23)
58 #define STRTOD_UNDERFLOW_ON_ZERO_BUG 1
60 extern char *sprintf() ; /* missing in /usr/include/*.h */
63 #include "config/Idefault.h"