User Tools

Site Tools


cdc:nos2.source:nam5871:bldkwl

BLDKWL

Table Of Contents

  • [00006] PROC BLDKWL1)
  • [00024] PROC MGETS
  • [00025] PROC XTRACE

Source Code

BLDKWL.txt
  1. *DECK BLDKWL
  2. USETEXT NIPDEF
  3. USETEXT KSTTAB
  4. USETEXT KDIS
  5.  
  6. PROC BLDKWL((TYPE),(NUMBER1),(NUMBER2),(ID)); # FORMAT KWL #
  7.  
  8. STARTIMS;
  9. STOPIMS;
  10.  
  11. #
  12.   INPUT PARAMETERS
  13. #
  14. ITEM TYPE S:KST; # STATUS DISPLAY BUFFER TYPE #
  15. ITEM NUMBER1; # INDEX NUMBER 1, TERMINAL NODE NUMBER #
  16. ITEM NUMBER2; # INDEX NUMBER 2 #
  17. ITEM ID; # BUFFER IDENTIFIER #
  18. ITEM I; # INDUCTION VARIABLE #
  19. #
  20.   EXTERNAL REFERENCES
  21. #
  22. XREF
  23. BEGIN
  24. PROC MGETS; # GET BUFFER #
  25. PROC XTRACE; # TRACE CALL #
  26. END
  27. #
  28.   LOCAL VARIABLES
  29. #
  30. ITEM BUFADDR; # BUFFER ADDRESS FOR KWL #
  31.  
  32. CONTROL EJECT;
  33.  
  34. BEGIN # BLDKWL #
  35.  
  36. CONTROL IFEQ DEBUG,1;
  37. XTRACE("BDKWL"); # TRACE CALL #
  38. CONTROL FI;
  39.  
  40. MGETS(L$KWL,BUFADDR,TRUE); # GET BUFFER FOR KWL #
  41. P<KWL> = LOC(KWLPTR[0]);
  42. FOR I=I WHILE KWL$NEXT[0] NQ 0
  43. DO # SCAN FOR END OF KWL LIST #
  44. BEGIN
  45. P<KWL> = KWL$NEXT[0];
  46. IF ID EQ KDELIDVALUE # REQUEST TO DELETE STATUS DISPLAY ENTRY #
  47. AND KWL$ID[0] EQ KDELIDVALUE # QUEUED KWL IS A DELETE ENTRY #
  48. AND KWL$TYPE[0] EQ TYPE # DELETE SAME TYPE OF ENTRY #
  49. AND KWL$KNDX[0] LS NUMBER1 # LINE INDEX BELOW THAT OF REQUEST#
  50. THEN # DECREMENT LINE INDEX TO DELETE BY 1 TO ADJUST FOR KDEL #
  51. NUMBER1 = NUMBER1 - 1;
  52. END
  53. KWL$NEXT[0] = BUFADDR;
  54.  
  55. P<KWL> = BUFADDR; # FWA OF KWL #
  56. KWL$ID[0] = ID; # SET BUFFER IDENTIFIER #
  57. KWL$TYPE[0] = TYPE; # SET STATUS DISPLAY BUFFER TYPE #
  58. KWL$TN[0] = NUMBER2;
  59. KWL$HN[0] = NUMBER1;
  60.  
  61. RETURN;
  62. END
  63. TERM
1)
TYPE),(NUMBER1),(NUMBER2),(ID
cdc/nos2.source/nam5871/bldkwl.txt ยท Last modified: 2023/08/05 17:21 by Site Administrator