home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c185 / 2.ddi / OWLSRC.EXE / CSCAPE / SOURCE / OSTDLIB.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-06  |  1.7 KB  |  81 lines

  1. /*
  2.     ostdlib.h
  3.  
  4.     % Oakland stdlib.h version. Depends on what compiler is being used.
  5.  
  6.     This file depends on a symbol for the Compiler or Operating System
  7.     being #define'd.
  8.  
  9.     Use one of the following:
  10.  
  11.     M5
  12.     TC
  13.     LC
  14.     DLC
  15.     OAK_UNIX
  16.     OAK_APOLLO
  17.     OAK_SUN
  18.     OAK_VMS
  19.     OAK_STRATUS
  20.     OAK_DG
  21.  
  22.     OWL 1.1
  23.     Copyright (c) 1986, 1987, 1988, by Oakland Group, Inc.
  24.     ALL RIGHTS RESERVED.
  25.  
  26.     Revision History:
  27.     -----------------
  28.      4/07/89 jmd    added math.h for UNIX/APOLLO
  29.      6/27/89 ted    Removed references to min and max.
  30.      7/15/89 ted    Added oabs, omin, omax, int_min, int_max for all cases.
  31. */
  32. /* -------------------------------------------------------------------------- */
  33.  
  34. #define oabs(a)                        (((a) >= 0) ? (a) : -(a))
  35. #define omax(a, b)                    (((a) > (b)) ? (a) : (b))
  36. #define omin(a, b)                    (((a) < (b)) ? (a) : (b))
  37.  
  38. extern int int_min(_arg2(int a, int b));
  39. extern int int_max(_arg2(int b, int a));
  40.  
  41. #ifdef M5    /*          Microsoft C version 5.x Dependent Code     */
  42. #    include <stdlib.h>
  43. #endif
  44.  
  45. #ifdef TC    /*          Turbo C Dependent Code         */
  46. #    include <stdlib.h>
  47. #endif
  48.  
  49. #ifdef MW    /*    Meta Ware High C Dependent Code    */
  50. #    include <stdlib.h>
  51. #endif
  52.  
  53. #ifdef LC    /*          Lattice C Dependent Code    */
  54. #    include <stdlib.h>
  55. #endif
  56.  
  57. #ifdef OAK_UNIX        /*          UNIX Dependent Code */
  58. #    include <math.h>        /* for atof etc. */
  59. #endif
  60.  
  61. #ifdef OAK_APOLLO
  62. #    include <math.h>        /* for atof etc. */
  63.     VOID *malloc();
  64.     VOID *calloc();
  65.     VOID *realloc();
  66. #endif
  67.  
  68. #ifdef OAK_SUN        /*          SUN Dependent Code */
  69. #endif
  70.  
  71. #ifdef OAK_VMS        /*          VMS Dependent Code */
  72. #endif
  73.  
  74. #ifdef OAK_STRATUS        /*          STRATUS Dependent Code */
  75. #endif
  76.  
  77. #ifdef OAK_DG    /*          Data General C Dependent Code    */
  78. #endif
  79. /* -------------------------------------------------------------------------- */
  80.  
  81.