ddc.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*============================================================================
  2. ddc.h - Don Cross, October 1992.
  3. Generic ddclib stuff.
  4. ============================================================================*/
  5. #ifndef __DDC_DDC_H
  6. #define __DDC_DDC_H
  7. // If you add something to DDCRET, please add the appropriate string
  8. // to the function DDCRET_String() in the file 'source\ddcret.cpp'.
  9. enum DDCRET
  10. {
  11. DDC_SUCCESS, // The operation succeded
  12. DDC_FAILURE, // The operation failed for unspecified reasons
  13. DDC_OUT_OF_MEMORY, // Operation failed due to running out of memory
  14. DDC_FILE_ERROR, // Operation encountered file I/O error
  15. DDC_INVALID_CALL, // Operation was called with invalid parameters
  16. DDC_USER_ABORT, // Operation was aborted by the user
  17. DDC_INVALID_FILE // File format does not match
  18. };
  19. const char *DDCRET_String ( DDCRET ); // See source\ddcret.cpp
  20. #define TRUE 1
  21. #define FALSE 0
  22. typedef int dBOOLEAN;
  23. typedef unsigned char BYTE;
  24. typedef unsigned char UINT8;
  25. typedef signed char INT8;
  26. typedef unsigned short int UINT16;
  27. typedef signed short int INT16;
  28. typedef unsigned long int UINT32;
  29. typedef signed long int INT32;
  30. #ifdef __BORLANDC__
  31. #if sizeof(UINT16) != 2
  32. #error Need to fix UINT16 and INT16
  33. #endif
  34. #if sizeof(UINT32) != 4
  35. #error Need to fix UINT32 and INT32
  36. #endif
  37. #endif
  38. #endif /* __DDC_DDC_H */
  39. /*--- end of file ddc.h ---*/