Changeset 155 for ccr/trunk/p/GPLXPATH.m
- Timestamp:
- Sep 21, 2008, 5:10:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/GPLXPATH.m
r149 r155 50 50 Q 51 51 ; 52 PUSHA(ADEST,ASRC) ; PUSH ASRC ONTO ADEST, BOTH PASSED BY NAME 53 ; 54 N ZGI 55 F ZGI=1:1:@ASRC@(0) D ; FOR ALL OF THE SOURCE ARRAY 56 . D PUSH(ADEST,@ASRC@(ZGI)) ; PUSH ONE ELEMENT 57 Q 58 ; 52 59 MKMDX(STK,RTN) ; MAKES A MUMPS INDEX FROM THE ARRAY STK 53 ; RTN IS SET TO //FIRST/SECOND/THIRD "FOR THREE ARRAY ELEMENTS60 ; RTN IS SET TO //FIRST/SECOND/THIRD FOR THREE ARRAY ELEMENTS 54 61 S RTN="" 55 62 N I … … 420 427 Q 421 428 ; 429 H2ARY(IARYRTN,IHASH) ; CONVERT IHASH TO RETURN ARRAY 430 ; 431 N H2I S H2I="" 432 ; W $O(@IHASH@(H2I)),! 433 F S H2I=$O(@IHASH@(H2I)) Q:H2I="" D ; FOR EACH ELEMENT OF THE HASH 434 . ; W H2I_"^"_@IHASH@(H2I),! 435 . D PUSH(IARYRTN,H2I_"^"_@IHASH@(H2I)) 436 . ; W @IARYRTN@(0),! 437 Q 438 ; 422 439 TEST ; Run all the test cases 423 440 D TESTALL^GPLUNIT("GPLXPAT0")
Note:
See TracChangeset
for help on using the changeset viewer.