home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / tmp9 / p_type.h < prev    next >
C/C++ Source or Header  |  2002-01-20  |  2KB  |  64 lines

  1. /*****************************************************************************/
  2. /*                                                                           */
  3. /*              Copyright (c) 1995 by Oy Online Solutions Ltd.               */
  4. /*                                                                           */
  5. /*   Distribution of this source code is strictly forbbidden. Use of this    */
  6. /*   source code is granted to the University of Columbia C-Kermit project   */
  7. /*   to be distributed in binary format only. Please familiarize yourself    */
  8. /*   with the accompanying LICENSE.P file.                                   */
  9. /*                                                                           */
  10. /*****************************************************************************/
  11.  
  12. /*
  13.    These are much more smaller than "unsigned long" etc to write and
  14.    make porting to systems with different word sizes a lot easier...
  15. */
  16.  
  17. #ifndef _TYPEDEFS_H_
  18. #define _TYPEDEFS_H_
  19.  
  20. typedef unsigned long   U32;
  21. typedef long            S32;
  22. typedef unsigned short  U16;
  23. typedef short           S16;
  24. typedef unsigned char   U8;
  25. typedef char            S8;
  26. #ifndef NT
  27. typedef unsigned long   BOOLEAN;
  28. #endif
  29.  
  30. #ifdef XYZ_DLL
  31. #ifdef NT
  32. typedef long APIRET ;
  33. #define DosSleep Sleep
  34. #endif
  35. #else /* XYZ_DLL */
  36. typedef long APIRET ;
  37. #define DosSleep msleep
  38. #endif /* XYZ_DLL */
  39.  
  40. #ifdef XYZ_DLL
  41. #ifndef CK_ANSIC
  42. #define CK_ANSIC
  43. #endif /* CK_ANSIC */
  44. #endif /* XYZ_DLL */
  45.  
  46. #ifdef OS2
  47. #ifndef VOID
  48. #define VOID void
  49. #endif /* VOID */
  50. #endif /* OS2 */
  51.  
  52. #ifndef OS2
  53. #define _System
  54. #endif /* OS2 */
  55.  
  56. #ifndef _PROTOTYP
  57. #ifdef CK_ANSIC
  58. #define _PROTOTYP( func, parms ) func parms
  59. #else /* Not ANSI C */
  60. #define _PROTOTYP( func, parms ) func()
  61. #endif /* CK_ANSIC */
  62. #endif /* _PROTOTYP */
  63. #endif /* _TYPEDEFS_H_ */
  64.