User Tools

Site Tools


cdc:nos2.source:nam5871:delcdr

DELCDR

Table Of Contents

  • [00006] PROC DELCDR1)
  • [00046] PROC XTRACE

Source Code

DELCDR.txt
  1. *DECK DELCDR
  2. USETEXT NIPDEF
  3. USETEXT ACNB
  4. USETEXT ACB
  5. USETEXT AT
  6. PROC DELCDR((ACNBFWA)); # DELINK ACNB FROM CONNECTION DATA RING #
  7. STARTIMS ;
  8. #
  9. *1DC DELCDR
  10. * 1. PROC NAME AUTHOR DATE
  11. * DELCDR E. GEE 85/04/02
  12. *
  13. * 2. FUNCTIONAL DESCRIPTION.
  14. * DELINK ACNB FROM THE CONNECTION DATA RING.
  15. *
  16. * 3. METHOD.
  17. * DELINK THE ACNB FROM THE CONNECTION DATA RING.
  18. * IF ACB POINTS TO THIS ACNB,
  19. * UPDATE ACB T POINT TO NEXT ACNB IN CONNECTION DATA RING.
  20. *
  21. * 4. ENTRY PARAMETERS.
  22. * ACNBFWA ADDRESS OF ACNB TO BE DELINKED
  23. *
  24. * 5. EXIT PARAMETERS.
  25. * NONE.
  26. *
  27. * 6. COMDECKS CALLED.
  28. * ACB APPLICATION CONTROL BLOCK
  29. * ACNB APPLICATION CONNECTION BLOCK
  30. * AT APPLICATION TABLE
  31. * NIPDEF CONSTANT DEFINITIONS
  32. *
  33. * 7. ROUTINES CALLED.
  34. * XTRACE TRACE PROCEDURE CALL
  35. *
  36. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION.
  37. * NONE
  38. *
  39.  #
  40. STOPIMS;
  41. #
  42.   EXTERNAL REFERENCES
  43. #
  44. XREF
  45. BEGIN
  46. PROC XTRACE;
  47. END
  48. #
  49.   FORMAL PARAMETERS
  50. #
  51. ITEM ACNBFWA U; # FWA OF ACNB TO BE DELINKED #
  52. #
  53.   LOCAL VARIABLES
  54. #
  55. ITEM CDRBP U; # CDR BACK POINTER #
  56. ITEM CDRFP U; # CDR FORWARD POINTER #
  57. CONTROL EJECT;
  58.  
  59. BEGIN # BEGIN DELCDR #
  60.  
  61. CONTROL IFEQ DEBUG,1;
  62. XTRACE("DECDR");
  63. CONTROL FI;
  64.  
  65. P<ACNB> = ACNBFWA; # FWA OF ACNB TO BE DELINKED #
  66. P<ACB> = ATACBA[ACNBAN[0]]; # FWA OF ACB #
  67. CDRFP = ACNBCDRFP[0]; # NEXT ACNB IN CDR #
  68. CDRBP = ACNBCDRBP[0]; # PREVIOUS ACNB IN CDR #
  69. ACNBCDRFP[0] = 0; # CLEAR CDR POINTERS #
  70. ACNBCDRBP[0] = 0;
  71. P<ACNB> = 0; # DELINK REMOVED ACNB FROM CDR #
  72. IF CDRFP EQ ACNBFWA
  73. THEN # ONLY ACNB LEFT IN CDR #
  74. BEGIN
  75. ACBCDRP[0] = 0; # CLEAR CDR POINTER IN ACB #
  76. END
  77. ELSE # RELINK CDR AROUND DELINKED ONE#
  78. BEGIN
  79. ACNBCDRFP[CDRBP] = CDRFP;
  80. ACNBCDRBP[CDRFP] = CDRBP;
  81. IF ACNBFWA EQ ACBCDRP[0]
  82. THEN # ACNB IS POINTED TO BY ACB #
  83. BEGIN
  84. ACBCDRP[0] = CDRFP; # NEW ACNB POINTED TO BY ACB #
  85. END
  86. END
  87.  
  88. RETURN;
  89.  
  90. END # END DELCDR #
  91. TERM
1)
ACNBFWA
cdc/nos2.source/nam5871/delcdr.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator