(cedar-directory "Rope") (define-ref-type "Scheme" "Symbol") ROPE: TYPE ~ Rope.ROPE; (cedar-imports "CedarProcess") (define-enum-type "CedarProcess" "Priority" (background normal foreground excited real-time)) (define-proc (set-priority priority) "sets priority (background normal foreground excited real-time), returns old priority level" result _ SymbolForPriority[CedarProcess.GetPriority[]]; CedarProcess.SetPriority[ThePriority[priority]]; ) (cedar-imports "ThisMachine" "ProcessorFace") (define-proc (This-Machine-Name (namespace)) "Returns a string; namespace is 'arpa, 'xns, 'pup, ..." result _ StringFromRope[ThisMachine.Name[SELECT namespace FROM $arpa => $Arpa, $xns => $XNS, $pup => $Pup, undefined => NIL, ENDCASE => TheSymbol[namespace]]]; ) (define-proc (This-Machine-Address (namespace)) "Returns a string; namespace is 'arpa, 'xns, 'pup, ..." result _ StringFromRope[ThisMachine.Address[SELECT namespace FROM $arpa => $Arpa, $xns => $XNS, $pup => $Pup, undefined => NIL, ENDCASE => TheSymbol[namespace]]]; ) (define-proc (This-Machine-ID) "Returns a string like \"1-435-140-188\"" result _ StringFromRope[ThisMachine.ProcessorID[$Decimal]]; ) (define-proc (This-Machine-Type) "Returns 'sun3, 'sun4, ..." result ¬ ProcessorFace.GetProcessorTypeName[ProcessorFace.GetProcessorType[]]; ) (cedar-imports "SafeStorage") (define-proc (bytes-allocated) "number of words allocated since the beginning" RETURN [MakeFixnum[SafeStorage.CurrentByteCount[]]]; ) (define-proc (gc (trace-and-sweep?)) "call the garbage collector" SafeStorage.ReclaimCollectibleObjects[suspendMe: TRUE, traceAndSweep: traceAndSweepP=true]; ) (cedar-imports "ViewerTools") (define-proc (get-selection-contents) "Return the contents of the Tioga selection as a string." result _ StringFromRope[ViewerTools.GetSelectionContents[]]; ) ¨ CommandTool.mx Copyright Σ 1989, 1991 by Xerox Corporation. All rights reserved. Created by Michael Plass, April 11, 1989 3:29:11 pm PDT Michael Plass, January 30, 1992 2:34 pm PST Last changed by Pavel on April 2, 1990 3:18 pm PDT Documentation A completely bogus name, this has nothing to do with the CommandTool anymore. Just a few odds and ends ... Common types CedarProcess ThisMachine SafeStorage ViewerTools Κ•NewlineDelimiter –(mixmaster) style™codešœ™Kšœ Οeœ7™BKšœ7™7K™+K™2Ihead2™ Idefault™kL™ MšœΟnœ˜Mšœžœ˜#IcedaršΟkœŸœŸœ˜—™ Mšœ˜Mšœ]˜]šœž œ ˜$Mšœ\˜\Kšœ7˜7Kšœ0˜0Mšœ˜——™ Mšœ-˜-šœžœ ˜,Mšœ7˜7Kš œ)Ÿœ Ÿœ:ŸœŸœ˜ŸMšœ˜—šœžœ ˜/Mšœ7˜7Kš œ,Ÿœ Ÿœ:ŸœŸœ˜’Mšœ˜—šœžœ˜Mšœ)˜)Kšœ;˜;Mšœ˜—šœžœ˜ M˜K˜NMšœ˜——™ Mšœ˜˜Mšœ/˜/K•StartOfExpansion9[suspendMe: BOOL _ TRUE, traceAndSweep: BOOL _ FALSE]šŸœ.˜4Mšœ˜—šœžœ˜$Mšœ˜K–9[suspendMe: BOOL _ TRUE, traceAndSweep: BOOL _ FALSE]šœ1Ÿœ&˜[Mšœ˜——™ J˜J˜schemešœΟbœ˜%J˜9N˜