-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from mkromberg/getDRC
Fix Mantis 18885
- Loading branch information
Showing
1 changed file
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? | ||
ws←addWSpath'conga.dws' ⍝ dyalog WS | ||
0::⊢#.DRC ⍝ this is result | ||
z←{}'DRC'#.⎕CY ws ⍝ ⎕CY no result | ||
⍝ | ||
} | ||
r←getDRC ref;ws | ||
:If ref≠# ⋄ r←ref ⍝ 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 | ||
ws←addWSpath'conga.dws' ⍝ Actually adds [DYALOG]/ws | ||
:Trap 0 | ||
'DRC'#.⎕CY ws | ||
:Else | ||
'Unable to locate conga.dws'⎕SIGNAL 11 | ||
:EndTrap | ||
:EndTrap | ||
r←#.DRC | ||
:EndIf |