id3_types.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // The authors have released ID3Lib as Public Domain (PD) and claim no copyright,
  2. // patent or other intellectual property protection in this work. This means that
  3. // it may be modified, redistributed and used in commercial and non-commercial
  4. // software and hardware without restrictions. ID3Lib is distributed on an "AS IS"
  5. // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
  6. //
  7. // The ID3Lib authors encourage improvements and optimisations to be sent to the
  8. // ID3Lib coordinator, currently Dirk Mahoney ([email protected]). Approved
  9. // submissions may be altered, and will be included and released under these terms.
  10. //
  11. // Mon Nov 23 18:34:01 1998
  12. #ifndef ID3LIB_TYPES_H
  13. #define ID3LIB_TYPES_H
  14. #include <wchar.h>
  15. #include <bfc/platform/types.h>
  16. typedef unsigned char uchar;
  17. typedef short signed int ssint;
  18. typedef short unsigned int suint;
  19. typedef long signed int lsint;
  20. typedef size_t luint;
  21. typedef long double ldoub;
  22. typedef long unsigned int * bitset;
  23. #define BS_SET(v,x) ( (v)[ (x) / ( sizeof ( luint ) * 8 ) ] |= ( 1 << ( (x) % ( sizeof ( luint ) * 8 ) ) ) )
  24. #define BS_CLEAR(v,x) ( (v)[ (x) / ( sizeof ( luint ) * 8 ) ] &= ~( 1 << ( (x) % ( sizeof ( luint ) * 8 ) ) ) )
  25. #define BS_ISSET(v,x) ( (v)[ (x) / ( sizeof ( luint ) * 8 ) ] & ( 1 << ( (x) % ( sizeof ( luint ) * 8 ) ) ) )
  26. #ifndef NULL
  27. #define NULL (0L)
  28. #endif
  29. #ifndef MIN
  30. inline lsint MIN ( lsint x, lsint y )
  31. {
  32. return x < y ? x : y;
  33. }
  34. #endif
  35. #ifndef MAX
  36. inline lsint MAX ( lsint x, lsint y )
  37. {
  38. return x > y ? x : y;
  39. }
  40. #endif
  41. // include other abstract types here because they
  42. // may depend on the types defined above
  43. #include "id3_int28.h"
  44. #endif