[613] | 1 | XINDX11 ;ISC/GRK - Create phantom routines for functions, options, etc. ;07/08/98 15:06
|
---|
| 2 | ;;7.3;TOOLKIT;**20,27**;Apr 25, 1995
|
---|
| 3 | W !,"The option and function files are being processed.",!
|
---|
| 4 | I INP(10)=9.4 G PKG
|
---|
| 5 | N KRN,TYPE ;Build file
|
---|
| 6 | S INDFN="^DD(""FUNC"",",INDRN="|func",INDD="Function",INDSB="FUNC",INDXN="Build file" D HDR
|
---|
| 7 | F KRN=0:0 S KRN=$O(^XPD(9.6,INDDA,"KRN",.5,"NM",KRN)) Q:KRN'>0 S INDXN=$P(^(KRN,0),U) D ENTRY
|
---|
| 8 | S INDFN="^DIC(19,",INDRN="|opt",INDD="Option",INDSB="OPT",INDXN="Build file" D HDR
|
---|
| 9 | F KRN=0:0 S KRN=$O(^XPD(9.6,INDDA,"KRN",19,"NM",KRN)) Q:KRN'>0 S INDXN=$P(^(KRN,0),U) D ENTRY
|
---|
| 10 | ;Routines
|
---|
| 11 | ;F KRN=0:0 S KRN=$O(^XPD(9.6,INDDA,"KRN",9.8,"NM",KRN)) Q:KRN'>0 S X=^(KRN,0) I '$P(X,U,3) S ^UTILITY($J,$P(X,U))=""
|
---|
| 12 | I $T(RTN^XTRUTL1)]"" D RTN^XTRUTL1(INDDA)
|
---|
| 13 | Q
|
---|
| 14 | PKG D NAMSP ;Package file
|
---|
| 15 | S INDFN="^DD(""FUNC"",",INDRN="|func",INDD="Function",INDSB="FUNC" D NAME
|
---|
| 16 | S INDFN="^DIC(19,",INDRN="|opt",INDD="Option",INDSB="OPT" D NAME
|
---|
| 17 | Q
|
---|
| 18 | NAME Q:'$D(@(INDFN_"""B"")"))
|
---|
| 19 | D HDR
|
---|
| 20 | S INDL=$E(INDXN,1,$L(INDXN)-1)_$C($A(INDXN,$L(INDXN))-1)_"z"
|
---|
| 21 | F A=0:0 S INDL=$O(@(INDFN_"""B"",INDL)")) Q:$P(INDL,INDXN,1)]""!(INDL="") F B=0:0 S B=$O(@(INDFN_"""B"",INDL,B)")) Q:B="" X INDF D:C8 @INDSB
|
---|
| 22 | I INDLC=2 K ^UTILITY($J,INDRN),^UTILITY($J,1,INDRN) Q
|
---|
| 23 | S ^UTILITY($J,1,INDRN,0,0)=INDLC
|
---|
| 24 | Q
|
---|
| 25 | NAMSP S INDXN=$P(^DIC(9.4,DA,0),"^",2),C9=0,INDXN(C9)="," F A=0:0 S A=$O(^DIC(9.4,DA,"EX",A)) Q:A'>0 I $D(^(A,0))#2 S C9=C9+1,INDXN(C9)=$P(^(0),"^")
|
---|
| 26 | S INDF="S C8=1 F H=1:1:C9 I $P(INDL,INDXN(H))="""" S C8=0 Q" ; Checks excluded namespaces
|
---|
| 27 | Q
|
---|
| 28 | HDR S INDLC=0,INDC=INDRN_" ; '"_INDXN_"' "_INDD_"s.",INDX=";" D ADD S ^UTILITY($J,INDRN)="",^UTILITY($J,1,INDRN,0,0)=0
|
---|
| 29 | Q
|
---|
| 30 | ENTRY F B=0:0 S B=$O(@(INDFN_"""B"",INDXN,B)")) Q:B="" D @INDSB
|
---|
| 31 | I INDLC=2 K ^UTILITY($J,INDRN),^UTILITY($J,1,INDRN) Q
|
---|
| 32 | S ^UTILITY($J,1,INDRN,0,0)=INDLC
|
---|
| 33 | Q
|
---|
| 34 | FUNC ;Process Function file entry
|
---|
| 35 | Q:'($D(^DD("FUNC",B,0))#2) S INDC=B_" ; "_$P(^(0),"^",1)_" - "_$S($D(^(9))#2:$E(^(9),1,190),1:""),INDX=$S($D(^(1))#2:^(1),1:";") D ADD
|
---|
| 36 | Q
|
---|
| 37 | OPT ;Process option file entry for MUMPS code
|
---|
| 38 | Q:'$D(^DIC(19,B,0)) S T=$P(^(0),"^",4),INDC=B_" ; "_$P(^(0),"^",1)_" - "_$P(^(0),"^",2)_" ("_$P($P($P(^DD(19,4,0),"^",3),T_":",2),";",1)_")"_$S($P(^DIC(19,B,0),"^",6)]"":" - Locked by "_$P(^(0),"^",6),1:""),INDX="" D ADD
|
---|
| 39 | S INDN="15,20,26,"_$S(T="E":"34,35,54",T="I":"34,35",T="P":"69,69.1,69.2,69.3,71,72,73",T="R":25,1:"") D OPTC:INDN
|
---|
| 40 | Q
|
---|
| 41 | OPTC F J=1:1 S H=$P(INDN,",",J) Q:H="" I $D(^DIC(19,B,H))#2 D
|
---|
| 42 | . S %=^(H),INDX=$S(H'=25:%,1:"D "_$E("^",%'["^")_$P(%,"[")),INDC=" ; "_$P(^DD(19,H,0),"^",1) D ADD
|
---|
| 43 | Q
|
---|
| 44 | ADD ;Put code in UTILITY for processing
|
---|
| 45 | S INDLC=INDLC+1,^UTILITY($J,1,INDRN,0,INDLC,0)=INDC I INDX]"" S INDLC=INDLC+1,^UTILITY($J,1,INDRN,0,INDLC,0)=" "_INDX
|
---|
| 46 | Q
|
---|