mirror of
https://github.com/PDP-10/its.git
synced 2026-02-03 23:32:51 +00:00
968 lines
41 KiB
Plaintext
Executable File
968 lines
41 KiB
Plaintext
Executable File
!* -*-TECO-*-!
|
||
|
||
!Make Prefix Character:! !C Make definition for a ^R command prefix.
|
||
For usage conventions, look at the source code.!
|
||
|
||
!* Takes as string arg the name of a q-register, and
|
||
returns a consed up function which, when run, will
|
||
use the common prefix-handler in q-reg .P
|
||
to dispatch through the q-vector assumed to be
|
||
in the specified q-reg. Also puts a suitable q-vector
|
||
in that q-reg if it contains 0. In that case, a numeric arg
|
||
specifies the length of the q-vector (default is 96).
|
||
Example: MMMAKE PREFIX CHARACTER.X U.^RX
|
||
makes ^X a prefix character with dispatch table in Q.X.!
|
||
|
||
:I*[0 !* Get our string arg!
|
||
Q0 "E F"E+96'*5FS Q VECTOR U0' !* Q-reg is 0 =) put a qvector in it!
|
||
@:I0/!PREFIX! F@:M(Q0 M.P)/ !* Cons and return the function!
|
||
Q0
|
||
|
||
!& Macro Name:! !S Given an object, returns its full name.
|
||
The object should be given as a prefix arg, and
|
||
the name is returned as a string pointer.!
|
||
[2 [3 [4
|
||
fp-101"e !* If function is impure, search through TECO variables!
|
||
q:..q(0)u2 !* for one whose value is this function.!
|
||
:fo..qMM_ |