RTCHECK.LST 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Listing:
  2. 1 (* Release 3.10 *)
  3. 2 (*-------------------------------------------------------------------------*
  4. 3 * *
  5. 4 * RTCHECK.DEF - Modula-2 run-time checking definitions *
  6. 5 * *
  7. 6 * COPYRIGHT (C) 1989..1992 Clarion Software Corporation. *
  8. 7 * All Rights Reserved *
  9. 8 * *
  10. 9 *--------------------------------------------------------------------------*)
  11. 10
  12. 11 (*# module(implementation=>off, init_code=>off) *)
  13. 12
  14. 13 DEFINITION MODULE RTCheck;
  15. 14
  16. 15 IMPORT CoreSig;
  17. 16
  18. 17 CONST
  19. 18 (* Values for code parameter *)
  20. 19 CNS_STACK = 1; (* Stack overflow *)
  21. 20 CNS_NILPTR = 2; (* Nil Ptr dereference *)
  22. 21 CNS_INDEX = 9; (* Index out of range *)
  23. 22 CNS_OVERFLOW = 4; (* Integer overflow *)
  24. 23 CNS_RANGE = 5; (* Integer out of range *)
  25. 24 CNS_RETURN = 6; (* No return in function *)
  26. 25 CNS_CASE = 7; (* No matching case *)
  27. 26 CNS_DIVZERO = 8; (* Long integer divide by zero *)
  28. 27 CNS_PVC = 10; (* Pure virtual function called *)
  29. 28
  30. 29 (* return values for handler *)
  31. 30 CONTINUE = TRUE;
  32. 31 TERMINATE = FALSE;
  33. 32
  34. 33 (* call(near_call=>off, reg_param=>(), reg_saved=>(ax,bx,cx,dx,ds,si,di,st1,st2),
  35. 34 c_conv=>off),
  36. 35 name(prefix=>modula) *)
  37. 36
  38. 37 CnsHandlerType ::= CoreSig.CnsHandlerType;
  39. ***** ^ not supported yet
  40. ***** ^ not supported yet
  41. 38 CnsHandler ::= CoreSig.CnsHandler;
  42. ***** ^ not supported yet
  43. ***** ^ not supported yet
  44. 39
  45. 40 END RTCheck.
  46. ***** ^ not supported yet
  47. 5 errors