- - - - JUNK
AddNewVer: PROC [i,j: Point];
AddNewPara: PROC [i,j,k,l: Point];
AddNewPerp: PROC [i,j,k,l: Point];
AddNewCong: PROC [i,j,k,l: Point];
AddNewAt: PROC [p: Point, x, y: REAL];
AddNewCcw: PROC [i,j,k: Point];
ConstrPtr: TYPE = REF ConstrRec; -- to some kind of constraint record
ConstrList: TYPE = REF ConstrPtr; -- linked by link field.
NewHor: PROC [i,j: Point] RETURNS [ap: ApplPtr];
NewVer: PROC [i,j: Point] RETURNS [ap: ApplPtr];
NewPara: PROC [i,j,k,l: Point] RETURNS [ap: ApplPtr];
NewPerp: PROC [i,j,k,l: Point] RETURNS [ap: ApplPtr];
NewCong: PROC [i,j,k,l: Point] RETURNS [ap: ApplPtr];
NewAt: PROC [p: Point, x, y: REAL] RETURNS [ap: ApplPtr];
NewCcw: PROC [i,j,k: Point] RETURNS [ap: ApplPtr];
DeleteConstr:
PROC [c, cAnt: ConstrPtr, list: ConstrList]
RETURNS [newList: ConstrList];
Deletes the constraint c from the list. If cAnt is not NIL, it should be the previous constraint in list.
InsertConstr:
PROC [c, cAnt: ConstrPtr, list: ConstrList]
RETURNS [newList: ConstrList];
Inserts the constraint c into the list, just after cAnt (if cAnt=NIL inserts at beginning)
GcConstr:
PROC[pf, pl: ConstrList];
Garbage-collects all elements in the list starting with pf and ending with pl.
ActionPtr: TYPE = REF ActionRec; -- to some kind of action record
ActionList: TYPE = RECORD
[first, last: ActionPtr]; -- linked by link field in chronological (painting) order.;
ActionRec: TYPE = RECORD
[link: ActionPtr,
op: ATOM, -- operation (usually atom, the function name)
larg, rarg: Alg.Value ← NIL -- left- and right-arguments
];
NewAction: PROC [op: Alg.Se, arg: Alg.Value] RETURNS [ap: ActionPtr];
DeleteAction:
PROC [a, aAnt: ActionPtr, list: ActionList]
RETURNS [newList: ActionList];
Deletes the action a from the list. If aAnt is not NIL, it should be the previous action in list.
InsertAction:
PROC [a, aAnt: ActionPtr, list: ActionList]
RETURNS [newList: ActionList];
Inserts the action a into the list, just after aAnt (if aAnt=NIL inserts at beginning)
GcAction:
PROC[af, al: ActionPtr];
Garbage-collects all elements in the list starting with a and ending with al.