Nice.mesa
Last Edited by: Swinehart, May 9, 1986 10:52:28 am PDT
Optional utilities whose absences do not cause Unbound Imports or crashes.
DIRECTORY Atom, IO, Rope, Pup;
Nice: CEDAR DEFINITIONS IMPORTS Atom = {
BeNiceProc: TYPE = PROC[r: REF, d: INT𡤆, how: ATOM, howD: REF];
BeNice: BeNiceProc = INLINE {
vr: REF = Atom.GetProp[$Interfaces, $BeNice];
v: REF BeNiceProc = NARROW[vr, REF BeNiceProc];
IF v#NIL THEN v[r, d, how, howD];
};
LarkConLogStreamProc: -- == LarkControl.GetLogStreamProc -- TYPE =
PROC[netAddress: Pup.Address] RETURNS [log: IO.STREAM←NIL];
LarkConLogStream: LarkConLogStreamProc = INLINE {
vr: REF = Atom.GetProp[$Interfaces, $GetLogStreamProc];
v: REF LarkConLogStreamProc = NARROW[vr, REF LarkConLogStreamProc];
IF v#NIL THEN log ← v[netAddress];
};
ViewProc: TYPE= PROC[r: REF, name: Rope.ROPENIL];
View: ViewProc = INLINE {
vr: REF = Atom.GetProp[$Interfaces, $View];
v: REF ViewProc = NARROW[vr, REF ViewProc];
IF v#NIL THEN v[r, name];
};
Debugging use only
ViewOne: PROC[r: REF, name: Rope.ROPENIL, iconic: BOOLFALSE];
Ref: UNSAFE PROC[whatever: LONG CARDINAL] RETURNS [REF];
}.