DIRECTORY CD, CDGenerate, Rope, SymTab; CDGenerateBackdoor: CEDAR DEFINITIONS = BEGIN Context: TYPE = CDGenerate.Context; IGeneratorProc: TYPE = PROC [design: CD.Design, key: Rope.ROPE, passContext, realContext: Context] RETURNS [ob: CD.Object_NIL]; SelectorProc: TYPE = PROC [context: Context, label: Rope.ROPE] RETURNS [key: Rope.ROPE_NIL]; CreateIndirect: PROC [onTopOf: Context, iGenerator: IGeneratorProc, selector: SelectorProc _ NIL, cache: BOOL _ TRUE, flushThrough: BOOL _ TRUE, clearThrough: BOOL _ TRUE, registerThrough: BOOL _ TRUE] RETURNS [context: Context]; Indiretee: PROC [context: Context] RETURNS [Context]; FetchIndirect: PROC [passContext, realContext: Context, design: CD.Design, key: Rope.ROPE, cache: BOOL _ FALSE] RETURNS [ob: CD.Object]; publicContexts: SymTab.Ref; END. .CDGenerateBackdoor.mesa (part of ChipNDale) Copyright c 1985 by Xerox Corporation. All rights reserved. Created by Christian Jacobi, June 5, 1985 8:02:35 pm PDT Last edited by: Christian Jacobi, October 20, 1986 12:49:15 pm PDT Allows to do more stuff with the CDGenerate Contexts. --calls to context will be indirected to calls of iGenerator. --iGenerator will get onTopOf as realContext field, so it can call again using FetchIndirect... --set selector to CDGenerate.SelectOneOf if selector should propagate indirectly to onTopOf --NIL if not indirect --Like FetchNCall except: --passContext: will be passed trough as parameter to generator only --realContext: context to be really called. --To be called from indirection generators --space for contexts to be returned or created using AssertContext Κ©˜codešœ+™+Kšœ Οmœ1™