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

  1.  
  2. /********************************************
  3. V7.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. The port of mawk to V7 is the work of
  15. Carl Mascott (cmascott@world.std.com)
  16. */
  17.  
  18. /*$Log: V7.h,v $
  19.  * Revision 4.2  1991/11/21  13:30:34  brennan
  20.  *
  21.  * 11/17/91  C. Mascott        declare fprintf, sprintf on V7
  22.  *
  23.  * Revision 4.1  91/09/25  11:40:41  brennan
  24.  * VERSION 1.0
  25.  * 
  26.  * Revision 1.4  91/08/16  08:22:09  brennan
  27.  * Carl's addition of SW_FP_CHECK for XNX23A
  28.  * 
  29.  * Revision 1.3  91/08/13  09:04:07  brennan
  30.  * VERSION .9994
  31.  * 
  32.  * Revision 1.2  91/06/15  09:28:54  brennan
  33.  * Carl's diffs for V7
  34.  * 
  35.  * 06/11/91  C. Mascott        change NO_FMOD to HAVE_FMOD
  36.  *                change NO_STRTOD to HAVE_STRTOD
  37.  *
  38.  * Revision 1.1  91/06/10  14:20:03  brennan
  39.  * Initial revision
  40.  * 
  41. */
  42.  
  43. #ifndef   CONFIG_H
  44. #define   CONFIG_H        1
  45.  
  46. #define                V7
  47.  
  48.  
  49. #define   HAVE_VOID_PTR        0
  50. #define   HAVE_STRTOD           0
  51. #define   HAVE_FMOD             0
  52. #define   HAVE_MATHERR        0
  53.  
  54. #define   HAVE_STRING_H        0
  55. #define   HAVE_FCNTL_H        0
  56.  
  57.  
  58. #define   O_RDONLY        0
  59. #define   O_WRONLY        1
  60. #define   O_RDWR        2
  61.  
  62. #define   vfprintf(s,f,a)  _doprnt(f,a,s)
  63. #define   strchr    index
  64. #define   strrchr    rindex
  65.  
  66. #ifdef XNX23A
  67. /* convert double to Boolean.  This is a bug work-around for
  68.    XENIX-68K 2.3A, where logical test of double doesn't work.  This
  69.    macro NG for register double. */
  70. #define   D2BOOL(x)    (*((long *) &(x)))
  71. #define   SW_FP_CHECK    1
  72. #endif
  73.  
  74.  
  75. /* these are missing and print.c needs them */
  76. void fprintf() ;
  77. char *sprintf() ;
  78.  
  79. #include  "config/Idefault.h"
  80. #endif  /* CONFIG_H */
  81.