home *** CD-ROM | disk | FTP | other *** search
- %clibi.ccc
- *$Header$
- *$Log$
- **************
- *10-JUN-90
- * continous macro (from clib.ccc)
- :a
- mess select/deselect combination in square OR pick option
- sbreset
- gete i1
- unshow i1
- c9='i'
- :A
- ovl clibinp
- if r1 eq 0 :a
- :x
- if r1 eq 1 :1
- if r1 eq 2 :2
- if r1 eq 3 :3
- if r1 eq 4 :4
- if r1 eq 6 :6
- if r1 eq 7 :7
- if r1 eq 99 :v
- if r1 eq 901 :q
- if r1 eq 902 :s
- if r1 eq 903 :d
- if r1 eq 904 :$
- if r1 eq 905 :c
- if r1 eq 906 :e
- if r1 eq 907 :j
- if r1 eq 908 :+
- if r1 eq 910 :a
- :X
- mess System Error (CLIBINP, option ' #c9 1 ', rc= #r1 )
- getwe
- goto :z
- :1
- mess Error in entity indication
- getwe
- goto :a
- :2
- mess Error reading $C$LIB
- getwe
- goto :z
- :3
- mess Error in $C$LIB data
- getwe
- goto :z
- :4
- mess Error marking selection in $C$LIB
- getwe
- goto :z
- :6
- mess cannot unselect a default - reassign it first
- getwe
- goto :a
- :7
- mess cannot delete a default - reassign it first
- getwe
- goto :a
- :v
- mess Error, no valid end-condition in this square - cannot be selected
- getwe
- goto :a
- :q
- mess confirm quitting ? <n>
- r1=0;def 'n'
- getyn r1
- if r1 eq 0 :a
- goto :Z
- :c
- *Add a square
- mess confirm accepting the combination ?
- getyn r1
- if r1 eq 0 :a
- :D
- c211 40 = ' '
- mess Combination description (1-40 char., no spaces), <ENTER>-no description
- *getc c211 40
- r37=0
- r38=40
- r39=211
- r1=0
- ovl getc
- if r1 ne 0 :D
- if z24 ne 2 :W
- c9='a'
- ovl clibinp
- if r1 ne 0 :X
- :W
- c9='a'
- r1=0
- ovl clibmake
- if r1 ne 0 :E
- if z24 eq 2 :S
- z24=0
- goto :a
- :E
- mess System Error (CLIBMAKE, option ' #c9 1 ', rc= #r1 )
- getwe
- goto :z
- :$
- mess default combination
- sbreset
- gete i1
- mess confirm choice ?
- getyn r1
- unshow i1
- if r1 eq 0 :$
- c9='$'
- ovl clibinp
- if r1 gt 99 :a
- if r1 ne 0 :x
- goto :a
- :d
- mess combination to delete
- sbreset
- gete i1
- mess confirm choice ?
- getyn r1
- unshow i1
- if r1 eq 0 :d
- c9='D'
- ovl clibinp
- if r1 gt 99 :a
- if r1 ne 0 :x
- goto :a
- :s
- mess confirm saving ? <y>
- r1=1;def 'y'
- getyn r1
- if r1 eq 0 :a
- if z24 eq 0 :S
- mess last changes will be lost, accept them ?
- getyn r1
- if r1 eq 0 :S
- z24 = 2
- goto :D
- :S
- ovl clibsave
- if r1 eq 0 :Z
- mess System Error (CLIBSAVE, rc= #r1 )
- getwe
- goto :z
- :e
- macro clibe
- :j
- macro clibj
- :+
- if i9 eq 0 :n
- macro clibw
- :n
- macro clibn
- :Z
- c1='*'
- ovl open
- mess edit combinations for another opening ?
- getyn r1
- if r1 eq 0 :z
- r6=0
- r7=0
- r8=0
- r9=0
- r3=101
- r1 =r1-2
- c10=c150
- c11=c151
- c12=c152
- c13=c153
- c14=c154
- c15=c155
- c16=c156
- c17=c157
- macro clib
- :z
- macro rslib
-