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

  1.  
  2. /********************************************
  3. coherent.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. /* This is for COHERENT 4.0 */
  14.  
  15. /*
  16. $Log: coherent.h,v $
  17.  * Revision 1.1  1992/11/22  18:35:43  mike
  18.  * Initial revision
  19.  *
  20. */
  21.  
  22. #ifndef  CONFIG_H
  23. #define  CONFIG_H       1
  24.  
  25. #define HAVE_VOID_PTR   0
  26. #define HAVE_MATHERR    0
  27. #define HAVE_FMOD       0
  28. #define HAVE_STDLIB_H   1
  29. #define HAVE_STRERROR    1
  30.  
  31. #define USE_SIMPLE_VFPRINTF  /* no vfprintf() */
  32.  
  33. #define HAVE_STDARG_H   1
  34.  
  35.    /* but it not standard ! 
  36.       so add  */
  37.  
  38. #define  VA_ALIST(type, arg) (arg) type arg; {
  39. #define  VA_ALIST2(t1,a1,t2,a2)  (a1,a2) t1 a1; t2 a2; {
  40.  
  41.  
  42. /* Until MWC improves floating point (December 1992, they tell me),
  43.    or fixes the math library (log(-8) gives 0, for example), we'll
  44.    have to put up with inconsistent handling. 
  45.    
  46.    Coherent 4.0 cannot be set up to pass fpe_test
  47. */
  48.  
  49. #define FPE_TRAPS_ON    1
  50. #define NOINFO_SIGFPE   1
  51.  
  52.  
  53. int printf();
  54. int sprintf();
  55.  
  56. #include "config/Idefault.h"
  57.  
  58. #endif
  59.