FLOATEXC.LST 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. Listing:
  2. 1 (* Release 3.10 *)
  3. 2 (*-------------------------------------------------------------------------*
  4. 3 * *
  5. 4 * FLOATEXC.MOD - Floating-point exception handlers *
  6. 5 * *
  7. 6 * COPYRIGHT (C) 1987..1992 Clarion Software Corporation. *
  8. 7 * All Rights Reserved *
  9. 8 * *
  10. 9 *--------------------------------------------------------------------------*)
  11. 10
  12. 11 (*# call(seg_name => null,
  13. 12 ds_entry=>null) *)
  14. 13 (*# data(seg_name => null) *)
  15. 14 (*# check(stack=>off,
  16. 15 index=>off,
  17. 16 range=>off,
  18. 17 overflow=>off,
  19. 18 nil_ptr=>off) *)
  20. 19
  21. 20 IMPLEMENTATION MODULE FloatExc;
  22. 21
  23. 22 IMPORT CoreSig;
  24. 23
  25. 24 VAR
  26. 25 Handler, OldHandler, Dummy: CoreSig.SigProcType;
  27. ***** ^ not supported yet
  28. 26 Init: BOOLEAN;
  29. 27
  30. 28 PROCEDURE EnableExceptionHandling;
  31. 29 BEGIN
  32. 30 IF Init THEN
  33. 31 Dummy := CoreSig.signal(8, CoreSig.SigProcType(Handler));
  34. ***** ^ not supported yet
  35. ***** ^ not supported yet
  36. ***** ^ not supported yet
  37. ***** ^ not supported yet
  38. ***** ^ not supported yet
  39. ***** ^ not supported yet
  40. 32 END;
  41. 33 END EnableExceptionHandling;
  42. ***** ^ not supported yet
  43. 34
  44. 35 PROCEDURE DisableExceptionHandling;
  45. 36 BEGIN
  46. 37 IF Init THEN
  47. 38 Dummy := CoreSig.signal(8, CoreSig.SigProcType(OldHandler));
  48. ***** ^ not supported yet
  49. ***** ^ not supported yet
  50. ***** ^ not supported yet
  51. ***** ^ not supported yet
  52. ***** ^ not supported yet
  53. ***** ^ not supported yet
  54. 39 END;
  55. 40 END DisableExceptionHandling;
  56. ***** ^ not supported yet
  57. 41
  58. 42 PROCEDURE InstallHandler(H: FloatErrHandler);
  59. ***** ^ undeclared identifier
  60. 43
  61. 44 BEGIN
  62. 45 Handler := CoreSig.SigProcType(H);
  63. ***** ^ not supported yet
  64. ***** ^ not supported yet
  65. ***** ^ not supported yet
  66. ***** ^ not supported yet
  67. 46 OldHandler := CoreSig.signal(8, CoreSig.SigProcType(H));
  68. ***** ^ not supported yet
  69. ***** ^ not supported yet
  70. ***** ^ not supported yet
  71. ***** ^ not supported yet
  72. ***** ^ not supported yet
  73. ***** ^ not supported yet
  74. 47 Init := TRUE;
  75. 48 END InstallHandler;
  76. ***** ^ not supported yet
  77. 49
  78. 50 BEGIN
  79. 51 Init := FALSE;
  80. 52 END FloatExc.
  81. ***** ^ not supported yet
  82. 28 errors