home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / src / h / proto.h < prev    next >
C/C++ Source or Header  |  2001-12-12  |  2KB  |  68 lines

  1. /*
  2.  * proto.h -- prototypes for library functions.
  3.  */
  4.  
  5. /*
  6.  * The following code is operating-system dependent. [@proto.01].
  7.  *  Prototypes for library functions.
  8.  */
  9.  
  10. #if PORT
  11.    Deliberate Syntax Error
  12. #endif                    /* PORT */
  13.  
  14. #if AMIGA
  15.    #if LATTICE
  16.       #include <dos.h>
  17.    #endif                /* LATTICE */
  18.    #if __SASC
  19.       /* GLOBAL and STATIC are defined in tparse.c as well as
  20.       in <exec/types.h>, which is included in <dos.h>. */
  21.       #undef GLOBAL
  22.       #undef STATIC
  23.       #include <dos.h>
  24.       #undef GLOBAL
  25.       #undef STATIC
  26.       /* From tparse.c */
  27.       # define GLOBAL 273
  28.       # define STATIC 286
  29.    #endif                               /* __SASC */
  30. #endif                    /* AMIGA */
  31.  
  32. #if MSDOS || OS2
  33.    #if HIGHC_386
  34.       int    brk        (pointer p);
  35.       pointer sbrk        (msize n);
  36.    #endif                /* HIGHC_386 */
  37.    #if INTEL_386
  38.       #include <dos.h>
  39.       int    brk        (pointer p);
  40.    #endif                /* INTEL_386 */
  41.    #if MICROSOFT || TURBO || ZTC_386 || WATCOM || NT || BORLAND_286 || BORLAND_386 || SCCX_MX
  42.       #include <dos.h>
  43.    #endif                /* MICROSOFT || TURBO || ZTC_386 ... */
  44. #endif                    /* MSDOS || OS2 */
  45.  
  46. /*
  47.  * End of operating-system specific code.
  48.  */
  49.  
  50. #ifdef MSWindows
  51.    #if BORLAND_286
  52.       #define lstrlen longstrlen
  53.    #endif                /* Borland_286 */
  54. #endif                    /* MSWindows */
  55.  
  56. #include "../h/mproto.h"
  57.  
  58. /*
  59.  * These must be after prototypes to avoid clash with system
  60.  * prototypes.
  61.  */
  62.  
  63. #if IntBits == 16
  64.    #define sbrk lsbrk
  65.    #define strlen lstrlen
  66.    #define qsort lqsort
  67. #endif                    /* IntBits == 16 */
  68.