|
1 | 1 | options←ExtractLinkOptions config;C;overWrite |
| 2 | +⍝ This is slowly going to disappear because Link 4.0 will come with its own set of features |
| 3 | +⍝ for setting Link parameters. |
2 | 4 | options←⎕SE.Link.U.DefaultOpts ⎕NS'' |
3 | 5 | C←config.LINK |
4 | 6 | overWrite←{0=≢⍵:⍺ ⋄ ⍵} |
5 | | - options.arrays(overWrite)←C.arrays |
6 | | - options.beforeRead(overWrite)←C.beforeRead |
7 | | - options.beforeWrite(overWrite)←C.beforeWrite |
8 | | - options.caseCode(overWrite)←C.caseCode |
9 | | - options.codeExtensions(overWrite)←C.codeExtensions |
10 | | - options.fastLoad(overWrite)←C.fastLoad |
11 | | - options.flatten(overWrite)←C.flatten |
12 | | - options.forceExtensions(overWrite)←C.forceExtensions |
13 | | - options.forceFilenames(overWrite)←C.forceFilenames |
14 | | - options.getFilename(overWrite)←C.getFilename |
15 | | - options.typeExtensions(overWrite)←↑C.typeExtensions |
16 | | - options.watch←C.watch |
17 | | - options.fastLoad←config.LINK.fastLoad |
| 7 | + :If 0<C.⎕NC'arrays' |
| 8 | + options.arrays(overWrite)←C.arrays |
| 9 | + :EndIf |
| 10 | + :If 0<C.⎕NC'beforeRead' |
| 11 | + options.beforeRead(overWrite)←C.beforeRead |
| 12 | + :EndIf |
| 13 | + :If 0<C.⎕NC'beforeWrite' |
| 14 | + options.beforeWrite(overWrite)←C.beforeWrite |
| 15 | + :EndIf |
| 16 | + :If 0<C.⎕NC'caseCode' |
| 17 | + options.caseCode(overWrite)←C.caseCode |
| 18 | + :EndIf |
| 19 | + :If 0<C.⎕NC'codeExtensions' |
| 20 | + options.codeExtensions(overWrite)←C.codeExtensions |
| 21 | + :EndIf |
| 22 | + :If 0<C.⎕NC'fastLoad' |
| 23 | + options.fastLoad(overWrite)←C.fastLoad |
| 24 | + :EndIf |
| 25 | + :If 0<C.⎕NC'flatten' |
| 26 | + options.flatten(overWrite)←C.flatten |
| 27 | + :EndIf |
| 28 | + :If 0<C.⎕NC'forceExtensions' |
| 29 | + options.forceExtensions(overWrite)←C.forceExtensions |
| 30 | + :EndIf |
| 31 | + :If 0<C.⎕NC'forceFilenames' |
| 32 | + options.forceFilenames(overWrite)←C.forceFilenames |
| 33 | + :EndIf |
| 34 | + :If 0<C.⎕NC'getFilename' |
| 35 | + options.getFilename(overWrite)←C.getFilename |
| 36 | + :EndIf |
| 37 | + :If 0<C.⎕NC'typeExtensions' |
| 38 | + options.typeExtensions(overWrite)←↑C.typeExtensions |
| 39 | + :EndIf |
| 40 | + :If 0<C.⎕NC'watch' |
| 41 | + options.watch←C.watch |
| 42 | + :EndIf |
| 43 | + :If 0<C.⎕NC'fastLoad' |
| 44 | + options.fastLoad←config.LINK.fastLoad |
| 45 | + :EndIf |
0 commit comments