home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / misc / md5 / global.h next >
Encoding:
C/C++ Source or Header  |  1998-04-13  |  956 b   |  41 lines

  1. /* GLOBAL.H - RSAREF types and constants
  2.  */
  3.  
  4. /* PROTOTYPES should be set to one if and only if the compiler supports
  5.   function argument prototyping.
  6. The following makes PROTOTYPES default to 0 if it has not already
  7.   been defined with C compiler flags.
  8.  */
  9. #ifndef PROTOTYPES
  10. #define PROTOTYPES 0
  11. #endif
  12.  
  13. /* POINTER defines a generic pointer type */
  14. typedef unsigned char *POINTER;
  15.  
  16. #if 1
  17. /* UINT2 defines a two byte word */
  18. typedef unsigned short int UINT2;
  19.  
  20. /* UINT4 defines a four byte word */
  21. typedef unsigned long int UINT4;
  22. #else
  23. #include <sys/types.h>
  24.  
  25. /* UINT2 defines a two byte word */
  26. typedef u_int16_t UINT2;
  27.  
  28. /* UINT4 defines a four byte word */
  29. typedef u_int32_t UINT4;
  30. #endif /* 0 */
  31.  
  32. /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
  33. If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
  34.   returns an empty list.
  35.  */
  36. #if PROTOTYPES
  37. #define PROTO_LIST(list) list
  38. #else
  39. #define PROTO_LIST(list) ()
  40. #endif
  41.