home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga Shareware Floppies / ma64.dms / ma64.adf / FTPMount-1.0 / Source / evtypes.h < prev    next >
C/C++ Source or Header  |  1995-09-06  |  808b  |  53 lines

  1. /*
  2.  * This source file is Copyright 1995 by Evan Scott.
  3.  * All rights reserved.
  4.  * Permission is granted to distribute this file provided no
  5.  * fees beyond distribution costs are levied.
  6.  */
  7.  
  8. typedef unsigned long b32;
  9. typedef unsigned char b8;
  10. typedef unsigned short b16;
  11.  
  12. typedef signed long sb32;
  13. typedef signed char sb8;
  14. typedef signed short sb16;
  15.  
  16. typedef void (*ptf)();
  17.  
  18. #ifdef TRUE
  19. #undef TRUE
  20. #endif
  21.  
  22. #ifdef FALSE
  23. #undef FALSE
  24. #endif
  25.  
  26. #ifdef NULL
  27. #undef NULL
  28. #endif
  29.  
  30. #ifdef TRUE
  31. #undef TRUE
  32. #endif
  33.  
  34. #ifdef FALSE
  35. #undef FALSE
  36. #endif
  37.  
  38. #ifdef NULL
  39. #undef NULL
  40. #endif
  41.  
  42. static void * const nil = 0;
  43.  
  44. typedef enum { false = (1 == 0), true = (1 == 1) } boolean;
  45.  
  46. #ifdef AMIGA
  47. #define strcasecmp stricmp
  48. #endif
  49.  
  50. /* NB: this only works for y a power of 2 */
  51. #define ROUND_UP(x, y) ((x + y - 1) & (~(y - 1)))
  52.  
  53.