VersionMap2BindingByPattern.mesa
Copyright Ó 1990 by Xerox Corporation. All rights reserved.
Last tweaked by Mike Spreitzer on March 31, 1992 7:18 am PST
VersionMap2BindingByPattern:
CEDAR
DEFINITIONS = {
OPEN VersionMap2;
Some keys in VersionMap2Binding are the concatenation of some <root> and some <kind>, where the <kind> is "Source", "Intermediate", or "Executable". This interface offers an association between <root>s and lists of filename patterns, such that the map gotten through VersionMap2Binding for <root><kind> includes the files of the appropriate kind whose names match one of the filename patterns.
AddToList: PROC [root: ROPE, pattern: Name];
RemFromList: PROC [root: ROPE, pattern: Name];
ScanList: PROC [root: ROPE, Consume: PROC [pattern: Name] RETURNS [stop: BOOL]];
ScanLists:
PROC [
Consume:
PROC [root:
ROPE]
RETURNS [stop:
BOOL]];
Enumerates the values of <root> for which there is a non-empty list of filename patterns being watched.
}.