IF Runtime.IsBound[RopeFile.SubstrCreate]
AND UserProfile.Boolean["VersionMap.UseRopeFile", FALSE] THEN {
vmapImplTV: TV = BBContext.GlobalFrameSearch[NIL, "VersionMapImpl"].tv;
vmapDefImplTV: TV = BBContext.GlobalFrameSearch[NIL, "VersionMapDefaultsImpl"].tv;
substrCreatorTV: TV = BBContext.RecordSearch[vmapImplTV, "substrCreator"].tv;
substrCreatorPtr:
LONG
POINTER
TO
PROC
ANY
RETURNS
ANY =
LOOPHOLE[AMBridge.PointerFromTV[substrCreatorTV]];
amvImplTV: TV = BBContext.GlobalFrameSearch[NIL, "AMViewerOpsImpl"].tv;
ropeCreatorTV: TV = BBContext.RecordSearch[amvImplTV, "ropeCreator"].tv;
ropeCreatorPtr:
LONG
POINTER
TO
PROC
ANY
RETURNS
ANY =
LOOPHOLE[AMBridge.PointerFromTV[ropeCreatorTV]];
rootTV: TV = BBContext.RecordSearch[vmapDefImplTV, "root"].tv;
rootPtr: LONG POINTER TO REF = LOOPHOLE[AMBridge.PointerFromTV[rootTV]];
substrCreatorPtr^ ← RopeFile.SubstrCreate;
ropeCreatorPtr^ ← RopeFile.SimpleCreate;
rootPtr^ ← NIL;
};