User Tools

Site Tools


cdc:nos2.source:nam5871:hrelwwl

HRELWWL

Table Of Contents

  • [00007] PROC HRELWWL
  • [00048] PROC MRELS
  • [00049] PROC XTRACE

Source Code

HRELWWL.txt
  1. *DECK HRELWWL
  2. USETEXT NIPDEF
  3. USETEXT ACB
  4. USETEXT APPSTAT
  5. USETEXT FREETAB
  6. USETEXT NWLHEAD
  7. PROC HRELWWL; # RELEASE WHOLE NWL #
  8.  
  9. STARTIMS;
  10. #
  11. *1DC HRELWWL
  12. *
  13. * 1. PROC NAME AUTHOR DATE
  14. * HRELWWL P.C.TAM MARCH 15, 1978
  15. *
  16. * 2. FUNCTIONAL DESCRIPTIONS
  17. * RELEASE UNFRAGMENTED WORK LIST IF POSSIBLE
  18. *
  19. * 3. METHOD USED.
  20. * GET SIZE OF NWL FROM ACBWLLWA AND ACBWLFWA.
  21. * RELEASE THE NWL IF SIZE IS NOT ZERO.
  22. * SET ACBWLFWA, ACBWLADR, ACBWLLWA TO ZERO.
  23. *
  24. * 4. ENTRY PARAMETERS.
  25. * ACBADDR ACB ADDRESS OF THE APPLICATION IN PROCESS
  26. *
  27. * 5. EXIT PARAMETERS.
  28. * NONE.
  29. *
  30. * 6. COMDECKS CALLED AND SYMPL TEXTS USED.
  31. * ACB APPSTAT FREETAB NIPDEF
  32. *
  33. * 7. ROUTINES CALLED.
  34. * MRELS RELEASE BLOCK TO FREE CHAIN
  35. * XTRACE DEBUG TRACE OPTION
  36. *
  37. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION.
  38. * THIS PROCEDURE IS CALLED BY HPAWL,HPUTF,HRDPUT, AND HWLP.
  39. *
  40.  #
  41. STOPIMS;
  42.  
  43. #
  44.   EXTERNAL VARIABLES
  45.   #
  46. XREF
  47. BEGIN
  48. PROC MRELS; # RETURN BLOCK TO FREE CHAIN POOL #
  49. PROC XTRACE; # SAVE RETURN ADDRESS #
  50. END
  51.  
  52. #
  53.   INTERNAL VARIABLES
  54.   #
  55. ITEM
  56. TEMP;
  57.  
  58. # *********************************************************************#
  59.  
  60. BEGIN
  61.  
  62. CONTROL IFEQ DEBUG,1;
  63. XTRACE("HRELW") ;
  64. CONTROL FI;
  65.  
  66. P<ACB> = ACBADDR;
  67. P<FREEBUF> = ACBWLFWA[0]; # SET BASE ADDR OF NWL #
  68. TEMP = ACBWLLWA[0] - P<FREEBUF> + 1; # SIZE OF NWL #
  69. IF TEMP NQ 0 # STILL HAVE SPACE TO RELEASE #
  70. AND P<FREEBUF> NQ 0 # NWL BUFFER NOT RELEASE YET #
  71. THEN
  72. BEGIN
  73. FRBBS[0] = TEMP;
  74. MRELS(P<FREEBUF>);
  75. END
  76. ACBNWLWD[0] = 0; # CLEAR NWL POINTER WORD IN ACB #
  77. END # HRELWWL #
  78. TERM
cdc/nos2.source/nam5871/hrelwwl.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator