Skip to content

Commit

Permalink
Merge pull request #7 from mkromberg/getDRC
Browse files Browse the repository at this point in the history
Fix Mantis 18885
  • Loading branch information
mkromberg authored Feb 27, 2021
2 parents 38bcac4 + cdeba20 commit 1cfd016
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions Source/ynys/getDRC.dyalog
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
getDRC{
#: if not # it must exist
9=#.⎕NC'DRC':#.DRC in # already?
wsaddWSpath'conga.dws' dyalog WS
0::#.DRC this is result
z{}'DRC'#.⎕CY ws ⎕CY no result
}
rgetDRC ref;ws
:If ref# rref Not set, so we must create it
:ElseIf 9=#.⎕NC'DRC' r#.DRC in # already?
:Else
ws'conga.dws'
:Trap 0
'DRC'#.⎕CY ws See if the interpreter can find it
:Else
wsaddWSpath'conga.dws' Actually adds [DYALOG]/ws
:Trap 0
'DRC'#.⎕CY ws
:Else
'Unable to locate conga.dws'⎕SIGNAL 11
:EndTrap
:EndTrap
r#.DRC
:EndIf

0 comments on commit 1cfd016

Please sign in to comment.