Enhance RTNDIR^ZOSVGUX() to handle more forms of $ZROutines
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenVista/GT.M Integration |
Fix Released
|
High
|
jeff.apple |
Bug Description
Attached please find a modified ZOSVGUX.m. This modifies the entryref RTNDIR^ZOSVGUX() to handle virtually all cases for the GT.M source directory than the more restrictive forms that current ZOSVGUX.m handles. See test cases below. Notice that comments excepted, this is a one-line change, and this is upward compatible. The only case this will not handle is if the first "directory" in $ZRO is actually a shared library.
I make no claim of copyright to the change.
Regards
-- Bhaskar
-------
$ mumps -dir
GTM>w $ZRO," : ",$$RTNDIR^
. /opt/lsb-
GTM>S $ZRO="/
/opt/lsb-
GTM>S $ZRO=".
.(/opt/
GTM>S $ZRO=".
w $ZRO," : ",$$RTNDIR^
.(/opt/
/opt/WorldVistA
GTM>S $ZRO=".
w $ZRO," : ",$$RTNDIR^
.(/opt/
/opt/WorldVistA
GTM>h
kbhaskar@
23,25c23,27
< RTNDIR() ; primary routine source directory
< ;Assume /home/xxx/
< Q $P($S($
---
> RTNDIR() ; first routine source directory
> ; If $ZRO is a single directory, e.g., xxx, returns that directory, e.g., xxx/
> ; If $ZRO is of the form xxx yyy ... returns xxx/
> ; If $ZRO is of the form www(xxx) ... or www(xxx yyy) ... returns xxx/
> Q $P($S(($F($ZRO_" "," ")>$F($
kbhaskar@
-------
Related branches
Changed in openvista-gtm-integration: | |
assignee: | nobody → jeff-apple |
importance: | Undecided → High |
status: | New → Fix Committed |
Changed in openvista-gtm-integration: | |
milestone: | none → phase-1-alpha |
Changed in openvista-gtm-integration: | |
status: | Fix Committed → Fix Released |