User Tools

Site Tools


cdc:nos2.source:nam5871:hrelpwl

HRELPWL

Table Of Contents

  • [00006] PROC HRELPWL
  • [00050] PROC MRELS
  • [00051] PROC XTRACE

Source Code

HRELPWL.txt
  1. *DECK HRELPWL
  2. USETEXT NIPDEF
  3. USETEXT ACB
  4. USETEXT APPSTAT
  5. USETEXT FREETAB
  6. PROC HRELPWL; # RELEASE USED PORTION OF THE NWL #
  7.  
  8. STARTIMS;
  9. #
  10. *1DC HRELPWL
  11. *
  12. * 1. PROC NAME AUTHOR DATE
  13. * HRELPWL P.C.TAM 78/03/15
  14. *
  15. * 2. FUNCTIONAL DESCRIPTION.
  16. * RELEASE USED PORTION OF THE WORKLIST.
  17. *
  18. * 3. NETHOD USED.
  19. * GET FIRST WORD ADDRESS OF BLOCK TO BE RELEASED FROM ACBWLFWA.
  20. * GET LAST WORD ADDRESS OF BLOCK FROM WLADDR.
  21. * SET BLKSIZE.
  22. * RELEASE BLOCK.
  23. * UPDATE ACBWLFWA TO NEXT WORKLIST ENTRY
  24. *
  25. * 4. ENTRY PARAMETERS.
  26. * NEXTWLA ADDRESS OF NEXT NWL ENTRY
  27. * ACBADDR ACB ADDRESS OF CURRENT APPLICATION
  28. * WLADDR ADDRESS OF CURRENT NWL ENTRY
  29. *
  30. * 5. EXIT PARAMETERS.
  31. * NONE.
  32. *
  33. * 6. COMDECKS CALLED AND SYMPL TEXTS USED.
  34. * APPSTAT FREETAB NIPDEF ACB
  35. *
  36. * 7. ROUTINES CALLED.
  37. * MRELS RETURN BLOCK TO FREE BUFFER CHAIN
  38. * XTRACE DEBUG TRACE
  39. *
  40. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION.
  41. * THIS PROCEDURE IS CALLED BY HPGTF,HPPUT, AND KHOPDIS.
  42. *
  43.  #
  44. STOPIMS;
  45. #
  46.   EXTERNAL VARIABLES
  47.   #
  48. XREF
  49. BEGIN
  50. PROC MRELS;
  51. PROC XTRACE; # SAVE RETURN ADDRESS #
  52. END
  53. #
  54.   INTERNAL VARIABLES
  55.   #
  56. ITEM TEMP;
  57.  
  58. # *********************************************************************#
  59.  
  60. BEGIN
  61.  
  62. CONTROL IFEQ DEBUG,1;
  63. XTRACE("HRELP") ;
  64. CONTROL FI;
  65.  
  66. P<ACB> = ACBADDR;
  67. P<FREEBUF> = ACBWLFWA[0]; # SET NWL ADDRESS #
  68. TEMP = WLADDR - P<FREEBUF>; # GET SIZE #
  69. IF TEMP NQ 0
  70. THEN # THERE IS USED WLL PORTION #
  71. BEGIN
  72. FRBBS[0] = TEMP; # SET BLOCK SIZE #
  73. MRELS(P<FREEBUF>); # RELEASE UNUSED PORTION #
  74. END
  75. P<FREEBUF> = NEXTWLA; # SET BASE TO NEW NWL PORTION #
  76. FRBID[0] = NWLEIDVALUE; # SET ID OF NWL ENTRY #
  77. ACBWLFWA[0] = NEXTWLA;
  78. END # HRELPWL #
  79. TERM
cdc/nos2.source/nam5871/hrelpwl.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator