error.h 944 B

123456789101112131415161718192021222324252627282930313233
  1. /*****************************************************************************
  2. * Error codes
  3. * (C) Cristina Cifuentes
  4. ****************************************************************************/
  5. /* These definitions refer to errorMessage in error.c */
  6. #define USAGE 0
  7. #define INVALID_ARG 1
  8. #define INVALID_OPCODE 2
  9. #define INVALID_386OP 3
  10. #define FUNNY_SEGOVR 4
  11. #define FUNNY_REP 5
  12. #define CANNOT_OPEN 6
  13. #define CANNOT_READ 7
  14. #define MALLOC_FAILED 8
  15. #define NEWEXE_FORMAT 9
  16. #define NO_BB 10
  17. #define INVALID_SYNTHETIC_BB 11
  18. #define INVALID_INT_BB 12
  19. #define IP_OUT_OF_RANGE 13
  20. #define DEF_NOT_FOUND 14
  21. #define JX_NOT_DEF 15
  22. #define NOT_DEF_USE 16
  23. #define REPEAT_FAIL 17
  24. #define WHILE_FAIL 18
  25. void fatalError(Int errId, ...);
  26. void reportError(Int errId, ...);